2023-07-06 16:37:47 +02:00
|
|
|
module.exports = {
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
parserOptions: {
|
|
|
|
project: 'tsconfig.json',
|
|
|
|
sourceType: 'module',
|
|
|
|
tsconfigRootDir: __dirname,
|
|
|
|
},
|
|
|
|
plugins: ['@typescript-eslint/eslint-plugin'],
|
2024-02-02 05:18:00 +02:00
|
|
|
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'plugin:unicorn/recommended'],
|
2023-07-06 16:37:47 +02:00
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
jest: true,
|
|
|
|
},
|
|
|
|
ignorePatterns: ['.eslintrc.js'],
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/interface-name-prefix': 'off',
|
|
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
2023-10-13 07:22:40 +02:00
|
|
|
'@typescript-eslint/no-floating-promises': 'error',
|
2024-02-02 05:18:00 +02:00
|
|
|
'unicorn/prefer-module': 'off',
|
|
|
|
curly: 2,
|
2023-07-06 16:37:47 +02:00
|
|
|
'prettier/prettier': 0,
|
2024-02-02 05:18:00 +02:00
|
|
|
'unicorn/prevent-abbreviations': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
ignore: ['\\.e2e-spec$', /^ignore/i],
|
|
|
|
},
|
|
|
|
],
|
2023-07-06 16:37:47 +02:00
|
|
|
},
|
|
|
|
};
|