forked from d-i-t-a/R2D2BC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (32 loc) · 946 Bytes
/
.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
module.exports = {
extends: [
// extends from the create-react-app prettier config, which
// is not react-specific, but just a good set of defaults
"react-app",
// this disables the errors that prettier fixes automatically
// and runs prettier as part of eslint --fix
"plugin:prettier/recommended",
],
settings: {
react: {
// Fix for a warning coming from the react-app config when there is
// no react installed.
version: "999.999.999",
},
},
rules: {
// allow unused vars and params that start with an underscore: _unused
"@typescript-eslint/no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
// turn off the disallowing of "use-strict"
strict: 0,
// turn this off for now, but we should throw errors in the future
"no-throw-literal": 0,
},
};