forked from team-wedding/front-end
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
39 lines (37 loc) · 1.06 KB
/
eslint.config.js
File metadata and controls
39 lines (37 loc) · 1.06 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
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
import storybook from 'eslint-plugin-storybook';
import ts from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import react from 'eslint-plugin-react';
import prettier from 'eslint-config-prettier';
/** @type {import("eslint").Linter.FlatConfig[]} */
export default [
{
files: ['**/*.{js,jsx,ts,tsx}'],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
},
plugins: {
'@typescript-eslint': ts,
react,
},
rules: {
...ts.configs.recommended.rules,
...react.configs.recommended.rules,
'react/react-in-jsx-scope': 'off', // JSX Transform 설정
'react/prop-types': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
},
settings: {
react: {
version: 'detect', // React 버전 자동 감지
},
},
},
prettier,
...storybook.configs['flat/recommended'],
];