@simplysm/eslint-plugin 12.9.35 → 12.9.37

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/configs/root.js +63 -42
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplysm/eslint-plugin",
3
- "version": "12.9.35",
3
+ "version": "12.9.37",
4
4
  "description": "심플리즘 패키지 - ESLINT 플러그인",
5
5
  "author": "김석래",
6
6
  "repository": {
@@ -60,7 +60,7 @@ export default [
60
60
  "@angular-eslint": ngeslint.tsPlugin,
61
61
  "import": importPlugin,
62
62
  },
63
- settings: {
63
+ /*settings: {
64
64
  "import/resolver": {
65
65
  typescript: {
66
66
  project: [
@@ -68,7 +68,7 @@ export default [
68
68
  ],
69
69
  },
70
70
  },
71
- },
71
+ },*/
72
72
  processor: ngeslint.processInlineTemplates,
73
73
  languageOptions: {
74
74
  parser: tseslint.parser,
@@ -188,46 +188,67 @@ export default [
188
188
  "@simplysm/ts-no-throw-not-implement-error": ["warn"],
189
189
 
190
190
 
191
- // -- 아래 룰들은 매우 느리거나, 라이브러리에서만 필요한것
192
- // "import/no-extraneous-dependencies": [
193
- // "error",
194
- // {
195
- // "devDependencies": [
196
- // "**/*.spec.ts",
197
- // "**/lib/**",
198
- // "**!/eslint.config.js",
199
- // "**!/simplysm.js",
200
- // "**/vitest.config.js",
201
- // ],
202
- // },
203
- // ],
204
- // "@simplysm/ts-no-exported-types": [
205
- // "error", {
206
- // types: [
207
- // {
208
- // ban: "Uint8Array",
209
- // safe: "Buffer",
210
- // }, {
211
- // ban: "ArrayBuffer",
212
- // safe: "Buffer",
213
- // ignoreInGeneric: true,
214
- // },
215
- // ],
216
- // },
217
- // ],
218
- // "@simplysm/ts-no-buffer-in-typedarray-context": ["error"],
219
- // '@typescript-eslint/no-restricted-imports': [
220
- // 'error',
221
- // {
222
- // paths: [
223
- // {
224
- // name: '@angular/core',
225
- // importNames: ['model'],
226
- // message: '`model`은 사용할 수 없습니다. input/output/$model을 사용하세요.',
227
- // },
228
- // ],
229
- // },
230
- // ],
191
+ // -- 아래 적용 검토가 필요한것
192
+ "import/no-extraneous-dependencies": [
193
+ "error",
194
+ {
195
+ "devDependencies": [
196
+ "**/*.spec.ts",
197
+ "**/lib/**",
198
+ "**/eslint.config.js",
199
+ "**/simplysm.js",
200
+ "**/vitest.config.js",
201
+ ],
202
+ },
203
+ ],
204
+ "@simplysm/ts-no-exported-types": [
205
+ "error", {
206
+ types: [
207
+ {
208
+ ban: "ArrayBuffer",
209
+ safe: "Buffer",
210
+ ignoreInGeneric: true,
211
+ },
212
+ ...[
213
+ 'Uint8Array', 'Uint8ClampedArray',
214
+ 'Int8Array', 'Uint16Array', 'Int16Array',
215
+ 'Uint32Array', 'Int32Array',
216
+ 'Float32Array', 'Float64Array',
217
+ "BigInt64Array", "BigUint64Array",
218
+ ].map(item => ({
219
+ ban: item,
220
+ safe: "Buffer",
221
+ })),
222
+ ],
223
+ },
224
+ ],
225
+ "@simplysm/ts-no-buffer-in-typedarray-context": ["error"],
226
+ '@typescript-eslint/no-restricted-imports': [
227
+ 'error',
228
+ {
229
+ paths: [
230
+ // library에서만
231
+ {
232
+ name: '@angular/core',
233
+ importNames: ['model'],
234
+ message: '"model"은 사용할 수 없습니다. input/output/$model을 사용하세요.',
235
+ },
236
+ // fix로 변환됨
237
+ ...[
238
+ "signal",
239
+ "computed",
240
+ "effect",
241
+ "afterRenderEffect",
242
+ "afterRenderComputed",
243
+ "resource",
244
+ ].map(item => ({
245
+ name: '@angular/core',
246
+ importNames: [item],
247
+ message: `"${item}"은 사용할 수 없습니다. $${item}을 사용하세요.`,
248
+ })),
249
+ ],
250
+ },
251
+ ],
231
252
  },
232
253
  },
233
254
  {