From 4b32123db6811f971c4ad846d08ff9e8dedc5a92 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 17 Jun 2025 13:18:08 +0200 Subject: ESLint: silence css/no-invalid-properties. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It appears var() validation from https://github.com/eslint/css/pull/148 doesn't look if the variable have been defined in the sourced .css files, yielding many false positive 68:30 error Can't validate with unknown variable '--bs-body-bg-rgb' css/no-invalid-properties 69:22 error Can't validate with unknown variable '--bs-modal-border-radius' css/no-invalid-properties […] So we disable these rules for now. (According to the PR, property values containing var() were skipped prior to v0.9.0.) --- eslint.config.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eslint.config.mjs b/eslint.config.mjs index b1f8831..72b17bd 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -20,6 +20,8 @@ export default defineConfig([ extends: ["css/recommended"], rules: { "css/no-important": "off", + /* too many false positives as of @eslint/css 0.9.0 */ + "css/no-invalid-properties": "off", }, }, ]); -- cgit v1.2.3