mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 13:26:24 +00:00
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: '^_',
|
||
|
}],
|
||
|
},
|
||
|
}),
|
||
|
];
|