-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
44 lines (44 loc) · 1.38 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
35
36
37
38
39
40
41
42
43
44
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'airbnb',
'airbnb-typescript',
'plugin:neverthrow/recommended',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
project: ['./tsconfig.eslint.json'],
createDefaultProgram: true,
tsconfigRootDir: __dirname,
},
env: {
browser: true,
jest: true,
node: true,
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'import/prefer-default-export': 'off',
'import/no-cycle': 'off',
'neverthrow/must-use-result': 'off',
'no-console': 'off',
'no-restricted-exports': 'off',
'no-shadow': 'off',
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
'react/jsx-props-no-spreading': 'off',
'react/react-in-jsx-scope': 'off',
'react/require-default-props': 'off',
'class-methods-use-this': 'off',
'jsx-a11y/no-autofocus': 'off',
'no-await-in-loop': 'off',
},
};