48 lines
1.1 KiB
JavaScript
Executable File
48 lines
1.1 KiB
JavaScript
Executable File
module.exports = {
|
|
root: true,
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
project: true,
|
|
},
|
|
plugins: ['@typescript-eslint'],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
],
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'no-console': 'warn',
|
|
'no-empty': ['error', { allowEmptyCatch: true }],
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['src/utils.ts', 'src/error-handler.ts'],
|
|
rules: {
|
|
'no-console': 'off',
|
|
},
|
|
},
|
|
{
|
|
files: ['jest.config.js', '.eslintrc.js', 'jest.setup.js'],
|
|
parserOptions: {
|
|
project: null,
|
|
},
|
|
},
|
|
],
|
|
env: {
|
|
node: true,
|
|
es2020: true,
|
|
jest: true,
|
|
},
|
|
ignorePatterns: [
|
|
'**/__mocks__/**',
|
|
'**/*.test.ts',
|
|
'src/**/*.js',
|
|
'jest.setup.js',
|
|
'jest.config.js',
|
|
],
|
|
};
|