-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.13 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
module.exports = {
root: true,
env: {
node: true,
es6: true,
browser: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020, // to enable features such as async/await
project: './tsconfig.json',
},
ignorePatterns: ['node_modules/*', 'public/*', '*.js'],
settings: { react: { version: 'detect' } },
plugins: [
'@typescript-eslint',
],
extends: [
'plugin:react/recommended', // React rules
'plugin:react-hooks/recommended', // React hooks rules
'plugin:jsx-a11y/recommended', // Accessibility rules
'plugin:@typescript-eslint/recommended', // TypeScript rules
'airbnb',
'airbnb-typescript',
],
rules: {
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-props-no-spreading': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'@typescript-eslint/explicit-function-return-type': 'off',
'max-len': 'off',
'react/function-component-definition': 'off',
'react/jsx-one-expression-per-line': 'off',
'no-console': 'off',
'no-nested-ternary': 'off',
},
};