-
Notifications
You must be signed in to change notification settings - Fork 26
/
.eslintrc.js
59 lines (56 loc) · 1.87 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
55
56
57
58
59
// Copyright 2017-2021 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
const base = require('@open-web3/dev-config/config/eslint.cjs');
// add override for any (a metric ton of them, initial conversion)
module.exports = {
...base,
ignorePatterns: [
'.eslintrc.js',
'.github/**',
'.vscode/**',
'.yarn/**',
'**/build/*',
'**/coverage/*',
'**/node_modules/*',
'src/support-bridges.ts'
],
plugins: [
...base.plugins,
"unused-imports"
],
parserOptions: {
...base.parserOptions,
project: [
'./tsconfig.json'
]
},
rules: {
...base.rules,
'@typescript-eslint/no-explicit-any': 'off',
'react/prop-types': 'off',
'header/header': 'off',
// TODO This is a new error on latest eslint version, if possible fix all 223 places where 'any' is used as function argument
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'react/jsx-no-bind': 'off',
'react/jsx-max-props-per-line': 'off',
'@typescript-eslint/unbound-method': 'off',
'react/jsx-closing-bracket-location': 'off',
'sort-keys': 'off',
'react/jsx-no-bind': 'off',
'@typescript-eslint/no-unused-vars': 'off',
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
]
}
};