mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-26 17:01:04 +00:00
c0e7ae9c91
Update @balena/lint from 8.0.0 to 9.1.3 Change-type: patch
33 lines
945 B
JavaScript
33 lines
945 B
JavaScript
const { FlatCompat } = require('@eslint/eslintrc');
|
|
|
|
const compat = new FlatCompat({
|
|
baseDirectory: __dirname,
|
|
});
|
|
module.exports = [
|
|
...require('@balena/lint/config/eslint.config'),
|
|
...compat.config({
|
|
parserOptions: {
|
|
project: 'tsconfig.dev.json',
|
|
},
|
|
ignorePatterns: ['**/generate-completion.js', '**/bin/**/*'],
|
|
rules: {
|
|
ignoreDefinitionFiles: 0,
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/no-shadow': 'off',
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
'@typescript-eslint/no-require-imports': 'off',
|
|
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
|
|
'@typescript-eslint/prefer-nullish-coalescing': 'warn',
|
|
|
|
'no-restricted-imports': ['error', {
|
|
paths: ['resin-cli-visuals', 'chalk', 'common-tags', 'resin-cli-form'],
|
|
}],
|
|
|
|
'@typescript-eslint/no-unused-vars': ['error', {
|
|
argsIgnorePattern: '^_',
|
|
caughtErrorsIgnorePattern: '^_',
|
|
}],
|
|
},
|
|
}),
|
|
];
|