@master/eslint-config-css 2.0.0-rc.26 → 2.0.0-rc.27
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/dist/flat.d.ts +12 -10
- package/jest.config.ts +7 -1
- package/package.json +1 -1
- package/tests/test.ts +7 -7
package/dist/flat.d.ts
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
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
2
|
plugins: {
|
|
13
3
|
'@master/css': {
|
|
14
4
|
meta: {
|
|
@@ -21,5 +11,17 @@ declare const _default: {
|
|
|
21
11
|
};
|
|
22
12
|
};
|
|
23
13
|
};
|
|
14
|
+
rules: {
|
|
15
|
+
'@master/css/class-order': string;
|
|
16
|
+
'@master/css/class-validation': string;
|
|
17
|
+
'@master/css/class-collision': string;
|
|
18
|
+
};
|
|
19
|
+
languageOptions: {
|
|
20
|
+
parserOptions: {
|
|
21
|
+
ecmaFeatures: {
|
|
22
|
+
jsx: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
24
26
|
};
|
|
25
27
|
export default _default;
|
package/jest.config.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
// import { pathsToModuleNameMapper } from 'ts-jest'
|
|
2
|
+
// import { getTsconfig } from 'get-tsconfig'
|
|
3
|
+
|
|
4
|
+
// const tsconfig = getTsconfig()?.config
|
|
5
|
+
|
|
1
6
|
/** @type {import('jest').Config} */
|
|
2
7
|
export default {
|
|
3
|
-
preset: '@techor/jest'
|
|
8
|
+
preset: '@techor/jest',
|
|
9
|
+
// moduleNameMapper: tsconfig?.compilerOptions?.paths && pathsToModuleNameMapper(tsconfig.compilerOptions?.paths, { prefix: '<rootDir>/' }),
|
|
4
10
|
}
|
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.27"},"devDependencies":{"@angular-eslint/template-parser":"^17.3.0","@master/css-shared":"^2.0.0-rc.27","eslint":"^8.57.0"},"version":"2.0.0-rc.27"}
|
package/tests/test.ts
CHANGED
|
@@ -7,13 +7,13 @@ test('ESLint Configuration is valid', async () => {
|
|
|
7
7
|
expect(result[0].warningCount).toBe(6)
|
|
8
8
|
expect(result[0].messages.map((eachMessage) => eachMessage.message)).toEqual(
|
|
9
9
|
[
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
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
17
|
]
|
|
18
18
|
)
|
|
19
19
|
})
|