@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.
- package/package.json +1 -1
- package/src/configs/root.js +63 -42
package/package.json
CHANGED
package/src/configs/root.js
CHANGED
|
@@ -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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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
|
{
|