.eslintrc.js: update for vue rules we like
This commit is contained in:
@ -5,29 +5,29 @@ module.exports = {
|
|||||||
es6: true,
|
es6: true,
|
||||||
},
|
},
|
||||||
'extends': [
|
'extends': [
|
||||||
'plugin:vue/recommended',
|
|
||||||
'@vue/standard',
|
'@vue/standard',
|
||||||
|
'plugin:vue/recommended',
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
'vuetify'
|
'vuetify'
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||||
'indent': ["warn", 2, { CallExpression: { arguments: "first" },
|
'indent': ['warn', 2, { CallExpression: { arguments: 'first' },
|
||||||
ObjectExpression: "first",
|
ObjectExpression: 'first',
|
||||||
ArrayExpression: "first" }],
|
ArrayExpression: 'first' }],
|
||||||
'comma-dangle': ['warn', 'only-multiline'],
|
'comma-dangle': ['warn', 'only-multiline'],
|
||||||
'spaced-comment': 'off',
|
'spaced-comment': 'off',
|
||||||
'space-before-function-paren': ['warn', 'never'],
|
'space-before-function-paren': ['warn', 'never'],
|
||||||
'vuetify/no-deprecated-classes': 'error',
|
'vue/html-closing-bracket-newline': 'off',
|
||||||
'vuetify/grid-unknown-attributes': 'error',
|
|
||||||
'vuetify/no-legacy-grid': 'error',
|
|
||||||
'vue/multiline-html-element-content-newline': 'off',
|
|
||||||
'vue/html-closing-bracket-spacing': 'off',
|
'vue/html-closing-bracket-spacing': 'off',
|
||||||
'vue/max-attributes-per-line': 'off',
|
'vue/max-attributes-per-line': 'off',
|
||||||
|
'vue/multiline-html-element-content-newline': 'off',
|
||||||
'vue/singleline-html-element-content-newline': 'off',
|
'vue/singleline-html-element-content-newline': 'off',
|
||||||
'vue/html-closing-bracket-newline': 'off',
|
'vuetify/grid-unknown-attributes': 'error',
|
||||||
|
'vuetify/no-deprecated-classes': 'error',
|
||||||
|
'vuetify/no-legacy-grid': 'error',
|
||||||
},
|
},
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: 'babel-eslint'
|
parser: 'babel-eslint'
|
||||||
|
|||||||
Reference in New Issue
Block a user