-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
49 lines (48 loc) · 1.18 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
module.exports = {
root: true,
env: {
node: true,
browser: true,
jest: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json', './packages/*/tsconfig.json'],
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
'plugin:import/typescript',
],
plugins: ['@typescript-eslint', 'prettier', 'simple-import-sort'],
rules: {
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
'arrow-parens': 0,
'no-debugger': 1,
'no-warning-comments': [
1,
{
terms: ['hardcoded'],
location: 'anywhere',
},
],
'no-console': [
1,
{
allow: ['warn', 'error'],
},
],
'no-return-await': 0,
'object-curly-spacing': ['error', 'always'],
'no-var': 'error',
'comma-dangle': [1, 'always-multiline'],
'linebreak-style': ['error', 'unix'],
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
},
};