forked from polkadot-js/extension
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
30 lines (29 loc) · 1007 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
// Copyright 2019-2023 @polkadot/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0
const base = require('@polkadot/dev/config/eslint.cjs');
module.exports = {
...base,
ignorePatterns: [...base.ignorePatterns, 'jest/**/*', 'i18next-scanner.config.js'],
parserOptions: {
...base.parserOptions,
project: ['./tsconfig.eslint.json']
},
rules: {
...base.rules,
// this seems very broken atm, false positives
'@typescript-eslint/unbound-method': 'off',
'sort-keys': 'off',
'header/header': 'off'
},
overrides: [...base.overrides, {
files: ['**/*.test.*', '**/*.spec.*', '**/*.stories.*'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-return': 'off'
}
}],
extends: [...base.extends, 'plugin:storybook/recommended']
};