-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc
38 lines (35 loc) · 1.09 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
{
"extends": [ "airbnb", "plugin:mocha/recommended"],
"rules": {
// "no-console": "off",
"react/prop-types": "off",
// "linebreak-style": 0 // windows CRLF LF thing?
"func-names": "off",
// allows for i++ or i-- in third arg of for loop
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
// gets rid of errors like 'chai' should be in project dependencies, not devDependencies, in test.ts/x files ONLY
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.test.ts", "**/*.test.tsx"]}]
},
"env": {
"node": true,
"es6": true
},
// below are the settings for typescript linting
"parser": "@typescript-eslint/parser",
"plugins": [ "@typescript-eslint", "mocha" ],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"modules": true
},
"project": "./tsconfig.json"
},
// this setting removes the need to constantly ignore the no-unresolved-paths error
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}