@master/eslint-config-css 2.0.0-rc.77 → 2.0.0-rc.78
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/.turbo/turbo-build.log +3 -3
- package/README.md +9 -4
- package/package.json +2 -2
- package/tests/eslint.config.js +3 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,8 +8,8 @@ $ tsdown --config ../../shared/tsdown-package.config.ts
|
|
|
8
8
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.15 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
9
9
|
[34mℹ[39m 2 files, total: 0.34 kB
|
|
10
10
|
[33m[PLUGIN_TIMINGS] [0mYour build spent significant time in plugins. Here is a breakdown:
|
|
11
|
-
- rolldown-plugin-dts:generate (
|
|
12
|
-
- tsdown:deps (
|
|
11
|
+
- rolldown-plugin-dts:generate (66%)
|
|
12
|
+
- tsdown:deps (33%)
|
|
13
13
|
See https://rolldown.rs/reference/InputOptions.checks#plugintimings for more details.
|
|
14
14
|
|
|
15
|
-
[32m✔[39m Build complete in [
|
|
15
|
+
[32m✔[39m Build complete in [32m4574ms[39m
|
package/README.md
CHANGED
|
@@ -63,10 +63,12 @@ npm install -D @master/eslint-config-css
|
|
|
63
63
|
Use the flat config in `eslint.config.js`:
|
|
64
64
|
|
|
65
65
|
```js
|
|
66
|
+
import { defineConfig } from 'eslint/config'
|
|
66
67
|
import css from '@master/eslint-config-css'
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
export default defineConfig([
|
|
70
|
+
...css
|
|
71
|
+
])
|
|
70
72
|
```
|
|
71
73
|
|
|
72
74
|
This package combines the recommended class linting config and the standalone stylesheet config from `@master/eslint-plugin-css`.
|
|
@@ -74,7 +76,10 @@ This package combines the recommended class linting config and the standalone st
|
|
|
74
76
|
For custom rules and settings, configure the plugin rules in the same flat config:
|
|
75
77
|
|
|
76
78
|
```js
|
|
77
|
-
|
|
79
|
+
import { defineConfig } from 'eslint/config'
|
|
80
|
+
import css from '@master/eslint-config-css'
|
|
81
|
+
|
|
82
|
+
export default defineConfig([
|
|
78
83
|
...css,
|
|
79
84
|
{
|
|
80
85
|
rules: {
|
|
@@ -83,7 +88,7 @@ export default [
|
|
|
83
88
|
}]
|
|
84
89
|
}
|
|
85
90
|
}
|
|
86
|
-
]
|
|
91
|
+
])
|
|
87
92
|
```
|
|
88
93
|
|
|
89
94
|
## Related docs
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"provenance": true
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@master/eslint-plugin-css": "^2.0.0-rc.
|
|
39
|
+
"@master/eslint-plugin-css": "^2.0.0-rc.78"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"eslint": ">=9.0.0"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@angular-eslint/template-parser": "^21.4.0",
|
|
46
46
|
"eslint": "^10.5.0"
|
|
47
47
|
},
|
|
48
|
-
"version": "2.0.0-rc.
|
|
48
|
+
"version": "2.0.0-rc.78",
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsdown --config ../../shared/tsdown-package.config.ts",
|
|
51
51
|
"dev": "tsdown --config ../../shared/tsdown-package.config.ts --watch",
|
package/tests/eslint.config.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { defineConfig } from 'eslint/config'
|
|
1
2
|
import css from '@master/eslint-config-css'
|
|
2
3
|
import htmlParser from '@angular-eslint/template-parser'
|
|
3
4
|
|
|
4
|
-
export default [
|
|
5
|
+
export default defineConfig([
|
|
5
6
|
...css,
|
|
6
7
|
{
|
|
7
8
|
files: [
|
|
@@ -11,4 +12,4 @@ export default [
|
|
|
11
12
|
parser: htmlParser
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
]
|
|
15
|
+
])
|