-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
43 lines (43 loc) · 1.53 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
extends: [
'prettier',
'airbnb-typescript',
'airbnb/hooks',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
ignorePatterns: ['node_modules/', '*.config.js', '*.d.ts', '.eslintrc.js', 'prisma/generated-client/'],
rules: {
'consistent-return': 'warn',
'global-require': 'warn',
'max-len': ['warn', 150],
'no-mixed-operators': 'off',
'no-nested-ternary': 'warn',
'no-underscore-dangle': 'off',
'no-script-url': 'warn',
'no-await-in-loop': 'warn',
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
'object-curly-newline': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/click-events-have-key-events': 'warn',
'jsx-a11y/no-static-element-interactions': 'warn',
'import/prefer-default-export': 'off',
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'warn',
'react/prop-types': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
'@typescript-eslint/restrict-template-expressions': 'warn',
'@typescript-eslint/naming-convention': 'warn',
},
};