2019-08-21 14:41:00 +08:00

68 lines
1.7 KiB
JavaScript

module.exports = {
extends: ['airbnb-base', 'plugin:vue/recommended'],
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2018,
sourceType: 'module',
extraFileExtensions: ['.vue']
},
plugins: ['@typescript-eslint'],
env: {
es6: true,
node: true,
jest: true,
browser: true
},
globals: {
window: false,
document: false,
navigator: false
},
rules: {
'no-new': 0,
'no-shadow': 0,
camelcase: 1,
'no-bitwise': 0,
'func-names': 0,
'no-console': 0,
'no-plusplus': 0,
'arrow-parens': 0,
'comma-dangle': 0,
'default-case': 0,
'prefer-template': 0,
'consistent-return': 0,
'no-param-reassign': 0,
'no-nested-ternary': 0,
'operator-linebreak': 0,
'object-curly-newline': 0,
'no-underscore-dangle': 1,
'no-unused-expressions': 0,
'no-restricted-globals': 0,
'function-paren-newline': 0,
'class-methods-use-this': 0,
'implicit-arrow-linebreak': 0,
'space-before-function-paren': 0,
'max-len': ['error', { code: 150 }],
'prefer-destructuring': ['error', { object: true, array: false }],
'import/order': 0,
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'vue/no-v-html': 0,
'vue/attributes-order': 0,
'vue/require-v-for-key': 0,
'vue/require-default-prop': 0,
'vue/no-unused-components': 0,
'vue/singleline-html-element-content-newline': 0,
'vue/name-property-casing': ['error', 'kebab-case'],
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'vue/html-closing-bracket-newline': 2,
'@typescript-eslint/no-unused-vars': ['error']
}
};