@hyeon/linter 7.0.18 → 7.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,18 +1,18 @@
1
1
  ## Installation
2
2
 
3
3
  ```bash
4
- npm install --save-dev @hyeon/eslint-config
4
+ npm install --save-dev @hyeon/linter
5
5
  ```
6
6
 
7
7
  ## Usage
8
8
 
9
9
  ```js
10
- import hyeonEslintConfig from '@hyeon/eslint-config'
10
+ import hyeonLinter from '@hyeon/linter'
11
11
 
12
12
  export default [
13
- ...hyeonEslintConfig.recommended,
14
- ...hyeonEslintConfig.react,
15
- ...hyeonEslintConfig.prettier,
16
- ...hyeonEslintConfig.typescript,
13
+ ...hyeonLinter.recommended,
14
+ ...hyeonLinter.react,
15
+ ...hyeonLinter.prettier,
16
+ ...hyeonLinter.typescript,
17
17
  ]
18
18
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyeon/linter",
3
- "version": "7.0.18",
3
+ "version": "7.0.20",
4
4
  "description": "Hansanghyun custom eslint settings",
5
5
  "main": "./src/index.mjs",
6
6
  "scripts": {
package/src/base.mjs CHANGED
@@ -1,10 +1,7 @@
1
1
  import js from '@eslint/js';
2
- import simpleImportSort from "eslint-plugin-simple-import-sort";
3
- import importPlugin from 'eslint-plugin-import';
4
2
 
5
3
  export default [
6
4
  js.configs.recommended,
7
- importPlugin.flatConfigs.recommended,
8
5
  {
9
6
  rules: {
10
7
  camelcase: [
@@ -27,17 +24,4 @@ export default [
27
24
  ],
28
25
  },
29
26
  },
30
- {
31
- plugins: {
32
- "simple-import-sort": simpleImportSort,
33
- },
34
- rules: {
35
- "simple-import-sort/imports": "error",
36
- "simple-import-sort/exports": "error",
37
- "import/first": "error",
38
- "import/newline-after-import": "error",
39
- "import/no-duplicates": "error",
40
- "import/no-unresolved": "off"
41
- },
42
- }
43
27
  ];
@@ -0,0 +1,28 @@
1
+ import importPlugin from 'eslint-plugin-import';
2
+ import importPlugin from 'eslint-plugin-import';
3
+
4
+ export default [
5
+ importPlugin.flatConfigs.recommended,
6
+ {
7
+ plugins: {
8
+ "simple-import-sort": simpleImportSort,
9
+ },
10
+ rules: {
11
+ 'no-empty-pattern': 'off',
12
+ 'lines-around-comment': ['error', { 'beforeBlockComment': true }],
13
+ 'simple-import-sort/imports': [
14
+ 'error',
15
+ {
16
+ 'groups': [
17
+ // 그룹 설정을 비움
18
+ ],
19
+ }
20
+ ],
21
+ "simple-import-sort/exports": "error",
22
+ "import/first": "error",
23
+ "import/newline-after-import": "error",
24
+ "import/no-duplicates": "error",
25
+ "import/no-unresolved": "off"
26
+ },
27
+ },
28
+ ];
@@ -1,16 +0,0 @@
1
- export default [
2
- {
3
- rules: {
4
- 'no-empty-pattern': 'off',
5
- 'lines-around-comment': ['error', { 'beforeBlockComment': true }],
6
- 'simple-import-sort/imports': [
7
- 'error',
8
- {
9
- 'groups': [
10
- // 그룹 설정을 비움
11
- ],
12
- }
13
- ],
14
- },
15
- },
16
- ];