-
Notifications
You must be signed in to change notification settings - Fork 62
/
.eslintrc
76 lines (76 loc) · 1.69 KB
/
.eslintrc
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": [
"@typescript-eslint",
"import",
"unicorn",
"prettier"
],
"env": {
"browser": true,
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "tsconfig.json"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
},
"ignorePatterns": [
"**/dist/**",
"**/demo/**",
"**/public/**"
],
"rules": {
// Import plugin rules
// https://github.com/import-js/eslint-plugin-import
"import/no-unresolved": "error",
"import/export": "warn",
"import/no-nodejs-modules": "warn", // Deepscatter runs on the browser
"import/no-default-export": "warn", // default exports are an antipattern
// Unicorn plugin rules
// https://github.com/sindresorhus/eslint-plugin-unicorn
"unicorn/filename-case": [
"error",
{
"cases": {
"pascalCase": true,
"snakeCase": true
}
}
],
"typescript-eslint/no-unnecessary-type-assertion": "off",
"unicorn/consistent-destructuring": "off",
"unicorn/new-for-builtins": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/no-null": "off",
// NOTE: The below rules violate best practices and allow for code
// debt and should be removed.
"camelcase": "off"
},
"overrides": [
{
"files": [
"*.ts"
],
"extends": [
"plugin:@typescript-eslint/recommended-requiring-type-checking"
]
}
]
}