2019-08-21 04:57:57 +00:00
|
|
|
module.exports = {
|
2019-08-25 05:34:33 +00:00
|
|
|
extends: ['airbnb/base', 'prettier', 'plugin:vue/recommended'],
|
|
|
|
parserOptions: {
|
|
|
|
parser: 'babel-eslint',
|
|
|
|
ecmaVersion: 2017,
|
|
|
|
sourceType: 'module',
|
2019-08-21 04:57:57 +00:00
|
|
|
},
|
2019-08-25 05:34:33 +00:00
|
|
|
plugins: ['html', 'prettier', 'babel'],
|
|
|
|
rules: {
|
|
|
|
'prettier/prettier': ['error'],
|
|
|
|
camelcase: 'off',
|
2019-11-25 18:40:27 +00:00
|
|
|
'no-param-reassign': 'off',
|
2019-08-25 05:34:33 +00:00
|
|
|
'import/no-extraneous-dependencies': 'off',
|
|
|
|
'import/prefer-default-export': 'off',
|
|
|
|
'import/no-named-as-default': 'off',
|
|
|
|
'jsx-a11y/no-static-element-interactions': 'off',
|
|
|
|
'jsx-a11y/click-events-have-key-events': 'off',
|
|
|
|
'jsx-a11y/label-has-associated-control': 'off',
|
|
|
|
'jsx-a11y/label-has-for': 'off',
|
|
|
|
'jsx-a11y/anchor-is-valid': 'off',
|
|
|
|
'import/no-unresolved': 'off',
|
|
|
|
'vue/max-attributes-per-line': ['error', {
|
|
|
|
'singleline': 3,
|
|
|
|
'multiline': {
|
|
|
|
'max': 1,
|
|
|
|
'allowFirstLine': false
|
2019-08-21 04:57:57 +00:00
|
|
|
}
|
2019-08-25 05:34:33 +00:00
|
|
|
}],
|
2019-08-25 14:29:28 +00:00
|
|
|
'vue/html-self-closing': 'off',
|
|
|
|
"vue/no-v-html": 'off'
|
2019-08-21 04:57:57 +00:00
|
|
|
},
|
2019-08-25 05:34:33 +00:00
|
|
|
settings: {
|
|
|
|
'import/resolver': {
|
|
|
|
webpack: {
|
|
|
|
config: 'config/webpack/resolve.js',
|
|
|
|
},
|
|
|
|
},
|
2019-08-21 04:57:57 +00:00
|
|
|
},
|
2019-08-25 05:34:33 +00:00
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
node: true,
|
|
|
|
jest: true,
|
2019-10-14 18:48:46 +00:00
|
|
|
jasmine: true
|
2019-08-25 05:34:33 +00:00
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
__WEBPACK_ENV__: true,
|
|
|
|
},
|
|
|
|
};
|