Skip to content

Commit 956a7f5

Browse files
committed
chore: add @eslint/css
Signed-off-by: Sebastian Davids <[email protected]>
1 parent 7ff3fbe commit 956a7f5

File tree

4 files changed

+77
-14
lines changed

4 files changed

+77
-14
lines changed

hp/eslint.config.mjs

+15
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import globals from 'globals';
77
import js from '@eslint/js';
88
import json from '@eslint/json';
9+
import css from '@eslint/css';
10+
import { tailwindSyntax } from '@eslint/css/syntax';
911
import markdown from '@eslint/markdown';
1012
import compat from 'eslint-plugin-compat';
1113
import vitest from '@vitest/eslint-plugin';
@@ -34,6 +36,19 @@ export default [
3436
...json.configs.recommended,
3537
name: 'eslint/json/recommended',
3638
},
39+
{
40+
files: ['**/*.css'],
41+
ignores: ['src/s/app.css', 'src/s/app.css.tmp'],
42+
plugins: {
43+
css,
44+
},
45+
language: 'css/css',
46+
languageOptions: {
47+
customSyntax: tailwindSyntax,
48+
},
49+
...css.configs.recommended,
50+
name: 'eslint/css/recommended',
51+
},
3752
{
3853
files: ['**/*.md'],
3954
language: 'markdown/gfm',

hp/package-lock.json

+59-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hp/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"@axe-core/playwright": "4.10.1",
8080
"@commitlint/cli": "19.7.1",
8181
"@commitlint/config-conventional": "19.7.1",
82+
"@eslint/css": "0.4.0",
8283
"@eslint/js": "9.21.0",
8384
"@eslint/json": "0.10.0",
8485
"@eslint/markdown": "6.2.2",

hp/src/s/app.src.css

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ SPDX-License-Identifier: Apache-2.0
3232
line-height: 1.5;
3333
-webkit-text-size-adjust: 100%;
3434
font-family:
35+
/* eslint-disable-next-line css/require-baseline */
3536
ui-sans-serif, system-ui, 'Segoe UI', Roboto, Helvetica, Arial,
3637
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
3738
'Noto Color Emoji';
@@ -55,6 +56,7 @@ SPDX-License-Identifier: Apache-2.0
5556

5657
code {
5758
font-family:
59+
/* eslint-disable-next-line css/require-baseline */
5860
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
5961
'Courier New', monospace;
6062
font-size: 1em;

0 commit comments

Comments
 (0)