@master/eslint-config-css 2.0.0-rc.71 → 2.0.0-rc.72
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/AI.md +29 -8
- package/README.md +1 -1
- package/package.json +1 -1
- package/tests/test.ts +8 -6
package/AI.md
CHANGED
|
@@ -2,26 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
## Responsibility
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
`@master/eslint-config-css` re-exports the recommended config from `@master/eslint-plugin-css`.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Owns
|
|
8
|
+
|
|
9
|
+
- Config wrapper package entrypoint.
|
|
10
|
+
- Compatibility with the plugin recommended config shape.
|
|
11
|
+
|
|
12
|
+
## Does Not Own
|
|
13
|
+
|
|
14
|
+
- ESLint rules.
|
|
15
|
+
- Plugin settings schema.
|
|
16
|
+
- Class parsing, validation, ordering, or autofix behavior.
|
|
17
|
+
|
|
18
|
+
## Public Surface
|
|
19
|
+
|
|
20
|
+
- Root config export.
|
|
21
|
+
|
|
22
|
+
## Key Files
|
|
8
23
|
|
|
9
24
|
- `src/index.ts`
|
|
10
25
|
|
|
11
|
-
##
|
|
26
|
+
## Risk Areas
|
|
12
27
|
|
|
13
28
|
- Public config compatibility.
|
|
14
|
-
-
|
|
29
|
+
- Drift from `@master/eslint-plugin-css` recommended config.
|
|
15
30
|
|
|
16
|
-
##
|
|
31
|
+
## Safe Changes
|
|
17
32
|
|
|
18
|
-
-
|
|
33
|
+
- Wrapper export fixes that stay aligned with the plugin.
|
|
34
|
+
- Tests for config re-export behavior.
|
|
35
|
+
|
|
36
|
+
## Dangerous Changes
|
|
37
|
+
|
|
38
|
+
- Diverging from the plugin recommended config without a clear reason.
|
|
39
|
+
- Adding rule behavior here instead of in `@master/eslint-plugin-css`.
|
|
19
40
|
|
|
20
41
|
## Validation
|
|
21
42
|
|
|
22
43
|
```sh
|
|
23
44
|
pnpm --filter @master/eslint-config-css test
|
|
24
|
-
pnpm --filter @master/eslint-config-css
|
|
45
|
+
pnpm --filter @master/eslint-config-css lint
|
|
25
46
|
pnpm --filter @master/eslint-config-css type-check
|
|
47
|
+
pnpm --filter @master/eslint-config-css build
|
|
26
48
|
```
|
|
27
|
-
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/eslint-config-css","type":"module","scripts":{"build":"techor build \"src/**/*.ts\" --formats esm","dev":"pnpm build --watch","type-check":"tsc --noEmit","test":"vitest","lint":"eslint src *.mjs"},"keywords":["mastercss","eslint","eslintconfig"],"license":"MIT","description":"Master CSS ESLint Configuration","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/eslint-config"},"main":"./dist/index.mjs","module":"./dist/index.mjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"}},"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/eslint-plugin-css":"^2.0.0-rc.
|
|
1
|
+
{"name":"@master/eslint-config-css","type":"module","scripts":{"build":"techor build \"src/**/*.ts\" --formats esm","dev":"pnpm build --watch","type-check":"tsc --noEmit","test":"vitest","lint":"eslint src *.mjs"},"keywords":["mastercss","eslint","eslintconfig"],"license":"MIT","description":"Master CSS ESLint Configuration","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/eslint-config"},"main":"./dist/index.mjs","module":"./dist/index.mjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"}},"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/eslint-plugin-css":"^2.0.0-rc.72"},"peerDependencies":{"eslint":">=9.0.0"},"devDependencies":{"@angular-eslint/template-parser":"^21.4.0","eslint":"^10.5.0"},"version":"2.0.0-rc.72"}
|
package/tests/test.ts
CHANGED
|
@@ -5,16 +5,18 @@ test('ESLint Configuration is valid', async () => {
|
|
|
5
5
|
const eslint = new ESLint({ cwd: __dirname })
|
|
6
6
|
const result = await eslint.lintFiles('./index.html')
|
|
7
7
|
expect(result[0].errorCount).toBe(0)
|
|
8
|
-
expect(result[0].warningCount).toBe(
|
|
8
|
+
expect(result[0].warningCount).toBe(9)
|
|
9
9
|
expect(result[0].messages.map((eachMessage) => eachMessage.message)).toEqual(
|
|
10
10
|
[
|
|
11
11
|
'No consistent class order followed.',
|
|
12
|
-
'"m:0.625rem"
|
|
13
|
-
'"m:5x" applies the same declarations as "m:0.625rem" and "m:1.875rem".',
|
|
14
|
-
'"m:1.875rem" applies the same declarations as "m:0.625rem" and "m:5x".',
|
|
15
|
-
'"m:10x@sm" applies the same declarations as "m:3.125rem@sm".',
|
|
16
|
-
'"m:3.125rem@sm" applies the same declarations as "m:10x@sm".',
|
|
12
|
+
'"m:0.625rem", "m:5x", and "m:10x@sm" are overridden by "m:1.875rem" and "m:3.125rem@sm".',
|
|
17
13
|
'No consistent class order followed.',
|
|
14
|
+
'Prefer "font:xs" over "font:.75rem".',
|
|
15
|
+
'Prefer "font:2xl@sm" over "font:1.5rem@sm".',
|
|
16
|
+
'Prefer "mx:8x mt:8x" over "m:8x" because "mb:12x" overrides part of it.',
|
|
17
|
+
'Prefer "m:xl" over "m:8x".',
|
|
18
|
+
'Prefer "font:3xl@md" over "font:2rem@md".',
|
|
19
|
+
'Prefer "mb:2xl" over "mb:12x".',
|
|
18
20
|
]
|
|
19
21
|
)
|
|
20
22
|
})
|