@simplysm/eslint-plugin 12.0.1 → 12.1.2

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.0.1",
3
+ "version": "12.1.2",
4
4
  "description": "심플리즘 패키지 - ESLINT 플러그인",
5
5
  "author": "김석래",
6
6
  "repository": {
@@ -12,15 +12,15 @@
12
12
  "type": "module",
13
13
  "main": "src/index.cjs",
14
14
  "engines": {
15
- "node": "^18"
15
+ "node": "18.18.2"
16
16
  },
17
17
  "dependencies": {
18
18
  "@angular-eslint/eslint-plugin": "^17.5.2",
19
19
  "@angular-eslint/eslint-plugin-template": "^17.5.2",
20
20
  "@angular-eslint/template-parser": "^17.5.2",
21
- "@typescript-eslint/eslint-plugin": "^7.14.1",
21
+ "@typescript-eslint/eslint-plugin": "^7.15.0",
22
22
  "@typescript-eslint/experimental-utils": "^5.62.0",
23
- "@typescript-eslint/parser": "^7.14.1",
23
+ "@typescript-eslint/parser": "^7.15.0",
24
24
  "eslint": "^8.57.0",
25
25
  "eslint-import-resolver-typescript": "^3.6.1",
26
26
  "eslint-module-utils": "^2.8.1",
@@ -16,7 +16,7 @@ module.exports = {
16
16
  },
17
17
  overrides: [
18
18
  {
19
- files: ["*.js", "*.cjs", "*.mjs"],
19
+ files: ["*.js", "*.cjs"],
20
20
  plugins: ["import"],
21
21
  rules: {
22
22
  // import
@@ -30,85 +30,58 @@ module.exports = {
30
30
  "no-shadow": ["error"],
31
31
  "no-duplicate-imports": ["error"],
32
32
  "no-unused-expressions": ["error"],
33
- // "no-unused-vars": ["error"],
33
+ "no-unused-vars": ["error"],
34
34
  "no-undef": ["error"],
35
- // "linebreak-style": ["error", "unix"]
36
-
37
- // "arrow-parens": ["error"]
38
35
  },
39
36
  },
40
37
  {
41
- files: ["*.ts", "*.tsx"],
42
- parser: "@typescript-eslint/parser",
43
- // parserOptions: {
44
- // project: [
45
- // "./tsconfig.json",
46
- // "./packages/*/tsconfig.json"
47
- // ]
48
- // },
38
+ files: ["*.ts"],
49
39
  plugins: [
50
- "@typescript-eslint",
51
40
  "import",
52
41
  "@simplysm",
53
- "@angular-eslint"
42
+ "@typescript-eslint",
43
+ "@angular-eslint",
44
+ "@angular-eslint/template"
54
45
  ],
46
+ parser: '@typescript-eslint/parser',
55
47
  processor: "@angular-eslint/template/extract-inline-html",
56
48
  settings: {
57
- "import/parsers": {
58
- "@typescript-eslint/parser": [".ts", ".tsx"]
49
+ 'import/extensions': [".js", ".cjs", ".ts"],
50
+ 'import/external-module-folders': ['node_modules', 'node_modules/@types'],
51
+ 'import/parsers': {
52
+ '@typescript-eslint/parser': [".ts"],
59
53
  },
60
- // "import/resolver": {
61
- // "typescript": {
62
- // project: "packages/*/tsconfig.json"
63
- // }
64
- // }
54
+ "import/resolver": {
55
+ "typescript": true,
56
+ "node": {
57
+ extensions: [".js", ".cjs", ".ts"]
58
+ }
59
+ }
65
60
  },
66
61
  rules: {
67
62
  // 기본
68
63
  "no-console": ["warn"],
69
64
  "no-warning-comments": ["warn"],
70
- // "arrow-parens": ["error"],
71
- // "linebreak-style": ["error", "unix"],
72
65
 
73
66
  // import
74
67
  "import/no-extraneous-dependencies": ["error"], // 느림
75
- // "import/no-duplicates": ["error"], // 느림
76
68
 
77
69
  // 타입스크립트
78
- // "@typescript-eslint/explicit-member-accessibility": ["error"],
79
70
  "@typescript-eslint/require-await": ["error"],
80
71
  "@typescript-eslint/await-thenable": ["error"],
81
72
  "@typescript-eslint/return-await": ["error", "always"],
82
73
  "@typescript-eslint/no-floating-promises": ["error"],
83
74
  "@typescript-eslint/semi": ["error"],
84
75
  "@typescript-eslint/no-shadow": ["error"],
85
- // "@typescript-eslint/member-delimiter-style": ["error"],
86
- // "@typescript-eslint/no-unnecessary-condition": ["error", {allowConstantLoopConditions: true}],
87
- // "@typescript-eslint/no-unnecessary-type-assertion": ["error"],
76
+ "@typescript-eslint/no-unnecessary-condition": ["error", {allowConstantLoopConditions: true}],
77
+ "@typescript-eslint/no-unnecessary-type-assertion": ["error"],
88
78
  "@typescript-eslint/non-nullable-type-assertion-style": ["error"],
89
79
  "@typescript-eslint/prefer-reduce-type-parameter": ["error"],
90
80
  "@typescript-eslint/prefer-return-this-type": ["error"],
91
- // "@typescript-eslint/prefer-readonly": ["error"],
92
81
  "@typescript-eslint/typedef": ["error"],
93
- // "@typescript-eslint/explicit-function-return-type": ["error", {
94
- // allowExpressions: true,
95
- // allowTypedFunctionExpressions: true,
96
- // allowHigherOrderFunctions: true,
97
- // allowDirectConstAssertionInArrowFunctions: true,
98
- // allowConciseArrowFunctionExpressionsStartingWithVoid: true,
99
- // allowFunctionsWithoutTypeParameters: true
100
- // }],
101
- // "@typescript-eslint/explicit-module-boundary-types": ["error", {
102
- // allowArgumentsExplicitlyTypedAsAny: true,
103
- // allowTypedFunctionExpressions: true,
104
- // allowHigherOrderFunctions: true,
105
- // allowDirectConstAssertionInArrowFunctions: true
106
- // }],
107
82
  "@typescript-eslint/no-unused-expressions": ["error"],
108
- // "@typescript-eslint/no-unused-vars": ["error", {args: "none"}],
83
+ "@typescript-eslint/no-unused-vars": ["error", {args: "none"}],
109
84
  "@typescript-eslint/strict-boolean-expressions": ["error", {
110
- // allowString: true,
111
- // allowNumber: true,
112
85
  allowNullableBoolean: true,
113
86
  allowNullableObject: true
114
87
  }],
@@ -122,11 +95,11 @@ module.exports = {
122
95
  },
123
96
  {
124
97
  files: ["*.html"],
125
- parser: "@angular-eslint/template-parser",
126
98
  plugins: [
127
99
  "@angular-eslint/template",
128
100
  "@simplysm"
129
101
  ],
102
+ parser: "@angular-eslint/template-parser",
130
103
  rules: {
131
104
  "@simplysm/ng-template-no-todo-comments": "warn",
132
105
  "@angular-eslint/template/use-track-by-function": "error"