-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
43 lines (43 loc) · 1.51 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
43
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: ['airbnb', 'airbnb-typescript'],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
plugins: ['react-refresh', '@typescript-eslint', 'react'],
rules: {
'react/jsx-props-no-spreading': 'off',
'no-unused-expressions': 'off',
'linebreak-style': 0,
'import/prefer-default-export': 0,
'import/extensions': 0,
'no-use-before-define': 0,
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'no-shadow': 0,
'react/prop-types': 0,
'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
'jsx-a11y/no-noninteractive-element-interactions': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,
'react/function-component-definition': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'arrow-body-style': 'off',
'object-curly-newline': 0,
'react/jsx-one-expression-per-line': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'operator-linebreak': 0,
'implicit-arrow-linebreak': 'off',
'arrow-parens': ['error', 'as-needed'],
'dot-notation': 'off',
'@typescript-eslint/dot-notation': 'error',
'@typescript-eslint/indent': 0,
},
};