Skip to content

Commit

Permalink
feat: add some rules for vue and playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
xsjcTony committed Dec 1, 2023
1 parent 92adef5 commit e3e0e7b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 33 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,24 @@
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"@unocss/eslint-plugin": "^0.57.7",
"eslint-config-flat-gitignore": "^0.1.1",
"eslint-config-flat-gitignore": "^0.1.2",
"eslint-import-resolver-node": "^0.3.9",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-playwright": "^0.18.0",
"eslint-plugin-playwright": "^0.19.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"eslint-plugin-vue": "^9.18.1",
"eslint-plugin-vue": "^9.19.2",
"eslint-plugin-vuejs-accessibility": "^2.2.0",
"globals": "^13.23.0",
"local-pkg": "^0.5.0",
"vue-eslint-parser": "^9.3.2"
},
"devDependencies": {
"@types/eslint": "^8.44.7",
"@types/node": "^20.10.0",
"@types/eslint": "^8.44.8",
"@types/node": "^20.10.1",
"bumpp": "^9.2.0",
"changelogithub": "^0.13.2",
"eslint": "^8.54.0",
Expand Down
52 changes: 26 additions & 26 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/configs/playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const playwrightRules: FlatConfigItem['rules'] = {
'playwright/no-networkidle': 'error',
'playwright/no-nested-step': 'error',
'playwright/prefer-to-contain': 'error',
'playwright/prefer-to-have-count': 'error'
'playwright/prefer-to-have-count': 'error',
'playwright/valid-title': 'error'
}


Expand Down
3 changes: 2 additions & 1 deletion src/configs/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const vueRules = (pluginVue: any, options: VueOptions): FlatConfigItem['rules']
}
],
'vue/custom-event-name-casing': ['error', 'camelCase'],
'vue/define-emits-declaration': ['error', 'type-based'],
'vue/define-emits-declaration': ['error', 'type-literal'],
'vue/define-props-declaration': ['error', 'type-based'],
'vue/html-button-has-type': ['error', { button: true, submit: true, reset: true }],
'vue/next-tick-style': ['error', 'promise'],
Expand Down Expand Up @@ -88,6 +88,7 @@ const vueRules = (pluginVue: any, options: VueOptions): FlatConfigItem['rules']
'vue/v-for-delimiter-style': ['error', 'in'],
'vue/v-on-handler-style': ['error', ['method', 'inline-function'], { ignoreIncludesComment: false }],
'vue/valid-define-options': 'error',
'vue/no-unused-emit-declarations': 'error',

// Extension Rules
'vue/camelcase': [
Expand Down

0 comments on commit e3e0e7b

Please sign in to comment.