-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.cjs
52 lines (52 loc) · 1.3 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
44
45
46
47
48
49
50
51
52
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'airbnb',
'airbnb-typescript',
'airbnb/hooks',
'plugin:react/recommended',
],
overrides: [
{
files: ['**/*.cjs'],
env: {
node: true,
},
},
],
ignorePatterns: ['.eslintrc.cjs', 'vite.config.ts'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['react', '@typescript-eslint', 'prettier'],
root: true,
rules: {
'react/react-in-jsx-scope': 0,
'react/function-component-definition': [2, { namedComponents: 'arrow-function' }],
curly: [2, 'all'],
'react/no-array-index-key': 1,
'arrow-parens': [2, 'as-needed'],
'max-len': 1,
'react/prop-types': 0,
'react/require-default-props': 0,
'implicit-arrow-linebreak': 0,
'object-curly-newline': 0,
'react/jsx-one-expression-per-line': 0,
'prettier/prettier': 2,
'@typescript-eslint/comma-dangle': 0,
'function-paren-newline': 0,
'operator-linebreak': 0,
'react/jsx-curly-newline': 0,
'react/jsx-props-no-spreading': 0,
'react/no-unescaped-entities': 0,
},
};