2022-08-17 19:59:51 +00:00
|
|
|
module.exports = {
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
parserOptions: {
|
|
|
|
project: 'tsconfig.json',
|
|
|
|
tsconfigRootDir: __dirname,
|
|
|
|
sourceType: 'module',
|
|
|
|
},
|
2022-08-25 17:59:53 +00:00
|
|
|
plugins: ['@typescript-eslint/eslint-plugin', 'no-relative-import-paths'],
|
2022-08-17 19:59:51 +00:00
|
|
|
extends: [
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'plugin:prettier/recommended',
|
|
|
|
],
|
|
|
|
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',
|
2022-08-25 17:59:53 +00:00
|
|
|
'no-relative-import-paths/no-relative-import-paths': [
|
|
|
|
'error',
|
|
|
|
{ 'allowSameFolder': true, 'rootDir': 'src' }
|
|
|
|
]
|
2022-08-17 19:59:51 +00:00
|
|
|
},
|
|
|
|
};
|