-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy path.eslintrc.js
49 lines (49 loc) · 1.12 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
module.exports = {
globals: {
page: true,
browser: true,
context: true,
jestPuppeteer: true,
},
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
extends: ['plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
ecmaFeatures: { jsx: true },
sourceType: 'module',
},
plugins: [
'@typescript-eslint/eslint-plugin',
'eslint-plugin-tsdoc'
],
rules: {
"tsdoc/syntax": "warn",
"quotes": 0,
"semi": 0,
"no-console": 0,
"comma-dangle": 0,
"no-underscore-dangle": 0,
"import/prefer-default-export": 0,
"arrow-parens": 0,
"no-undef": 0,
"class-methods-use-this": 0,
"object-curly-newline": 0,
"no-unused-vars": "on",
"radix": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-empty-function": 0,
},
settings: {
"import/resolver": {
node: { extensions: [".js", ".jsx", ".ts", ".tsx"] }
}
},
ignorePatterns: ['.eslintrc.js', "**/*.config.js", "dev/test/jest.*.js"],
};