-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.base.js
36 lines (36 loc) · 1.08 KB
/
.eslintrc.base.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
module.exports = {
globals: {
it: true,
describe: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['../backend/tsconfig.json', '../frontend/tsconfig.json'],
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier',
'plugin:prettier/recommended',
],
rules: {
'no-useless-escape': 1,
'no-duplicate-imports': 'error',
'react/jsx-no-target-blank': 0,
'require-yield': 0,
'no-case-declarations': 0,
// TypeScript-specific
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-empty-interface': 0,
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/no-unused-vars': [
'warn',
{ ignoreRestSiblings: true, argsIgnorePattern: '^_' },
],
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/no-use-before-define': 0,
},
};