@hyeon/linter 7.0.23 → 7.0.25
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/package.json +2 -1
- package/src/base.mjs +16 -0
- package/src/hansanghyeon.mjs +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyeon/linter",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.25",
|
|
4
4
|
"description": "Hansanghyun custom eslint settings",
|
|
5
5
|
"main": "./src/index.mjs",
|
|
6
6
|
"scripts": {
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
|
33
33
|
"@typescript-eslint/parser": "^8.16.0",
|
|
34
34
|
"eslint-config-prettier": "^9.1.0",
|
|
35
|
+
"eslint-plugin-import": "^2.31.0",
|
|
35
36
|
"eslint-plugin-prettier": "^5.2.1",
|
|
36
37
|
"eslint-plugin-react": "^7.37.2",
|
|
37
38
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
package/src/base.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import js from '@eslint/js';
|
|
2
|
+
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
3
|
+
import importPlugin from 'eslint-plugin-import';
|
|
2
4
|
|
|
3
5
|
export default [
|
|
4
6
|
js.configs.recommended,
|
|
7
|
+
importPlugin.flatConfigs.recommended,
|
|
5
8
|
{
|
|
6
9
|
rules: {
|
|
7
10
|
camelcase: [
|
|
@@ -24,4 +27,17 @@ export default [
|
|
|
24
27
|
],
|
|
25
28
|
},
|
|
26
29
|
},
|
|
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
|
+
},
|
|
27
43
|
];
|
package/src/hansanghyeon.mjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
2
|
-
|
|
3
1
|
export default [
|
|
4
2
|
{
|
|
5
3
|
rules: {
|
|
@@ -7,19 +5,4 @@ export default [
|
|
|
7
5
|
'lines-around-comment': ['error', { 'beforeBlockComment': true }],
|
|
8
6
|
}
|
|
9
7
|
},
|
|
10
|
-
{
|
|
11
|
-
plugins: {
|
|
12
|
-
"simple-import-sort": simpleImportSort,
|
|
13
|
-
},
|
|
14
|
-
rules: {
|
|
15
|
-
'simple-import-sort/imports': ["error", {
|
|
16
|
-
group
|
|
17
|
-
}],
|
|
18
|
-
"simple-import-sort/exports": "error",
|
|
19
|
-
"import/first": "error",
|
|
20
|
-
"import/newline-after-import": "error",
|
|
21
|
-
"import/no-duplicates": "error",
|
|
22
|
-
"import/no-unresolved": "off"
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
8
|
];
|