forked from polkadot-js/extension
-
Notifications
You must be signed in to change notification settings - Fork 65
/
.eslintrc.js
32 lines (30 loc) · 880 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
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0
const base = require('@polkadot/dev/config/eslint.cjs');
module.exports = {
...base,
ignorePatterns: [
...base.ignorePatterns,
"i18next-scanner.config.js",
"koni-*.mjs",
"packages/extension-web-ui/**/*", // Remove after migration to web-ui
// "*.spec.ts"
],
parserOptions: {
...base.parserOptions,
project: [
'./tsconfig.eslint.json'
]
},
rules: {
...base.rules,
'header/header': [2, 'line', [
{ pattern: ' Copyright 20(17|18|19|20|21|22)(-2022)? (@polkadot|@subwallet)/' },
' SPDX-License-Identifier: Apache-2.0'
], 2],
// this seems very broken atm, false positives
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'sort-keys': 'off'
}
};