eslint-plugin-vanilla-extract/package.json
Ante Budimir f880c051ff feat 🥁: add no-unknown-unit rule
Adds a rule to disallow unknown or invalid CSS units in vanilla-extract style objects.

- Reports any usage of unrecognized units in property values
- Handles all vanilla-extract APIs (style, styleVariants, recipe, etc.)
- Ignores valid units in special contexts (e.g., CSS functions, custom properties)

No autofix is provided because replacing or removing unknown units may result in unintended or invalid CSS. Manual developer review is required to ensure correctness.
2025-04-16 09:45:33 +03:00

89 lines
2.4 KiB
JSON

{
"name": "@antebudimir/eslint-plugin-vanilla-extract",
"version": "1.9.0",
"description": "ESLint plugin for enforcing best practices in vanilla-extract CSS styles, including CSS property ordering and additional linting rules.",
"author": "Ante Budimir",
"license": "MIT",
"keywords": [
"eslint",
"eslintplugin",
"eslint-plugin",
"vanilla-extract",
"css",
"css-in-js",
"concentric",
"alphabetical",
"typescript",
"style",
"ordering",
"zero-runtime"
],
"repository": {
"type": "git",
"url": "https://github.com/antebudimir/eslint-plugin-vanilla-extract.git"
},
"bugs": {
"url": "https://github.com/antebudimir/eslint-plugin-vanilla-extract/issues"
},
"homepage": "https://github.com/antebudimir/eslint-plugin-vanilla-extract#readme",
"type": "module",
"main": "dist/index.js",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist",
"LICENSE",
"README.md",
"!dist/**/__tests__",
"!dist/css-sample/"
],
"scripts": {
"build": "tsc",
"format": "prettier --write .",
"lint": "eslint src --ext .ts --fix --max-warnings 0",
"prepublishOnly": "pnpm run lint && pnpm run build",
"publish": "pnpm publish --access public",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"typecheck": "tsc --noEmit",
"version:update": "node scripts/update-version.mjs"
},
"engines": {
"node": ">=18.18.0"
},
"packageManager": "pnpm@10.6.2",
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
]
},
"peerDependencies": {
"eslint": ">=9.0.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.0",
"@types/node": "^20.17.24",
"@typescript-eslint/eslint-plugin": "^8.26.1",
"@typescript-eslint/parser": "^8.26.1",
"@typescript-eslint/rule-tester": "^8.26.1",
"@typescript-eslint/utils": "^8.26.1",
"@vanilla-extract/css": "^1.17.1",
"@vanilla-extract/recipes": "^0.5.5",
"@vitest/coverage-v8": "3.0.8",
"eslint": "^9.22.0",
"eslint-config-prettier": "^10.1.1",
"eslint-import-resolver-typescript": "^3.8.5",
"eslint-plugin-eslint-plugin": "^6.4.0",
"eslint-plugin-import": "^2.31.0",
"eslint-vitest-rule-tester": "^1.1.0",
"prettier": "^3.5.3",
"typescript": "^5.8.2",
"typescript-eslint": "^8.26.1",
"vitest": "3.0.8"
}
}