@simplysm/eslint-plugin 12.5.13 → 12.5.15

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplysm/eslint-plugin",
3
- "version": "12.5.13",
3
+ "version": "12.5.15",
4
4
  "description": "심플리즘 패키지 - ESLINT 플러그인",
5
5
  "author": "김석래",
6
6
  "repository": {
@@ -15,11 +15,14 @@
15
15
  "node": "20.16.0"
16
16
  },
17
17
  "dependencies": {
18
- "@typescript-eslint/utils": "^8.6.0",
18
+ "@eslint/compat": "^1.1.1",
19
+ "@typescript-eslint/utils": "^8.7.0",
19
20
  "angular-eslint": "^18.3.1",
20
- "eslint": "^9.11.0",
21
+ "eslint": "^9.11.1",
22
+ "eslint-plugin-deprecation": "^3.0.0",
23
+ "eslint-plugin-import": "^2.30.0",
21
24
  "globals": "^15.9.0",
22
25
  "typescript": "~5.5.4",
23
- "typescript-eslint": "^8.6.0"
26
+ "typescript-eslint": "^8.7.0"
24
27
  }
25
28
  }
@@ -2,6 +2,9 @@ import globals from "globals";
2
2
  import tseslint from "typescript-eslint";
3
3
  import ngeslint from "angular-eslint";
4
4
  import plugin from "../plugin.js";
5
+ import deprecationPlugin from "eslint-plugin-deprecation";
6
+ import importPlugin from "eslint-plugin-import";
7
+ import { fixupPluginRules } from "@eslint/compat";
5
8
 
6
9
  export default [
7
10
  {
@@ -16,7 +19,11 @@ export default [
16
19
  },
17
20
  {
18
21
  files: ["**/*.js"],
22
+ plugins: {
23
+ import: importPlugin
24
+ },
19
25
  rules: {
26
+ // 기본
20
27
  "no-console": ["warn"],
21
28
  "no-warning-comments": ["warn"],
22
29
 
@@ -27,6 +34,9 @@ export default [
27
34
  "no-unused-expressions": ["error"],
28
35
  "no-unused-vars": ["error"],
29
36
  "no-undef": ["error"],
37
+
38
+ // import
39
+ "import/no-extraneous-dependencies": ["error"], // 느림
30
40
  },
31
41
  },
32
42
  ...tseslint.config(
@@ -36,16 +46,29 @@ export default [
36
46
  "@typescript-eslint": tseslint.plugin,
37
47
  "@angular-eslint": ngeslint.tsPlugin,
38
48
  "@simplysm": plugin,
49
+ "deprecation": fixupPluginRules(deprecationPlugin),
50
+ import: importPlugin
39
51
  },
40
52
  languageOptions: {
41
53
  parser: tseslint.parser,
42
54
  },
55
+ /*settings: {
56
+ "import/parsers": {
57
+ "@typescript-eslint/parser": [".ts", ".tsx"]
58
+ },
59
+ },*/
43
60
  processor: ngeslint.processInlineTemplates,
44
61
  rules: {
45
62
  // 기본
46
63
  "no-console": ["warn"],
47
64
  "no-warning-comments": ["warn"],
48
65
 
66
+ // import
67
+ "import/no-extraneous-dependencies": ["error"], // 느림
68
+
69
+ // Deprecation
70
+ "deprecation/deprecation": ["warn"],
71
+
49
72
  // 타입스크립트
50
73
  "@typescript-eslint/require-await": ["error"],
51
74
  "@typescript-eslint/await-thenable": ["error"],
@@ -53,7 +76,7 @@ export default [
53
76
  "@typescript-eslint/no-floating-promises": ["error"],
54
77
  // "@typescript-eslint/semi": ["error"], // Deprecated (https://typescript-eslint.io/rules/semi/)
55
78
  "@typescript-eslint/no-shadow": ["error"],
56
- "@typescript-eslint/no-unnecessary-condition": ["error", {allowConstantLoopConditions: true}],
79
+ "@typescript-eslint/no-unnecessary-condition": ["error", { allowConstantLoopConditions: true }],
57
80
  "@typescript-eslint/no-unnecessary-type-assertion": ["error"],
58
81
  "@typescript-eslint/non-nullable-type-assertion-style": ["error"],
59
82
  "@typescript-eslint/prefer-reduce-type-parameter": ["error"],