@master/eslint-config-css 2.0.0-rc.76 → 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.
@@ -8,8 +8,8 @@ $ tsdown --config ../../shared/tsdown-package.config.ts
8
8
  ℹ dist/index.d.ts 0.15 kB │ gzip: 0.13 kB
9
9
  ℹ 2 files, total: 0.34 kB
10
10
  [PLUGIN_TIMINGS] Your build spent significant time in plugins. Here is a breakdown:
11
- - tsdown:deps (65%)
12
- - rolldown-plugin-dts:generate (34%)
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
- ✔ Build complete in 4598ms
15
+ ✔ Build complete in 4574ms
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
- /** @type {import('eslint').Linter.Config[]} */
69
- export default [...css]
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
- export default [
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.76"
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.76",
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",
@@ -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
+ ])