-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
34 lines (34 loc) · 1.12 KB
/
.eslintrc.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
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'react-app',
],
env: { jest: true, browser: true, node: true },
parser: '@typescript-eslint/parser',
// parserOptions: {
// project: ['./tsconfig.json', './packages/*/tsconfig.json', './apps/*/tsconfig.json'],
// },
plugins: ['@typescript-eslint', 'import', 'node', 'prettier'],
ignorePatterns: ['**/generated', '**/*.js'],
rules: {
'@typescript-eslint/member-ordering': 'warn',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'prettier/prettier': 'warn',
'import/order': ['warn', { alphabetize: { order: 'asc' } }],
'no-console': ['warn'],
},
settings: {
'import/resolver': {
typescript: {},
node: {
extensions: ['.js', '.jsx', '.d.ts', '.ts', '.tsx', '.native.js'],
},
},
},
};