-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.eslintrc.js
More file actions
executable file
·53 lines (52 loc) · 1.58 KB
/
Copy path.eslintrc.js
File metadata and controls
executable file
·53 lines (52 loc) · 1.58 KB
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
53
module.exports = {
extends: ['airbnb', 'airbnb/hooks', 'next/core-web-vitals', 'plugin:react/recommended', 'eslint-config-prettier', 'plugin:jsx-a11y/recommended', 'plugin:@react-three/recommended'],
plugins: ['eslint-plugin-prettier', 'react', 'jsx-a11y', '@react-three'],
rules: {
'react/prop-types': 'off',
// 'import-helpers/order-imports': [
// 'warn',
// {
// newlinesBetween: 'always',
// alphabetize: { order: 'asc', ignoreCase: true },
// groups: [
// // Packages `react` related packages come first.
// ['/^react/'],
// ['/^next/', '/^store/'],
// ['/^hooks/', '/^helpers/'],
// ['/^@mui/', '/^components/'],
// '/^pages/',
// ],
// },
// ],
'object-curly-newline': 'off',
'react/no-unknown-property': 'off',
'react/display-name': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
printWidth: 200,
},
],
'no-param-reassign': 'off',
// A temporary hack related to IDE not resolving correct package.json
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'error',
// Since React 17 and typescript 4.1 you can safely disable the rule
'react/react-in-jsx-scope': 'off',
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
tsconfigRootDir: __dirname,
createDefaultProgram: true,
},
settings: {
'import/resolver': {
alias: {
map: [['@src', './src']],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
};