UNPKG

eslint-plugin-better-tailwindcss

Version:

auto-wraps tailwind classes after a certain print width or class count into multiple lines to improve readability.

157 lines (156 loc) 5.05 kB
{ "version": "4.4.1", "type": "module", "name": "eslint-plugin-better-tailwindcss", "description": "auto-wraps tailwind classes after a certain print width or class count into multiple lines to improve readability.", "license": "MIT", "author": "Roger Schönbächler", "repository": { "type": "git", "url": "git+https://github.com/schoero/eslint-plugin-better-tailwindcss.git" }, "bugs": { "url": "https://github.com/schoero/eslint-plugin-better-tailwindcss/issues" }, "exports": { ".": "./lib/configs/config.js", "./api/defaults": "./lib/api/defaults.js", "./api/types": "./lib/api/types.js", "./defaults": "./lib/api/defaults.js", "./types": "./lib/api/types.js" }, "main": "./lib/configs/config.js", "scripts": { "build": "vite-node build", "build:ci": "vite-node build", "eslint": "eslint .", "eslint:ci": "npm run eslint -- --max-warnings 0", "eslint:fix": "npm run eslint -- --fix", "install:v3": "npm i tailwindcss@^3 --no-save", "install:v4": "npm i tailwindcss@^4 --no-save", "lint": "npm run eslint && npm run markdownlint", "lint:ci": "npm run eslint:ci && npm run markdownlint:ci", "lint:fix": "npm run eslint:fix && npm run markdownlint:fix", "markdownlint": "markdownlint-cli2 '**/*.md' '#**/node_modules'", "markdownlint:ci": "npm run markdownlint", "markdownlint:fix": "npm run markdownlint -- --fix", "postrelease:alpha": "eslint --fix package.json && markdownlint-cli2 --fix 'CHANGELOG.md'", "postrelease:beta": "eslint --fix package.json && markdownlint-cli2 --fix 'CHANGELOG.md'", "postrelease:latest": "eslint --fix package.json && markdownlint-cli2 --fix 'CHANGELOG.md'", "prebuild": "npm run typecheck && npm run lint && npm run spellcheck", "prerelease:alpha": "npm run test -- --run && npm run build", "prerelease:beta": "npm run test -- --run && npm run build", "prerelease:latest": "npm run test -- --run && npm run build", "pretest:v3": "npm run install:v3", "pretest:v4": "npm run install:v4", "publish:alpha": "changelogen gh release && changelogen --publish --publishTag alpha", "publish:beta": "changelogen gh release && changelogen --publish --publishTag beta", "publish:latest": "changelogen gh release && changelogen --publish", "release:alpha": "changelogen --bump --output --prerelease alpha", "release:beta": "changelogen --bump --output --prerelease beta", "release:latest": "changelogen --bump --output --no-tag", "spellcheck": "cspell lint", "spellcheck:ci": "npm run spellcheck -- --no-progress", "test": "vitest -c ./vite.config.ts --exclude tests/e2e", "test:all": "npm run test:v3 && npm run test:v4", "test:e2e": "vitest -c ./vite.config.ts tests/e2e --run", "test:v3": "npm run test -- --run", "test:v4": "npm run test -- --run", "typecheck": "tsc --noEmit" }, "engines": { "node": "^20.19.0 || ^22.12.0 || >=23.0.0" }, "files": [ "lib" ], "peerDependencies": { "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0", "oxlint": "^1.35.0", "tailwindcss": "^3.3.0 || ^4.1.17" }, "peerDependenciesMeta": { "eslint": { "optional": true }, "oxlint": { "optional": true } }, "dependencies": { "@eslint/css-tree": "^4.0.1", "@valibot/to-json-schema": "^1.6.0", "enhanced-resolve": "^5.20.1", "jiti": "^2.6.1", "synckit": "^0.11.12", "tailwind-csstree": "^0.3.0", "tsconfig-paths-webpack-plugin": "^4.2.0", "valibot": "^1.3.1" }, "devDependencies": { "@angular/compiler": "^21.2.6", "@angular-eslint/template-parser": "^21.3.1", "@eslint/css": "^1.1.0", "@html-eslint/parser": "0.58.1", "@oxc-node/core": "^0.0.35", "@schoero/configs": "^1.5.32", "@types/estree-jsx": "^1.0.5", "@types/node": "^25.5.0", "@typescript-eslint/parser": "^8.58.0", "astro-eslint-parser": "^1.4.0", "changelogen": "^0.6.2", "cspell": "^10.0.0", "daisyui": "^5.5.19", "es-html-parser": "^0.3.1", "eslint": "^9.39.4", "eslint-plugin-better-tailwindcss": "file:./", "json-schema": "^0.4.0", "markdownlint": "^0.40.0", "oxlint": "^1.58.0", "prettier": "^3.8.1", "svelte": "^5.55.1", "svelte-eslint-parser": "^1.6.0", "tailwindcss": "^4.2.2", "tsc-alias": "^1.8.16", "typescript": "^5.9.3", "vite-node": "^6.0.0", "vitest": "^4.1.2", "vue-eslint-parser": "^10.4.0" }, "keywords": [ "eslint", "eslint-plugin", "stylistic", "formatting", "tailwind", "readable", "readability", "horizontal", "scrolling", "multiline", "multi", "newline", "line", "break", "linebreak", "wrap", "template", "literal", "jsx", "html", "astro", "svelte", "vue", "react", "qwik", "solid", "template-literal", "template-literals", "tailwindcss", "tailwind-css", "tailwind-classes" ], "volta": { "node": "25.2.1" } }