mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-22 03:17:58 +00:00
34 lines
832 B
JavaScript
34 lines
832 B
JavaScript
// Copyright 2017-2021 @polkadot/ui authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
const base = require('@polkadot/dev/config/eslint.cjs');
|
|
|
|
module.exports = {
|
|
...base,
|
|
ignorePatterns: [
|
|
'.eslintrc.js',
|
|
'.github/**',
|
|
'.vscode/**',
|
|
'.yarn/**',
|
|
'**/build/*',
|
|
'**/coverage/*',
|
|
'**/node_modules/*',
|
|
'**/*.d.ts'
|
|
],
|
|
parserOptions: {
|
|
...base.parserOptions,
|
|
project: [
|
|
'./tsconfig.json'
|
|
]
|
|
},
|
|
rules: {
|
|
...base.rules,
|
|
// add override for any (a metric ton of them, initial conversion)
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
// these should be removed, there are 8 of them as errors
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
// this seems very broken atm, false positives
|
|
'@typescript-eslint/unbound-method': 'off'
|
|
}
|
|
};
|