-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (35 loc) · 1.01 KB
/
.eslintrc.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
module.exports = {
extends: ['react-app', 'airbnb-base'],
globals: {
__PATH_PREFIX__: true,
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
rules: {
'no-underscore-dangle': 0,
'comma-dangle': ['error', {
'arrays': 'always-multiline',
'objects': 'always-multiline',
'imports': 'never',
'exports': 'only-multiline',
'functions': 'only-multiline'
}],
'object-curly-newline': ['error', {
'ImportDeclaration': 'never'
}],
'implicit-arrow-linebreak': 0,
'no-return-assign': ['error', 'except-parens'],
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'vue/script-indent': ['error', 'tab', { "baseIndent": 1 }],
'arrow-parens': [2, 'as-needed', { 'requireForBlockBody': true }]
},
overrides: [
{
files: ['*.test.js'],
rules: {
'global-require': 0,
'prefer-destructuring': [0, {AssignmentExpression: {object: true}}],
},
},
],
}