-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
42 lines (42 loc) · 1.32 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: { browser: true, es2021: true },
extends: [
'airbnb',
'airbnb-typescript',
'airbnb/hooks',
'plugin:react/recommended',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
],
overrides: [],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
plugins: ['react', '@typescript-eslint', 'import', 'prettier'],
rules: {
'react/jsx-no-useless-fragment': 'off',
'react/react-in-jsx-scope': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-empty-function': 'warn',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/default-param-last': 'warn',
'react/function-component-definition': 'off',
'import/extensions': 'off',
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 0,
'no-nested-ternary': 'off',
'import/no-extraneous-dependencies': 'off',
'consistent-return': 'off',
'default-param-last': 'warn',
'react-hooks/exhaustive-deps': 'warn',
'react/require-default-props': 'warn',
},
};