mirror of https://github.com/fantasticit/think.git
30 lines
814 B
TypeScript
30 lines
814 B
TypeScript
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
project: './packages/server/tsconfig.json',
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['@typescript-eslint', 'simple-import-sort', 'prettier'],
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
|
|
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',
|
|
'simple-import-sort/imports': 'error',
|
|
'simple-import-sort/exports': 'error',
|
|
},
|
|
};
|