@master/eslint-config-css 2.0.0-rc.25 → 2.0.0-rc.26
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/package.json +1 -1
- package/tests/index.html +1 -1
- package/tests/test.ts +12 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/eslint-config-css","type":"module","scripts":{"build":"techor build \"src/**/*.ts\"","dev":"pnpm build --watch","type-check":"tsc --noEmit","test":"jest","lint":"eslint src"},"keywords":["mastercss","eslint","eslintconfig"],"license":"MIT","description":"Master CSS ESLint Config","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","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"},"./flat":{"types":"./dist/flat.d.ts","import":"./dist/flat.mjs","require":"./dist/flat.cjs"}},"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\"","dev":"pnpm build --watch","type-check":"tsc --noEmit","test":"jest","lint":"eslint src"},"keywords":["mastercss","eslint","eslintconfig"],"license":"MIT","description":"Master CSS ESLint Config","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","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"},"./flat":{"types":"./dist/flat.d.ts","import":"./dist/flat.mjs","require":"./dist/flat.cjs"}},"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/eslint-plugin-css":"^2.0.0-rc.26"},"devDependencies":{"@angular-eslint/template-parser":"^16.3.1","eslint":"^8.57.0"},"version":"2.0.0-rc.26"}
|
package/tests/index.html
CHANGED
package/tests/test.ts
CHANGED
|
@@ -4,5 +4,16 @@ test('ESLint Configuration is valid', async () => {
|
|
|
4
4
|
const eslint = new ESLint({ cwd: __dirname })
|
|
5
5
|
const result = await eslint.lintFiles('./index.html')
|
|
6
6
|
expect(result[0].errorCount).toBe(1)
|
|
7
|
-
expect(result[0].warningCount).toBe(
|
|
7
|
+
expect(result[0].warningCount).toBe(6)
|
|
8
|
+
expect(result[0].messages.map((eachMessage) => eachMessage.message)).toEqual(
|
|
9
|
+
[
|
|
10
|
+
"\"m:10\" applies the same CSS declarations as \"m:20\" and \"m:30\".",
|
|
11
|
+
"\"m:20\" applies the same CSS declarations as \"m:10\" and \"m:30\".",
|
|
12
|
+
"\"m:30\" applies the same CSS declarations as \"m:10\" and \"m:20\".",
|
|
13
|
+
"\"m:40@sm\" applies the same CSS declarations as \"m:50@sm\".",
|
|
14
|
+
"\"m:50@sm\" applies the same CSS declarations as \"m:40@sm\".",
|
|
15
|
+
"No consistent class order followed.",
|
|
16
|
+
"Invalid value for `width` property.",
|
|
17
|
+
]
|
|
18
|
+
)
|
|
8
19
|
})
|