-
-
Notifications
You must be signed in to change notification settings - Fork 753
/
eslint.config.mjs
63 lines (61 loc) · 1.92 KB
/
eslint.config.mjs
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
63
// @ts-check
import { defineConfig } from 'eslint-config-hyoban'
export default defineConfig(
{
formatting: false,
lessOpinionated: true,
ignores: [],
preferESM: false,
react: 'next',
tailwindCSS:true
},
{
settings: {
tailwindcss: {
whitelist: ['center'],
},
},
rules: {
'package-json/valid-package-def': 'off',
'@eslint-react/no-missing-key': 'warn',
'no-restricted-syntax': 'off',
'import/no-anonymous-default-export': 'off',
eqeqeq: 'warn',
'no-console': 'warn',
'unicorn/prefer-math-trunc': 'off',
'unicorn/prefer-dom-node-remove': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
'no-empty': 'off',
'@typescript-eslint/no-empty-object-type': 'warn',
'unicorn/prefer-query-selector': 0,
'regexp/no-super-linear-backtracking': 0,
'regexp/no-useless-assertions': 0,
'unicorn/no-new-array': 0,
'@typescript-eslint/method-signature-style': 0,
'unicorn/prefer-code-point': 'warn',
'unicorn/no-object-as-default-parameter': 'warn',
'unused-imports/no-unused-vars': 'warn',
'@eslint-react/no-unstable-default-props': 'warn',
'unicorn/prefer-regexp-test': 'warn',
'no-unsafe-optional-chaining': 'warn',
'unicorn/prefer-logical-operator-over-ternary': 'warn',
'arrow-body-style': 0,
'unicorn/no-array-callback-reference': 0,
'prefer-regex-literals': 0,
'regexp/optimal-quantifier-concatenation': 'warn',
'unicorn/prefer-string-slice': 0,
'array-callback-return': 0,
'regexp/no-unused-capturing-group': 1,
'unicorn/no-anonymous-default-export': 0,
'unicorn/no-magic-array-flat-depth': 1,
'react-refresh/only-export-components': 0,
},
},
{
files: ['**/*/package.json', 'package.json'],
rules: {
'package-json/valid-package-def': 0,
'package-json/valid-name': 0,
},
},
)