32 lines
728 B
JavaScript
32 lines
728 B
JavaScript
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
extends: [
|
|
'eslint:recommended',
|
|
],
|
|
plugins: ['@typescript-eslint'],
|
|
env: {
|
|
node: true,
|
|
es6: true,
|
|
jest: true,
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module',
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
'no-console': 'off',
|
|
'no-undef': 'error',
|
|
},
|
|
ignorePatterns: ['dist/', 'node_modules/', '*.js'],
|
|
overrides: [
|
|
{
|
|
files: ['**/*.test.ts', '**/*.test.tsx', '**/__tests__/**/*.ts'],
|
|
env: {
|
|
jest: true,
|
|
},
|
|
},
|
|
],
|
|
};
|