-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
40 lines (40 loc) · 1.03 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
36
37
38
39
40
module.exports = {
root: true,
env: {
browser: true,
'jest/globals': true,
},
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2018,
sourceType: 'module',
allowImportExportEverywhere: false,
},
extends: [
'airbnb-base',
],
plugins: [
'jest',
],
rules: {
'import/extensions': ['error', 'always', {
js: 'never',
vue: 'never',
ts: 'never',
}],
'import/no-extraneous-dependencies': 'off',
'import/no-dynamic-require': 'off',
'import/prefer-default-export': 'off',
'arrow-parens': 'off',
'indent': ['error', 4],
'no-shadow': 'warn',
'global-require': 'off',
'no-underscore-dangle': 'off',
'no-bitwise': 'off',
'prefer-promise-reject-errors': 'off',
'no-trailing-spaces': 'off',
'no-restricted-globals': 'off',
'no-param-reassign': 'off',
'no-template-curly-in-string': 'off',
},
};