@master/eslint-config-css 2.0.0-rc.5 → 2.0.0-rc.50
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/README.md +2 -2
- package/dist/index.cjs +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +2 -0
- package/eslint.config.mjs +7 -0
- package/package.json +1 -1
- package/src/index.ts +3 -0
- package/tests/eslint.config.mjs +14 -0
- package/tests/index.html +4 -0
- package/tests/test.ts +22 -0
- package/tsconfig.json +12 -0
- package/tsconfig.prod.json +10 -0
- package/vitest.config.ts +4 -0
- package/flat.js +0 -3
- package/index.js +0 -3
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<img alt="Follow @mastercorg" src="https://img.shields.io/static/v1?label=%20&message=twitter&color=f6f7f8&logo=twitter&style=for-the-badge">
|
|
42
42
|
</picture>
|
|
43
43
|
</a>
|
|
44
|
-
<a aria-label="Github Actions" href="https://github.com/
|
|
44
|
+
<a aria-label="Github Actions" href="https://github.com/master-co/css/actions/workflows/release.yml">
|
|
45
45
|
<picture>
|
|
46
46
|
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/master-co/css/release.yml?branch=rc&label=%20&message=twitter&color=212022&logo=githubactions&style=for-the-badge">
|
|
47
47
|
<source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/github/actions/workflow/status/master-co/css/release.yml?branch=rc&label=%20&message=twitter&color=f6f7f8&logo=githubactions&style=for-the-badge&logoColor=%23000">
|
|
@@ -53,4 +53,4 @@
|
|
|
53
53
|
</div>
|
|
54
54
|
|
|
55
55
|
## Documentation
|
|
56
|
-
Check out the official [documentation](https://rc.css.master.co/
|
|
56
|
+
Check out the official [documentation](https://rc.css.master.co/guide/code-linting).
|
package/dist/index.cjs
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/eslint-config-css","keywords":["mastercss","eslint","eslintconfig"],"license":"MIT","description":"Master CSS ESLint
|
|
1
|
+
{"name":"@master/eslint-config-css","type":"module","scripts":{"build":"techor build \"src/**/*.ts\"","dev":"pnpm build --watch","type-check":"tsc --noEmit","test":"vitest","lint":"eslint"},"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.cjs","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","require":"./dist/index.cjs"}},"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/eslint-plugin-css":"^2.0.0-rc.50"},"peerDependencies":{"eslint":">=9.0.0"},"devDependencies":{"@angular-eslint/template-parser":"^18.4.1","eslint":"^9.15.0","shared":"^2.0.0-rc.50"},"version":"2.0.0-rc.50"}
|
package/src/index.ts
ADDED
package/tests/index.html
ADDED
package/tests/test.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { test, expect } from 'vitest'
|
|
2
|
+
import { ESLint } from 'eslint'
|
|
3
|
+
|
|
4
|
+
test('ESLint Configuration is valid', async () => {
|
|
5
|
+
const eslint = new ESLint({ cwd: __dirname })
|
|
6
|
+
const result = await eslint.lintFiles('./index.html')
|
|
7
|
+
expect(result[0].errorCount).toBe(1)
|
|
8
|
+
expect(result[0].warningCount).toBe(6)
|
|
9
|
+
expect(result[0].messages.map((eachMessage) => eachMessage.message)).toEqual(
|
|
10
|
+
[
|
|
11
|
+
'"m:10" applies the same CSS declarations as "m:20" and "m:30".',
|
|
12
|
+
'"m:20" applies the same CSS declarations as "m:10" and "m:30".',
|
|
13
|
+
'"m:30" applies the same CSS declarations as "m:10" and "m:20".',
|
|
14
|
+
'"m:40@sm" applies the same CSS declarations as "m:50@sm".',
|
|
15
|
+
'"m:50@sm" applies the same CSS declarations as "m:40@sm".',
|
|
16
|
+
'No consistent class order followed.',
|
|
17
|
+
'Invalid value for `width` property.',
|
|
18
|
+
]
|
|
19
|
+
)
|
|
20
|
+
}, {
|
|
21
|
+
timeout: 15000 // for Mac OS CI test timed out in 5000ms.
|
|
22
|
+
})
|
package/tsconfig.json
ADDED
package/vitest.config.ts
ADDED
package/flat.js
DELETED
package/index.js
DELETED