-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.eslintrc.js
38 lines (36 loc) · 971 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
33
34
35
36
37
38
// Copyright 2017-2021 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
const base = require('@polkadot/dev/config/eslint.cjs');
// add override for any (a metric ton of them, initial conversion)
module.exports = {
...base,
plugins: [...base.plugins, 'simple-import-sort'],
ignorePatterns: [
'.eslintrc.js',
'.github/**',
'.vscode/**',
'.yarn/**',
'**/build/*',
'**/coverage/*',
'**/node_modules/*',
'**/apps-ipfs/*',
'**/patch/*',
'**/ipfs-gateway-endpoints/*',
'**/ipfs-pinner/*',
'**/ipfs-api/*'
],
parserOptions: {
...base.parserOptions,
project: [
'./tsconfig.json'
]
},
rules: {
...base.rules,
// needs to be switched on at some pointpackages/apps-routing/src/types.ts
'@typescript-eslint/no-explicit-any': 'off',
// this seems very broken atm, false positives
'@typescript-eslint/unbound-method': 'off',
'sort-keys': 'off'
}
};