|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + env: { |
| 4 | + browser: true, |
| 5 | + node: true, |
| 6 | + }, |
| 7 | + parserOptions: { |
| 8 | + parser: 'babel-eslint', |
| 9 | + }, |
| 10 | + extends: [ |
| 11 | + '@nuxtjs', |
| 12 | + 'plugin:nuxt/recommended', |
| 13 | + ], |
| 14 | + rules: { |
| 15 | + 'array-bracket-spacing': [ 'error', 'always' ], |
| 16 | + 'arrow-parens': 'off', |
| 17 | + 'comma-dangle': [ 'error', 'always-multiline' ], |
| 18 | + 'comma-spacing': 'error', |
| 19 | + 'curly': 'off', |
| 20 | + 'indent': [ 'error', 2 ], |
| 21 | + 'key-spacing': 'error', |
| 22 | + 'keyword-spacing': 'error', |
| 23 | + 'linebreak-style': [ 'error', 'unix' ], |
| 24 | + 'no-console': 'off', |
| 25 | + 'no-extra-semi': 'off', |
| 26 | + 'no-multi-spaces': 'error', |
| 27 | + 'no-trailing-spaces': 'error', |
| 28 | + 'no-return-assign': 'off', |
| 29 | + 'no-undef': 'warn', |
| 30 | + 'no-unused-vars': 'warn', |
| 31 | + 'nuxt/no-cjs-in-config': 'off', |
| 32 | + 'object-curly-spacing': [ 'error', 'always' ], |
| 33 | + 'quotes': [ 'error', 'single' ], |
| 34 | + 'semi': [ 'error', 'never', { beforeStatementContinuationChars: 'always' } ], |
| 35 | + 'space-before-blocks': [ 'error', 'always' ], |
| 36 | + 'space-before-function-paren': [ 'error', 'always' ], |
| 37 | + 'space-in-parens': 'error', |
| 38 | + 'space-infix-ops': 'error', |
| 39 | + 'space-unary-ops': 'error', |
| 40 | + 'spaced-comment': [ 'error', 'always', { exceptions: [ '*' ] } ], |
| 41 | + 'vue/singleline-html-element-content-newline': 'off', |
| 42 | + } |
| 43 | +} |
0 commit comments