219 lines
6.1 KiB
JSON
219 lines
6.1 KiB
JSON
{
|
|
"name": "stylelint",
|
|
"version": "16.12.0",
|
|
"description": "A mighty CSS linter that helps you avoid errors and enforce conventions.",
|
|
"keywords": [
|
|
"css-in-js",
|
|
"css",
|
|
"less",
|
|
"lint",
|
|
"linter",
|
|
"markdown",
|
|
"sass",
|
|
"scss",
|
|
"stylelint",
|
|
"sugarss"
|
|
],
|
|
"homepage": "https://stylelint.io",
|
|
"repository": "stylelint/stylelint",
|
|
"funding": [
|
|
{
|
|
"type": "opencollective",
|
|
"url": "https://opencollective.com/stylelint"
|
|
},
|
|
{
|
|
"type": "github",
|
|
"url": "https://github.com/sponsors/stylelint"
|
|
}
|
|
],
|
|
"license": "MIT",
|
|
"author": "stylelint",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./types/stylelint/index.d.mts",
|
|
"default": "./lib/index.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./types/stylelint/index.d.ts",
|
|
"default": "./lib/index.cjs"
|
|
}
|
|
},
|
|
"./package.json": "./package.json",
|
|
"./lib/utils/*": "./lib/utils/*"
|
|
},
|
|
"main": "lib/index.cjs",
|
|
"types": "types/stylelint/index.d.ts",
|
|
"bin": {
|
|
"stylelint": "bin/stylelint.mjs"
|
|
},
|
|
"files": [
|
|
"bin/**/*.js",
|
|
"bin/**/*.cjs",
|
|
"bin/**/*.mjs",
|
|
"lib/**/*.js",
|
|
"lib/**/*.cjs",
|
|
"lib/**/*.mjs",
|
|
"!**/__tests__/**",
|
|
"!lib/testUtils/**",
|
|
"!lib/rules/*/README.md",
|
|
"types/stylelint/index.d.mts",
|
|
"types/stylelint/index.d.ts"
|
|
],
|
|
"scripts": {
|
|
"benchmark-rule": "node scripts/benchmark-rule.mjs",
|
|
"build": "rollup -c",
|
|
"build-check": "node scripts/build-check.mjs",
|
|
"format": "prettier . --write --cache",
|
|
"lint": "npm-run-all --parallel --continue-on-error lint:*",
|
|
"lint:formatting": "prettier . --check --cache",
|
|
"lint:js": "eslint . --cache --max-warnings=0",
|
|
"lint:md": "remark . --quiet --frail",
|
|
"lint:types": "tsc",
|
|
"prepare": "husky && npm run build",
|
|
"postprepare": "patch-package",
|
|
"release": "np --no-release-draft",
|
|
"pretest": "npm run lint",
|
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
"test-coverage": "npm test --ignore-scripts -- --coverage",
|
|
"test-only": "npm test --ignore-scripts",
|
|
"watch": "npm test --ignore-scripts -- --watch",
|
|
"changeset": "changeset version && node .changeset/rewrite-changelog.mjs CHANGELOG.md && git restore package.json"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,mjs}": "eslint --cache --fix",
|
|
"*.{js,json,md,mjs,ts,yml}": "prettier --write"
|
|
},
|
|
"prettier": "@stylelint/prettier-config",
|
|
"remarkConfig": {
|
|
"plugins": [
|
|
"@stylelint/remark-preset"
|
|
]
|
|
},
|
|
"jest": {
|
|
"clearMocks": true,
|
|
"collectCoverage": false,
|
|
"collectCoverageFrom": [
|
|
"lib/**/*.{js,mjs}",
|
|
"!lib/**/{__tests__,testUtils}/**/*.{js,mjs}"
|
|
],
|
|
"coverageDirectory": "./.coverage/",
|
|
"coverageProvider": "v8",
|
|
"coverageReporters": [
|
|
"lcov",
|
|
"text-summary"
|
|
],
|
|
"coverageThreshold": {
|
|
"global": {
|
|
"branches": 90,
|
|
"functions": 90,
|
|
"lines": 90,
|
|
"statements": 90
|
|
}
|
|
},
|
|
"preset": "jest-preset-stylelint",
|
|
"roots": [
|
|
"lib",
|
|
"system-tests"
|
|
],
|
|
"setupFiles": [
|
|
"<rootDir>/jest.setup.mjs"
|
|
],
|
|
"testEnvironment": "node",
|
|
"testRegex": ".*\\.test\\.mjs$|rules/.*/__tests__/.*\\.mjs$|system-tests/.*\\.test\\.cjs$",
|
|
"watchPlugins": [
|
|
"jest-watch-typeahead/filename",
|
|
"jest-watch-typeahead/testname"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@csstools/css-parser-algorithms": "^3.0.4",
|
|
"@csstools/css-tokenizer": "^3.0.3",
|
|
"@csstools/media-query-list-parser": "^4.0.2",
|
|
"@csstools/selector-specificity": "^5.0.0",
|
|
"@dual-bundle/import-meta-resolve": "^4.1.0",
|
|
"balanced-match": "^2.0.0",
|
|
"colord": "^2.9.3",
|
|
"cosmiconfig": "^9.0.0",
|
|
"css-functions-list": "^3.2.3",
|
|
"css-tree": "^3.0.1",
|
|
"debug": "^4.3.7",
|
|
"fast-glob": "^3.3.2",
|
|
"fastest-levenshtein": "^1.0.16",
|
|
"file-entry-cache": "^9.1.0",
|
|
"global-modules": "^2.0.0",
|
|
"globby": "^11.1.0",
|
|
"globjoin": "^0.1.4",
|
|
"html-tags": "^3.3.1",
|
|
"ignore": "^6.0.2",
|
|
"imurmurhash": "^0.1.4",
|
|
"is-plain-object": "^5.0.0",
|
|
"known-css-properties": "^0.35.0",
|
|
"mathml-tag-names": "^2.1.3",
|
|
"meow": "^13.2.0",
|
|
"micromatch": "^4.0.8",
|
|
"normalize-path": "^3.0.0",
|
|
"picocolors": "^1.1.1",
|
|
"postcss": "^8.4.49",
|
|
"postcss-resolve-nested-selector": "^0.1.6",
|
|
"postcss-safe-parser": "^7.0.1",
|
|
"postcss-selector-parser": "^7.0.0",
|
|
"postcss-value-parser": "^4.2.0",
|
|
"resolve-from": "^5.0.0",
|
|
"string-width": "^4.2.3",
|
|
"supports-hyperlinks": "^3.1.0",
|
|
"svg-tags": "^1.0.0",
|
|
"table": "^6.9.0",
|
|
"write-file-atomic": "^5.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@changesets/cli": "^2.27.10",
|
|
"@changesets/get-github-info": "^0.6.0",
|
|
"@jest/globals": "^29.7.0",
|
|
"@stylelint/prettier-config": "^3.0.0",
|
|
"@stylelint/remark-preset": "^5.1.1",
|
|
"@types/balanced-match": "^1.0.4",
|
|
"@types/css-tree": "^2.3.9",
|
|
"@types/debug": "^4.1.12",
|
|
"@types/file-entry-cache": "^5.0.4",
|
|
"@types/global-modules": "^2.0.2",
|
|
"@types/globjoin": "^0.1.2",
|
|
"@types/imurmurhash": "^0.1.4",
|
|
"@types/micromatch": "^4.0.9",
|
|
"@types/normalize-path": "^3.0.2",
|
|
"@types/postcss-less": "^4.0.6",
|
|
"@types/postcss-resolve-nested-selector": "^0.1.3",
|
|
"@types/postcss-safe-parser": "^5.0.4",
|
|
"@types/svg-tags": "^1.0.2",
|
|
"@types/write-file-atomic": "^4.0.3",
|
|
"benchmark": "^2.1.4",
|
|
"common-tags": "^1.8.2",
|
|
"deepmerge": "^4.3.1",
|
|
"eslint": "^9.16.0",
|
|
"eslint-config-stylelint": "^23.0.0",
|
|
"eslint-plugin-import": "^2.31.0",
|
|
"eslint-plugin-jest": "^28.9.0",
|
|
"husky": "^9.1.7",
|
|
"jest": "^29.7.0",
|
|
"jest-preset-stylelint": "^7.1.0",
|
|
"jest-watch-typeahead": "^2.2.2",
|
|
"lint-staged": "^15.2.10",
|
|
"np": "^10.0.7",
|
|
"npm-run-all": "^4.1.5",
|
|
"patch-package": "^8.0.0",
|
|
"postcss-html": "^1.7.0",
|
|
"postcss-import": "^16.1.0",
|
|
"postcss-less": "^6.0.0",
|
|
"postcss-sass": "^0.5.0",
|
|
"postcss-scss": "^4.0.9",
|
|
"prettier": "^3.4.2",
|
|
"remark-cli": "^12.0.1",
|
|
"rollup": "^4.28.1",
|
|
"sugarss": "^5.0.0",
|
|
"typescript": "^5.7.2"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.12.0"
|
|
}
|
|
}
|