@aleph-alpha/config-css 0.20.0 → 0.21.0
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/CHANGELOG.md +78 -1054
- package/README.md +3 -2
- package/customization.md +32 -11
- package/dist/index.js +1869 -393
- package/eslint.config.mjs +20 -0
- package/package.json +3 -3
- package/tokens.json +1 -1
- package/tsconfig.json +7 -8
- package/eslint.config.js +0 -25
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { base, strict } from '@aleph-alpha/eslint-config-frontend';
|
|
2
|
+
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting';
|
|
3
|
+
import jsdoc from 'eslint-plugin-jsdoc';
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
...base,
|
|
7
|
+
...strict,
|
|
8
|
+
{
|
|
9
|
+
ignores: ['.lintstagedrc.js', 'test/unit/coverage/*'],
|
|
10
|
+
rules: {
|
|
11
|
+
'sonarjs/todo-tag': 'warn',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
jsdoc.configs['flat/recommended'],
|
|
15
|
+
{
|
|
16
|
+
files: ['**/*.ts'],
|
|
17
|
+
ignores: ['**/*.test.ts', '**/*.stories.ts'],
|
|
18
|
+
},
|
|
19
|
+
skipFormatting,
|
|
20
|
+
];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aleph-alpha/config-css",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.21.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"prettier": "@aleph-alpha/prettier-config-frontend",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"style-dictionary": "^4.0.1",
|
|
26
26
|
"vite-plugin-dts": "^4.0.0",
|
|
27
|
-
"@aleph-alpha/
|
|
28
|
-
"@aleph-alpha/
|
|
27
|
+
"@aleph-alpha/prettier-config-frontend": "0.4.0",
|
|
28
|
+
"@aleph-alpha/eslint-config-frontend": "0.5.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"transform:global": "npx token-transformer ./tokens.json ./transformed-tokens/global.json global,\"Spark Border Radius/Mode 1\",\"Spark Spacings/Mode 1\",\"Spark Text/Mode 1\" \"Spark Colors/Light mode/primitives\" --throwErrorWhenNotResolved",
|
package/tokens.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"baseUrl": ".",
|
|
4
|
-
"emitDeclarationOnly": true,
|
|
5
4
|
"declaration": true,
|
|
6
|
-
"
|
|
7
|
-
"resolveJsonModule": true,
|
|
5
|
+
"emitDeclarationOnly": true,
|
|
8
6
|
"esModuleInterop": true,
|
|
9
|
-
"
|
|
10
|
-
"
|
|
7
|
+
"lib": ["ES2021.String"],
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"resolveJsonModule": true,
|
|
10
|
+
"skipLibCheck": true
|
|
11
11
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
]
|
|
12
|
+
"exclude": ["node_modules"],
|
|
13
|
+
"include": ["src/**/*.ts"]
|
|
15
14
|
}
|
package/eslint.config.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import mainConfig from '@aleph-alpha/eslint-config-frontend/eslint.config.js';
|
|
2
|
-
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
3
|
-
import jsdoc from 'eslint-plugin-jsdoc';
|
|
4
|
-
|
|
5
|
-
export default [
|
|
6
|
-
mainConfig.config,
|
|
7
|
-
...mainConfig.plugins,
|
|
8
|
-
{
|
|
9
|
-
ignores: ['.lintstagedrc.js', 'node_modules/*', 'dist/*', 'test/unit/coverage/*'],
|
|
10
|
-
rules: {
|
|
11
|
-
'no-unused-vars': 'off',
|
|
12
|
-
'sonarjs/todo-tag': 'warn',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
/**
|
|
16
|
-
* Rules to enforce JSDoc comments on interface, types and enums.
|
|
17
|
-
* This way we have all interfaces of our components properly documented.
|
|
18
|
-
*/
|
|
19
|
-
jsdoc.configs['flat/recommended'],
|
|
20
|
-
{
|
|
21
|
-
files: ['**/*.ts'],
|
|
22
|
-
ignores: ['**/*.test.ts', '**/*.stories.ts'],
|
|
23
|
-
},
|
|
24
|
-
eslintConfigPrettier,
|
|
25
|
-
];
|