think/packages/server/.eslintrc.js

36 lines
932 B
TypeScript
Raw Permalink Normal View History

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',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
},
};