@master/eslint-config-css 2.0.0-rc.16 → 2.0.0-rc.19
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 +1 -1
- package/dist/flat.cjs +7 -0
- package/dist/flat.d.ts +25 -0
- package/dist/flat.mjs +5 -0
- package/dist/index.cjs +9 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +7 -0
- package/jest.config.ts +4 -0
- package/package.json +1 -1
- package/src/flat.ts +3 -0
- package/{index.js → src/index.ts} +1 -1
- package/tests/.eslintrc.js +11 -0
- package/tests/index.html +4 -0
- package/tests/test.ts +8 -0
- package/tsconfig.json +12 -0
- package/tsconfig.prod.json +10 -0
- package/flat.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">
|
package/dist/flat.cjs
ADDED
package/dist/flat.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
rules: {
|
|
3
|
+
readonly '@master/css/class-order': "warn";
|
|
4
|
+
readonly '@master/css/class-validation': "error";
|
|
5
|
+
readonly '@master/css/class-collision': "warn";
|
|
6
|
+
};
|
|
7
|
+
parserOptions: {
|
|
8
|
+
readonly ecmaFeatures: {
|
|
9
|
+
readonly jsx: true;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
plugins: {
|
|
13
|
+
'@master/css': {
|
|
14
|
+
meta: {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
rules: {
|
|
18
|
+
'class-collision': import("@typescript-eslint/utils/ts-eslint").RuleModule<"collisionClass", any[], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
19
|
+
'class-order': import("@typescript-eslint/utils/ts-eslint").RuleModule<"invalidClassOrder", any[], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
20
|
+
'class-validation': import("@typescript-eslint/utils/ts-eslint").RuleModule<"invalidClass" | "disallowUnknownClass", any[], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
package/dist/flat.mjs
ADDED
package/dist/index.cjs
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.mjs
ADDED
package/jest.config.ts
ADDED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/eslint-config-css","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":"index.cjs","exports":{".":"./index.cjs","./flat":"./flat.cjs"},"publishConfig":{"access":"public"},"dependencies":{"@master/eslint-plugin-css":"^2.0.0-rc.16"},"version":"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.19"},"devDependencies":{"@angular-eslint/template-parser":"^16.3.1","eslint":"^8.57.0"},"version":"2.0.0-rc.19"}
|
package/src/flat.ts
ADDED
package/tests/index.html
ADDED
package/tests/test.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ESLint } from 'eslint'
|
|
2
|
+
|
|
3
|
+
test('ESLint Configuration is valid', async () => {
|
|
4
|
+
const eslint = new ESLint({ cwd: __dirname })
|
|
5
|
+
const result = await eslint.lintFiles('./index.html')
|
|
6
|
+
expect(result[0].errorCount).toBe(1)
|
|
7
|
+
expect(result[0].warningCount).toBe(7)
|
|
8
|
+
})
|
package/tsconfig.json
ADDED
package/flat.js
DELETED