forked from GMOD/jbrowse-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
136 lines (133 loc) · 3.28 KB
/
.eslintrc.json
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{
"env": {
"browser": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:monorepo/recommended",
"plugin:prettier/recommended",
"react-app"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"],
"rules": {
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-var-requires": "off",
"no-use-before-define": "off",
"curly": "error",
"no-global-assign": "warn",
"no-console": [
"warn",
{
"allow": ["error", "warn"]
}
],
"no-debugger": "warn",
"no-undef": "error",
"no-underscore-dangle": "warn",
"import/no-extraneous-dependencies": "error",
"import/no-anonymous-default-export": "off",
"monorepo/no-internal-import": "off",
"prettier/prettier": "warn",
"react/no-danger": "warn",
"react/prop-types": "off",
"react/destructuring-assignment": "error",
"react/no-unused-prop-types": "error",
"react/no-unused-state": "error",
"react/prefer-stateless-function": "error",
"spaced-comment": [
"error",
"always",
{
"markers": ["/"]
}
]
},
"globals": {
"globalThis": false
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"rules": {
"tsdoc/syntax": "warn"
}
},
{
"files": ["**/jbrowse-cli/**/*.test.ts", "**/jbrowse-cli/**/*.test.tsx"],
"rules": {
"tsdoc/syntax": "off"
}
},
{
"files": [
"**/test/**",
"**/*.test.[t,j]s",
"**/*.test.[t,j]sx",
"**/rescripts/*",
"**/tests/util.js",
"**/webpack.config.js",
"**/scripts/notarize.js",
"**/src/testUtil.ts"
],
"env": {
"jest": true
},
"globals": {
"document": true,
"it": true,
"describe": true,
"test": true
},
"rules": {
"import/no-extraneous-dependencies": "off"
}
},
{
"files": ["**/component_test/**"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"project": "./component_test/tsconfig.json"
}
},
{
"files": ["**/component_test/cypress/**"],
"extends": ["plugin:cypress/recommended"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"project": "./component_test/cypress/tsconfig.json"
}
},
{
"files": [
"./plugin-development-tools/**/*.[t,j]s",
"./plugin-development-tools/**/*.[t,j]sx"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"project": "./plugin-development-tools/tsconfig.json"
}
}
]
}