2019-08-21 04:57:57 +00:00
|
|
|
module.exports = {
|
2022-07-08 15:49:19 +00:00
|
|
|
extends: [
|
|
|
|
'airbnb-base/legacy',
|
|
|
|
'prettier',
|
|
|
|
'plugin:vue/recommended',
|
|
|
|
'plugin:storybook/recommended',
|
|
|
|
],
|
2019-08-25 05:34:33 +00:00
|
|
|
parserOptions: {
|
|
|
|
parser: 'babel-eslint',
|
2020-04-17 13:19:14 +00:00
|
|
|
ecmaVersion: 2020,
|
2019-08-25 05:34:33 +00:00
|
|
|
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',
|
2022-06-10 13:59:52 +00:00
|
|
|
'vue/max-attributes-per-line': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
singleline: 20,
|
|
|
|
multiline: {
|
|
|
|
max: 1,
|
|
|
|
allowFirstLine: false,
|
|
|
|
},
|
2020-02-22 14:46:56 +00:00
|
|
|
},
|
2022-06-10 13:59:52 +00:00
|
|
|
],
|
|
|
|
'vue/html-self-closing': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
html: {
|
|
|
|
void: 'always',
|
|
|
|
normal: 'always',
|
|
|
|
component: 'always',
|
|
|
|
},
|
|
|
|
svg: 'always',
|
|
|
|
math: 'always',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
'vue/no-v-html': 'off',
|
2021-12-27 08:19:31 +00:00
|
|
|
'vue/singleline-html-element-content-newline': 'off',
|
2022-03-20 07:37:36 +00:00
|
|
|
'import/extensions': ['off'],
|
2022-06-10 13:59:52 +00:00
|
|
|
'no-console': 'error',
|
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,
|
|
|
|
jest: true,
|
2022-06-10 13:59:52 +00:00
|
|
|
node: true,
|
2019-08-25 05:34:33 +00:00
|
|
|
},
|
|
|
|
globals: {
|
2020-08-11 04:27:42 +00:00
|
|
|
bus: true,
|
2019-08-25 05:34:33 +00:00
|
|
|
},
|
|
|
|
};
|