-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.js
52 lines (52 loc) · 1.35 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
41
42
43
44
45
46
47
48
49
50
51
52
module.exports = {
"settings": {
"import/resolver": {
"node": {
"extensions": [".js",".ts"]
}
}
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"env": {
"commonjs": true,
"es6": true,
"node": true,
"jest": true,
"browser": true,
},
"extends": ["plugin:@typescript-eslint/recommended", "airbnb-base"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"routes": "readonly",
"CACHE_VERSION": "readonly",
"DEV": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"import/newline-after-import": 'off',
"@typescript-eslint/indent": ["error", 2],
"import/prefer-default-export": 'off',
"max-len": ["error", { code: 200 }],
"consistent-return": 'off',
"linebreak-style": ["error", "windows"],
"@typescript-eslint/no-var-requires": "off",
"no-nested-ternary": "off",
"no-console": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"no-restricted-globals": "off",
"no-restricted-syntax": "off",
"import/extensions": "off"
},
overrides: [
{
files: ['storybook/**/*.js'],
rules: {
semi: 'off'
}
}
]
};