forked from sseung30/LiveTrip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
76 lines (74 loc) · 2.41 KB
/
eslint.config.mjs
File metadata and controls
76 lines (74 loc) · 2.41 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { sheriff } from 'eslint-config-sheriff';
// import nextPlugin from '@next/eslint-plugin-next';
const sheriffOptions = {
react: true,
lodash: false,
remeda: false,
next: true,
astro: false,
playwright: false,
storybook: true,
jest: false,
vitest: false,
};
const eslintConfig = [
// Ensure Next.js plugin is detected by Next.js tooling
// ...nextPlugin.configs['core-web-vitals'],
...sheriff(sheriffOptions),
{
languageOptions: {
parserOptions: {
projectService: true,
project: './tsconfig.json',
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
'@typescript-eslint/no-misused-promises': [
'error',
{
checksVoidReturn: false,
},
],
'no-console': 'off',
// 절대경로 통일을 위해 ".*" 패턴 제한
'no-restricted-imports': [
'error',
{
patterns: ['.*'],
},
],
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-floating-promises': 'off',
'react-refresh/only-export-components': 'off',
'react/jsx-no-useless-fragment': 'off',
'@typescript-eslint/naming-convention': 'off',
'jsdoc/require-description-complete-sentence': 'off',
'func-style': 'off',
'no-negated-condition': 'off',
'unicorn/consistent-function-scoping': 'off',
'react/no-multi-comp': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/require-await': 'off',
'tsdoc/syntax': 'off',
'fsecond/valid-event-listener': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'fsecond/prefer-destructured-optionals': 'off',
'@typescript-eslint/no-misused-spread': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@regru/prefer-early-return/prefer-early-return': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-base-to-string': 'off',
'sonarjs/no-duplicate-string': 'off',
'regexp/no-obscure-range': 'off',
'unicorn/prefer-type-error': 'off',
'no-restricted-syntax/noClasses': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'no-fallthrough': 'off',
'@typescript-eslint/no-shadow': 'off',
'arrow-return-style/arrow-return-style': 'off',
},
},
];
export default eslintConfig;