Skip to content

Commit

Permalink
feat: update for v3
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Mar 19, 2024
1 parent a3f82f3 commit a823e9c
Show file tree
Hide file tree
Showing 4 changed files with 1,703 additions and 3,099 deletions.
97 changes: 97 additions & 0 deletions index.cjs
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',
},
},
],
}
48 changes: 0 additions & 48 deletions index.js

This file was deleted.

27 changes: 15 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -15,20 +15,23 @@
"author": "John Leider <john@vuetifyjs.com>",
"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"
},
"devDependencies": {
"@release-it/conventional-changelog": "^8.0.1"
}
}
Loading

0 comments on commit a823e9c

Please sign in to comment.