-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3f82f3
commit 37e51c2
Showing
5 changed files
with
1,700 additions
and
3,104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true, | ||
}, | ||
extends: [ | ||
'plugin:vue/vue3-recommended', | ||
'standard', | ||
'@vue/eslint-config-typescript', | ||
], | ||
rules: { | ||
'no-var': 'error', | ||
// allow paren-less arrow functions | ||
'arrow-parens': ['error', 'as-needed'], | ||
complexity: ['error', 32], | ||
quotes: ['error', 'single', { | ||
avoidEscape: true, | ||
allowTemplateLiterals: true, | ||
}], | ||
'no-console': 'off', | ||
'comma-dangle': ['error', { | ||
arrays: 'always-multiline', | ||
objects: 'always-multiline', | ||
imports: 'always-multiline', | ||
exports: 'always-multiline', | ||
functions: 'only-multiline', | ||
}], | ||
// allow debugger during development | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'no-return-assign': 'off', | ||
'no-unused-vars': 'error', | ||
'no-empty': 'error', | ||
'array-bracket-spacing': ['error', 'never'], | ||
'object-curly-spacing': ['error', 'always'], | ||
'space-before-function-paren': [ | ||
'error', | ||
{ | ||
anonymous: 'always', | ||
named: 'always', | ||
asyncArrow: 'always', | ||
}, | ||
], | ||
'no-return-await': 'warn', | ||
'object-shorthand': ['error', 'always'], | ||
'no-extra-semi': 'error', | ||
'prefer-const': ['error', { | ||
destructuring: 'all', | ||
ignoreReadBeforeAssign: true, | ||
}], | ||
'no-prototype-builtins': 'off', | ||
'no-void': 'off', | ||
'no-case-declarations': 'off', | ||
'sort-imports': ['warn', { | ||
ignoreDeclarationSort: true, | ||
ignoreCase: true, | ||
}], | ||
'multiline-ternary': 'off', | ||
|
||
// Not in override, these apply to non-.vue files too | ||
'vue/require-default-prop': 'off', | ||
'vue/require-prop-types': 'off', | ||
'vue/one-component-per-file': 'off', | ||
'vue/custom-event-name-casing': ['error', { ignores: ['/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u'] }], | ||
|
||
'vue/attributes-order': ['error', { | ||
alphabetical: true, | ||
}], | ||
}, | ||
overrides: [ | ||
{ | ||
files: '**/*.vue', | ||
rules: { | ||
indent: 'off', | ||
'vue/script-indent': ['error', 2, { | ||
baseIndent: 1, | ||
switchCase: 1, | ||
ignores: [], | ||
}], | ||
'vue/html-closing-bracket-newline': ['error', { | ||
singleline: 'never', | ||
multiline: 'always', | ||
}], | ||
'vue/html-closing-bracket-spacing': 'error', | ||
'vue/max-attributes-per-line': ['error', { | ||
singleline: 4, | ||
multiline: 1, | ||
}], | ||
'vue/valid-v-on': 'off', // This rule doesn't allow empty event listeners | ||
'vue/no-v-html': 'off', | ||
'vue/singleline-html-element-content-newline': 'off', | ||
'vue/multiline-html-element-content-newline': 'off', | ||
'vue/valid-v-slot': ['error', { allowModifiers: true }], | ||
'vue/multi-word-component-names': 'off', | ||
}, | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "eslint-config-vuetify", | ||
"version": "0.6.1", | ||
"description": "eslint config for vue.js projects", | ||
"main": "index.js", | ||
"main": "index.cjs", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/vuetifyjs/eslint-config-vuetify.git" | ||
|
@@ -15,20 +15,20 @@ | |
"author": "John Leider <[email protected]>", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"eslint": "^7.0.0" | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-n": "^16.0.0" | ||
}, | ||
"dependencies": { | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-standard": "^14.1.1", | ||
"eslint-plugin-import": "^2.20.2", | ||
"eslint": "^8.57.0", | ||
"eslint-config-standard": "^17.1.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"eslint-plugin-vue": "^6.2.2", | ||
"eslint-plugin-vuetify": "^1.0.0-beta.6", | ||
"vue": "^2.6.11", | ||
"vuetify": "^2.2.28", | ||
"@release-it/conventional-changelog": "^1.1.4" | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-standard": "^4.1.0", | ||
"eslint-plugin-vue": "^9.23.0", | ||
"eslint-plugin-vuetify": "^2.2.0", | ||
"vue": "^3.4.21", | ||
"vuetify": "^3.5.9" | ||
} | ||
} |
Oops, something went wrong.