-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
72 lines (72 loc) · 2.16 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
module.exports = {
extends: ['eslint-config-airbnb-base', 'plugin:vue/essential'],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@babel/eslint-parser',
sourceType: 'module',
ecmaVersion: 2020,
allowImportExportEverywhere: false,
},
env: {
browser: true,
node: true,
es6: true,
},
plugins: ['vue'],
rules: {
'arrow-parens': ['error', 'as-needed'],
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
// Trailing commas in functions are allowed only in ES8
// https://github.com/eslint/eslint/issues/7809
functions: 'never',
},
],
indent: 'off', // This rule introduces an error in Vue projects since eslint 7
'template-curly-spacing': 'off', // This rule introduces an error in Vue projects since eslint 7
'consistent-return': 'off',
'eol-last': 'off',
'function-paren-newline': ['off'],
'global-require': 'off',
'implicit-arrow-linebreak': 'off',
'max-len': [2, 100],
'no-await-in-loop': 'off',
'no-confusing-arrow': 'off',
'no-console': 'error',
'no-param-reassign': 'off',
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
'no-return-assign': 'off',
'no-unused-expressions': ['error', { allowTernary: true }],
'no-unused-vars': ['error', { argsIgnorePattern: '^h$' }],
'no-use-before-define': 'off',
'object-curly-newline': 'off',
'operator-linebreak': 'off',
'prefer-promise-reject-errors': 'off',
'quote-props': ['error', 'as-needed'],
semi: ['error', 'never'],
'import/extensions': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'import/no-unresolved': 'off',
'vue/multi-word-component-names': 'off',
},
globals: {
jest: false,
describe: false,
it: false,
test: false,
expect: false,
beforeAll: false,
beforeEach: false,
afterAll: false,
afterEach: false,
cy: false,
context: false,
},
}