-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (50 loc) · 1.08 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
module.exports = {
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
allowImportExportEverywhere: true,
ecmaFeatures: {
jsx: true,
},
},
env: {
es6: true,
node: true,
jest: true,
browser: true,
},
extends: [
'airbnb',
'plugin:prettier/recommended',
'plugin:clean-regex/recommended',
],
plugins: ['prettier', 'clean-regex'],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ts', '.tsx'],
},
},
},
rules: {
'no-console': 2,
'newline-before-return': 2,
'arrow-body-style': 2,
'import/no-default-export': 2,
'no-restricted-syntax': 0,
'prefer-destructuring': 0,
'prefer-template': 0,
'no-restricted-properties': 0,
'no-underscore-dangle': 0,
'no-restricted-globals': 0,
'no-use-before-define': 0,
'func-names': 0,
'prefer-object-spread': 0,
'prefer-rest-params': 0,
'no-param-reassign': 0,
'guard-for-in': 0,
'no-plusplus': 0,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
},
};