@simplysm/lint 13.0.16 → 13.0.20

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/README.md +1 -27
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -13,7 +13,7 @@ npm install @simplysm/lint
13
13
  pnpm add @simplysm/lint
14
14
  ```
15
15
 
16
- ### Required Peer Dependencies
16
+ ### Peer Dependencies
17
17
 
18
18
  This plugin depends on the following packages:
19
19
 
@@ -71,8 +71,6 @@ export default [
71
71
  ];
72
72
  ```
73
73
 
74
- ---
75
-
76
74
  ### Stylelint Config (.stylelintrc.json)
77
75
 
78
76
  #### Using recommended config (recommended)
@@ -122,8 +120,6 @@ Add overrides to disable rules for specific files:
122
120
  }
123
121
  ```
124
122
 
125
- ---
126
-
127
123
  ## Stylelint Rules
128
124
 
129
125
  The `stylelint-recommended` config includes:
@@ -147,8 +143,6 @@ Unsupported features will trigger errors:
147
143
 
148
144
  Use overrides to disable checks for files using modern features intentionally (e.g., Tailwind's built-in nesting).
149
145
 
150
- ---
151
-
152
146
  ## Custom Rules
153
147
 
154
148
  This plugin provides 3 custom rules.
@@ -159,8 +153,6 @@ This plugin provides 3 custom rules.
159
153
  | [`no-subpath-imports-from-simplysm`](#no-subpath-imports-from-simplysm) | problem | Supported | error | Prohibits importing from `@simplysm/*/src/` paths |
160
154
  | [`ts-no-throw-not-implemented-error`](#ts-no-throw-not-implemented-error) | suggestion | Not supported | warn | Warns about usage of `NotImplementedError` |
161
155
 
162
- ---
163
-
164
156
  ### no-hard-private
165
157
 
166
158
  Restricts the use of ECMAScript private fields (`#field`). Use TypeScript's `private` keyword and `_` prefix naming instead.
@@ -229,8 +221,6 @@ class Foo {
229
221
  }
230
222
  ```
231
223
 
232
- ---
233
-
234
224
  ### no-subpath-imports-from-simplysm
235
225
 
236
226
  Prohibits importing from `@simplysm/*` packages through `/src/` paths. Only import through the official entry point (package root).
@@ -277,8 +267,6 @@ Subpaths other than `/src/` are allowed.
277
267
  import { Foo } from "@simplysm/core-common/utils";
278
268
  ```
279
269
 
280
- ---
281
-
282
270
  ### ts-no-throw-not-implemented-error
283
271
 
284
272
  Warns about code that creates `NotImplementedError` from `@simplysm/core-common` with the `new` keyword. This rule prevents unimplemented code from being included in production.
@@ -326,8 +314,6 @@ throw new CC.NotImplementedError(); // Warning
326
314
  - Calling `new NotImplementedError()` without arguments outputs a warning with the Korean default message "미구현".
327
315
  - If a string argument is passed, that string is used as the warning message.
328
316
 
329
- ---
330
-
331
317
  ## recommended Config Details
332
318
 
333
319
  Full list of rules included in the `recommended` config.
@@ -382,8 +368,6 @@ Restrict Node.js-specific API usage for code consistency across all packages.
382
368
  - JS files: `**/lib/**`, `**/eslint.config.js`, `**/simplysm.js`, `**/vitest.config.js`
383
369
  - TS files: `**/lib/**`, `**/eslint.config.ts`, `**/simplysm.ts`, `**/vitest.config.ts`, `**/vitest.setup.ts`
384
370
 
385
- ---
386
-
387
371
  ### JS-only Rules (.js, .jsx)
388
372
 
389
373
  Rules applied only to JS files. Not applied to TS files as the TypeScript compiler performs the same checks.
@@ -396,8 +380,6 @@ Rules applied only to JS files. Not applied to TS files as the TypeScript compil
396
380
  | `no-unused-expressions` | error | Prohibit unused expressions |
397
381
  | `no-undef` | error | Prohibit using undefined variables |
398
382
 
399
- ---
400
-
401
383
  ### TypeScript Rules (.ts, .tsx)
402
384
 
403
385
  Rules applied based on `@typescript-eslint`. Performs precise checks using type information.
@@ -438,8 +420,6 @@ Rules applied based on `@typescript-eslint`. Performs precise checks using type
438
420
  |------|----------|-------------|
439
421
  | `@typescript-eslint/ban-ts-comment` | error | Require 3+ character description for `@ts-expect-error` |
440
422
 
441
- ---
442
-
443
423
  ### SolidJS Rules (.ts, .tsx)
444
424
 
445
425
  Rules applied based on `eslint-plugin-solid`. Applied to both `.ts` and `.tsx` files.
@@ -479,8 +459,6 @@ Rules applied based on `eslint-plugin-solid`. Applied to both `.ts` and `.tsx` f
479
459
  | `solid/style-prop` | error | Enforce `style` prop format |
480
460
  | `solid/self-closing-comp` | error | Enforce self-closing tags |
481
461
 
482
- ---
483
-
484
462
  ### Tailwind CSS Rules (.ts, .tsx)
485
463
 
486
464
  Rules applied based on `eslint-plugin-tailwindcss`. Recognizes `clsx` template literal tags.
@@ -494,8 +472,6 @@ Rules applied based on `eslint-plugin-tailwindcss`. Recognizes `clsx` template l
494
472
  | `tailwindcss/no-custom-classname` | error | Prohibit custom classes not defined in Tailwind |
495
473
  | `tailwindcss/no-unnecessary-arbitrary-value` | error | Prohibit unnecessary arbitrary values |
496
474
 
497
- ---
498
-
499
475
  ### Test File Exception Rules
500
476
 
501
477
  The following rules are relaxed for test files in `**/tests/**/*.ts`, `**/tests/**/*.tsx` paths:
@@ -507,8 +483,6 @@ The following rules are relaxed for test files in `**/tests/**/*.ts`, `**/tests/
507
483
  | `@simplysm/ts-no-throw-not-implemented-error` | off | Allow using not-implemented errors in test code |
508
484
  | `solid/reactivity` | off | Accessing signals inside async callbacks like `waitFor` in tests is intentional |
509
485
 
510
- ---
511
-
512
486
  ## Configuration Summary by File Type
513
487
 
514
488
  | File Pattern | Applied Rules |
package/package.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "name": "@simplysm/lint",
3
- "sideEffects": false,
4
- "version": "13.0.16",
3
+ "version": "13.0.20",
5
4
  "description": "심플리즘 패키지 - Lint 설정 (ESLint + Stylelint)",
6
5
  "author": "김석래",
6
+ "license": "Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://github.com/kslhunter/simplysm.git",
10
10
  "directory": "packages/lint"
11
11
  },
12
- "license": "Apache-2.0",
13
12
  "type": "module",
13
+ "files": [
14
+ "dist",
15
+ "src"
16
+ ],
17
+ "sideEffects": false,
14
18
  "exports": {
15
19
  "./eslint-plugin": {
16
20
  "types": "./dist/eslint-plugin.d.ts",
@@ -25,10 +29,6 @@
25
29
  "default": "./dist/stylelint-recommended.js"
26
30
  }
27
31
  },
28
- "files": [
29
- "dist",
30
- "src"
31
- ],
32
32
  "dependencies": {
33
33
  "@typescript-eslint/utils": "^8.55.0",
34
34
  "eslint": "^9.39.2",