ghost-portal/.eslintrc.cjs
Jaco a3a449e7b8
Add tsconfig.build (#6813)
* Add tsconfig.build

* eslint tsconfig
2022-01-11 10:10:22 +02:00

29 lines
690 B
JavaScript

// Copyright 2017-2022 @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,
ignorePatterns: [
...base.ignorePatterns,
'jest/**/*',
'scripts/**/*',
'*.cjs'
],
parserOptions: {
...base.parserOptions,
project: [
'./tsconfig.eslint.json'
]
},
rules: {
...base.rules,
// needs to be switched on at some point
'@typescript-eslint/no-explicit-any': 'off',
// this seems very broken atm, false positives
'@typescript-eslint/unbound-method': 'off'
}
};