From 1db38604c18604496b734cd46603ff4b65e2c949 Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Thu, 1 Aug 2024 16:35:11 +0530 Subject: [PATCH] fix: Add lint rule to enforce camelCase event name (#25) * fix: Add lint rule to enforce camelCase event name * v0.1.0-beta.18 --- lerna.json | 2 +- packages/eslint-config-base/package.json | 2 +- packages/eslint-config-vue/index.js | 3 ++- packages/eslint-config-vue/package.json | 4 ++-- packages/eslint-config/package.json | 4 ++-- packages/eslint-nuxt/package.json | 2 +- packages/prettier-config/package.json | 2 +- 7 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lerna.json b/lerna.json index 791a5a5..b174599 100644 --- a/lerna.json +++ b/lerna.json @@ -1,4 +1,4 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "version": "0.1.0-beta.17" + "version": "0.1.0-beta.18" } diff --git a/packages/eslint-config-base/package.json b/packages/eslint-config-base/package.json index df643c0..036772d 100644 --- a/packages/eslint-config-base/package.json +++ b/packages/eslint-config-base/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/eslint-config-base", - "version": "0.1.0-beta.17", + "version": "0.1.0-beta.18", "publishConfig": { "access": "public" }, diff --git a/packages/eslint-config-vue/index.js b/packages/eslint-config-vue/index.js index ed69db8..b9a8ead 100644 --- a/packages/eslint-config-vue/index.js +++ b/packages/eslint-config-vue/index.js @@ -3,7 +3,8 @@ module.exports = { rules: { 'vue/multi-word-component-names': 'off', 'vue/require-default-prop': 'off', - 'vue/no-v-html': 'off' + 'vue/no-v-html': 'off', + 'vue/custom-event-name-casing': ['error', 'camelCase'] }, overrides: [ { diff --git a/packages/eslint-config-vue/package.json b/packages/eslint-config-vue/package.json index 8dfa605..8b86655 100644 --- a/packages/eslint-config-vue/package.json +++ b/packages/eslint-config-vue/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/eslint-config-vue", - "version": "0.1.0-beta.17", + "version": "0.1.0-beta.18", "publishConfig": { "access": "public" }, @@ -10,7 +10,7 @@ "lint": "eslint ." }, "dependencies": { - "@snapshot-labs/eslint-config-base": "^0.1.0-beta.17", + "@snapshot-labs/eslint-config-base": "^0.1.0-beta.18", "eslint-plugin-vue": "^9.18.1" } } diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index ddab392..818637d 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/eslint-config", - "version": "0.1.0-beta.17", + "version": "0.1.0-beta.18", "publishConfig": { "access": "public" }, @@ -10,6 +10,6 @@ "lint": "eslint ." }, "dependencies": { - "@snapshot-labs/eslint-config-base": "^0.1.0-beta.17" + "@snapshot-labs/eslint-config-base": "^0.1.0-beta.18" } } diff --git a/packages/eslint-nuxt/package.json b/packages/eslint-nuxt/package.json index 6b226f3..477371a 100644 --- a/packages/eslint-nuxt/package.json +++ b/packages/eslint-nuxt/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/eslint-config-nuxt", - "version": "0.1.0-beta.17", + "version": "0.1.0-beta.18", "publishConfig": { "access": "public" }, diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index c17b331..676391f 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/prettier-config", - "version": "0.1.0-beta.17", + "version": "0.1.0-beta.18", "publishConfig": { "access": "public" },