This repository has been archived by the owner on Feb 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
62 lines (62 loc) · 1.5 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module.exports = {
env: {
browser: true,
node: true,
es6: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:astro/recommended',
'prettier',
],
globals: {
astroHTML: true,
},
plugins: ['autofix'],
overrides: [
{
files: ['*.astro'],
parser: 'astro-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.astro'],
},
rules: {
// NOTE: .astroファイルがjsxとして認識されてしまうための考慮。他の解決方法があれば削除する。
'react/react-in-jsx-scope': 'off',
'react/no-unknown-property': 'off',
'react/jsx-key': 'off',
},
},
],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
rules: {
'no-use-before-define': 'off',
'no-console': 'off',
quotes: [
2,
'single',
{
avoidEscape: true,
},
],
'react/prop-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'react/no-danger': 'off',
'react/no-unescaped-entities': 'off',
'import/no-extraneous-dependencies': 'off',
'react/jsx-props-no-spreading': 0,
'react/function-component-definition': 0,
'react/require-default-props': 'off',
'autofix/no-unused-vars': 'error',
},
}