2022-05-16 09:23:59 +00:00
|
|
|
module.exports = {
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
plugins: ['@typescript-eslint', 'simple-import-sort', 'prettier'],
|
|
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
|
2022-06-10 13:57:49 +00:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.ts', '*.tsx', '.js', '.jsx'],
|
|
|
|
parserOptions: {
|
|
|
|
project: ['./tsconfig.json'],
|
|
|
|
sourceType: 'module',
|
2022-06-10 14:33:31 +00:00
|
|
|
tsconfigRootDir: __dirname,
|
2022-06-10 13:57:49 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2022-05-16 09:23:59 +00:00
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
jest: true,
|
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
'import/resolver': {
|
|
|
|
node: {
|
|
|
|
paths: ['src'],
|
|
|
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/interface-name-prefix': 'off',
|
|
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
2023-04-09 05:24:34 +00:00
|
|
|
'simple-import-sort/imports': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
groups: [['(@)?nestjs(.*)$'], ['(@)?think(.*)$'], ['^@?\\w'], ['@/(.*)'], ['^[./]']],
|
|
|
|
},
|
|
|
|
],
|
2022-05-16 09:23:59 +00:00
|
|
|
'simple-import-sort/exports': 'error',
|
|
|
|
},
|
|
|
|
};
|