Skip to content

Commit 9488903

Browse files
committed
🚚 yaml 분리
1 parent 69bbb8b commit 9488903

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

‎packages/eslint-config/react/configs.js‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {fileURLToPath} from 'url'
44
import {FlatCompat} from '@eslint/eslintrc'
55
import js from '@eslint/js'
66
import eslintConfigPrettier from 'eslint-config-prettier'
7-
import eslintPluginYml from 'eslint-plugin-yml'
87
import neostandard from 'neostandard'
98

109
// mimic CommonJS variables -- not needed if using CommonJS
@@ -20,16 +19,4 @@ export default [
2019
...neostandard({noStyle: true}),
2120
eslintConfigPrettier,
2221
...compat.extends('plugin:react/recommended', 'plugin:react/jsx-runtime', 'plugin:react-hooks/recommended'),
23-
...eslintPluginYml.configs['flat/recommended'],
24-
...eslintPluginYml.configs['flat/prettier'],
25-
/**
26-
* Disable rules that cause problems with YAML files requiring type information
27-
*/
28-
{
29-
files: ['**/*.yaml', '**/*.yml'],
30-
rules: {
31-
'@typescript-eslint/naming-convention': 'off',
32-
'@typescript-eslint/consistent-type-imports': 'off',
33-
},
34-
},
3522
]

‎packages/eslint-config/react/index.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ import globals from 'globals'
33
import configs from './configs.js'
44
import rules from './rules/index.js'
55
import typescript from '../typescript/index.js'
6+
import yaml from '../yaml/index.js'
67

78
export default [
8-
...typescript,
99
...configs,
10+
...typescript,
1011
...rules,
12+
...yaml,
1113
{
1214
languageOptions: {
1315
globals: {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import eslintPluginYml from 'eslint-plugin-yml'
2+
3+
export default [
4+
...eslintPluginYml.configs['flat/recommended'],
5+
...eslintPluginYml.configs['flat/prettier'],
6+
/**
7+
* Disable rules that cause problems with YAML files requiring type information
8+
*/
9+
{
10+
files: ['**/*.yaml', '**/*.yml'],
11+
rules: {
12+
'@typescript-eslint/naming-convention': 'off',
13+
'@typescript-eslint/consistent-type-imports': 'off',
14+
},
15+
},
16+
]

0 commit comments

Comments
 (0)