forked from paritytech/polkadot-testnet-faucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
39 lines (35 loc) · 1.16 KB
/
.eslintrc.cjs
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
const { getConfiguration, getTypescriptOverride } = require("@eng-automation/js-style/src/eslint/configuration");
const tsConfParams = { rootDir: __dirname };
const conf = getConfiguration({ typescript: tsConfParams });
const tsConfOverride = getTypescriptOverride(tsConfParams);
module.exports = {
...conf,
plugins: [
...conf.plugins,
"security"
],
extends: [
...conf.extends,
"plugin:security/recommended"
],
overrides: [
...conf.overrides,
{
...tsConfOverride,
files: "{*,**,**/*}.{ts,tsx}",
rules: {
...tsConfOverride.rules,
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"no-restricted-imports": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/await-thenable": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"pescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unsafe-argument": "off"
},
},
],
};