@aleph-alpha/config-css 0.14.3 → 0.14.4
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 +10 -0
- package/eslint.config.js +25 -0
- package/package.json +1 -1
- package/src/index.ts +12 -0
package/CHANGELOG.md
CHANGED
package/eslint.config.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
];
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -23,6 +23,18 @@ type Theme = {
|
|
|
23
23
|
const tokenPreset: Preset<Theme> = definePreset<Theme>(() => {
|
|
24
24
|
return {
|
|
25
25
|
name: '@aleph-alpha/uno-css-preset',
|
|
26
|
+
preflights: [
|
|
27
|
+
{
|
|
28
|
+
getCSS() {
|
|
29
|
+
return `
|
|
30
|
+
html {
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
-moz-osx-font-smoothing: grayscale;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
26
38
|
rules: [...Object.entries(typographySet), ['h-screen', { height: '100vh' }]],
|
|
27
39
|
theme: {
|
|
28
40
|
colors: lightModeSet,
|