-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
54 lines (54 loc) · 1.13 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
51
52
53
54
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"prettier",
"plugin:import/recommended",
"plugin:import/typescript",
],
ignorePatterns: ["dist/"],
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
ecmaFeatures: {
jsx: false,
},
},
env: {
es6: true,
node: true,
},
plugins: ["filenames", "@typescript-eslint", "react-hooks"],
rules: {
"filenames/match-exported": "error",
"filenames/no-index": "error",
"import/extensions": "error",
"no-console": "warn",
"react-hooks/exhaustive-deps": "warn",
},
overrides: [
{
files: ["**/*.ts"],
extends: ["plugin:@typescript-eslint/recommended"],
},
{
files: ["**/*.spec.*", "src/server/drivers/driverSpec.*"],
env: {
mocha: true,
},
extends: ["plugin:mocha/recommended"],
rules: {
"mocha/no-mocha-arrows": "off",
"mocha/no-hooks-for-single-case": "off",
},
},
{
files: ["src/client/**/*.js"],
env: {
node: false,
browser: true,
},
},
],
};