import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";
import css from "@eslint/css";
export default tseslint.config(
{ ignores: ["dist"] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
},
{
files: ["**/*.css"],
language: "css/css",
...css.configs.recommended,
},
);
Environment
ESLint version: 9.25.0
@eslint/css version: 0.8.1
Node version: 22.13.1
npm version: 10.9.2
Operating System: Mac OS 15
Which language are you using?
stylesheet
What did you do?
Configuration
What did you expect to happen?
I expected that this would lint with no errors.
What actually happened?
3:16 error Invalid value 'clamp(2.1rem,calc(7.2vw - 0.2rem),2.5rem)' for property 'font-size'. Expected | | <length-percentage [0,∞]> | math css/no-invalid-properties
✖ 1 problem (1 error, 0 warning)
Link to Minimal Reproducible Example
https://stackblitz.com/edit/vitejs-vite-du8wqxzy?file=src%2Fstyle.css
Participation
Additional comments
No response