UNPKG

6.36 kBJSONView Raw
1{
2 "name": "stylelint",
3 "version": "13.0.0",
4 "description": "A mighty, modern CSS linter.",
5 "keywords": [
6 "css",
7 "less",
8 "sass",
9 "scss",
10 "sugarss",
11 "lint",
12 "linter",
13 "stylelint"
14 ],
15 "authors": [
16 "David Clark",
17 "Maxime Thirouin",
18 "Richard Hallows"
19 ],
20 "license": "MIT",
21 "homepage": "https://stylelint.io",
22 "repository": {
23 "type": "git",
24 "url": "https://github.com/stylelint/stylelint.git"
25 },
26 "funding": {
27 "type": "opencollective",
28 "url": "https://opencollective.com/stylelint"
29 },
30 "main": "lib/index.js",
31 "bin": "bin/stylelint.js",
32 "files": [
33 "bin",
34 "CONTRIBUTING.md",
35 "SECURITY.md",
36 "docs",
37 "lib",
38 "VISION.md",
39 "!**/__tests__",
40 "!lib/testUtils"
41 ],
42 "dependencies": {
43 "autoprefixer": "^9.7.3",
44 "balanced-match": "^1.0.0",
45 "chalk": "^3.0.0",
46 "cosmiconfig": "^6.0.0",
47 "debug": "^4.1.1",
48 "execall": "^2.0.0",
49 "file-entry-cache": "^5.0.1",
50 "get-stdin": "^7.0.0",
51 "global-modules": "^2.0.0",
52 "globby": "^11.0.0",
53 "globjoin": "^0.1.4",
54 "html-tags": "^3.1.0",
55 "ignore": "^5.1.4",
56 "import-lazy": "^4.0.0",
57 "imurmurhash": "^0.1.4",
58 "known-css-properties": "^0.17.0",
59 "leven": "^3.1.0",
60 "lodash": "^4.17.15",
61 "log-symbols": "^3.0.0",
62 "mathml-tag-names": "^2.1.1",
63 "meow": "^6.0.0",
64 "micromatch": "^4.0.2",
65 "normalize-selector": "^0.2.0",
66 "postcss": "^7.0.26",
67 "postcss-html": "^0.36.0",
68 "postcss-jsx": "^0.36.3",
69 "postcss-less": "^3.1.4",
70 "postcss-markdown": "^0.36.0",
71 "postcss-media-query-parser": "^0.2.3",
72 "postcss-reporter": "^6.0.1",
73 "postcss-resolve-nested-selector": "^0.1.1",
74 "postcss-safe-parser": "^4.0.1",
75 "postcss-sass": "^0.4.2",
76 "postcss-scss": "^2.0.0",
77 "postcss-selector-parser": "^3.1.0",
78 "postcss-syntax": "^0.36.2",
79 "postcss-value-parser": "^4.0.2",
80 "resolve-from": "^5.0.0",
81 "slash": "^3.0.0",
82 "specificity": "^0.4.1",
83 "string-width": "^4.2.0",
84 "strip-ansi": "^6.0.0",
85 "style-search": "^0.1.0",
86 "sugarss": "^2.0.0",
87 "svg-tags": "^1.0.0",
88 "table": "^5.4.6",
89 "v8-compile-cache": "^2.1.0",
90 "write-file-atomic": "^3.0.1"
91 },
92 "devDependencies": {
93 "@types/browserslist": "^4.4.0",
94 "@types/debug": "^4.1.5",
95 "@types/global-modules": "^2.0.0",
96 "@types/globjoin": "^0.1.0",
97 "@types/lodash": "^4.14.149",
98 "@types/micromatch": "^4.0.0",
99 "benchmark": "^2.1.4",
100 "common-tags": "^1.8.0",
101 "del": "^5.1.0",
102 "eslint": "^6.8.0",
103 "eslint-config-stylelint": "^11.1.0",
104 "got": "^10.2.2",
105 "husky": "^4.0.7",
106 "jest": "^24.9.0",
107 "jest-watch-typeahead": "^0.4.2",
108 "lint-staged": "^9.5.0",
109 "np": "^5.2.1",
110 "npm-run-all": "^4.1.5",
111 "postcss-import": "^12.0.1",
112 "prettier": "^1.19.1",
113 "remark-cli": "^7.0.1",
114 "remark-lint-no-missing-blank-lines": "^1.0.3",
115 "remark-preset-lint-consistent": "^2.0.3",
116 "remark-preset-lint-recommended": "^3.0.3",
117 "remark-validate-links": "^9.1.0",
118 "typescript": "^3.6.4"
119 },
120 "scripts": {
121 "benchmark-rule": "node scripts/benchmark-rule.js",
122 "jest": "jest",
123 "jest:detectleaks": "jest --detectLeaks",
124 "lint:js": "eslint . --cache --max-warnings=0",
125 "lint:md": "remark . --quiet --frail",
126 "lint:types": "tsc",
127 "lint": "npm-run-all --parallel lint:*",
128 "pretest": "npm-run-all --serial lint prettier:check",
129 "prettier:check": "prettier \"**/*.js\" --check",
130 "prettier:fix": "prettier \"**/*.js\" --write",
131 "release": "np",
132 "test": "jest --coverage",
133 "watch": "jest --watch"
134 },
135 "husky": {
136 "hooks": {
137 "pre-commit": "lint-staged"
138 }
139 },
140 "lint-staged": {
141 "*.js": [
142 "prettier --write",
143 "eslint --max-warnings=0 --fix",
144 "git add"
145 ],
146 "*.md": [
147 "remark --quiet --frail"
148 ]
149 },
150 "eslintConfig": {
151 "parserOptions": {
152 "ecmaVersion": 2019
153 },
154 "extends": [
155 "stylelint"
156 ],
157 "globals": {
158 "testRule": true
159 },
160 "rules": {
161 "array-callback-return": "error",
162 "dot-notation": "error",
163 "func-name-matching": "error",
164 "guard-for-in": "error",
165 "no-else-return": [
166 "error",
167 {
168 "allowElseIf": false
169 }
170 ],
171 "no-implicit-coercion": "error",
172 "no-lonely-if": "error",
173 "no-mixed-spaces-and-tabs": "off",
174 "no-unneeded-ternary": "error",
175 "no-useless-return": "error",
176 "no-unused-vars": [
177 "error",
178 {
179 "ignoreRestSiblings": true
180 }
181 ],
182 "operator-assignment": "error",
183 "prefer-object-spread": "error",
184 "prefer-regex-literals": "error",
185 "prefer-rest-params": "error",
186 "prefer-spread": "error",
187 "prefer-template": "error",
188 "node/no-unsupported-features/es-builtins": [
189 "error",
190 {
191 "version": ">=10.18.0"
192 }
193 ],
194 "node/no-unsupported-features/es-syntax": [
195 "error",
196 {
197 "version": ">=10.18.0"
198 }
199 ],
200 "node/no-unsupported-features/node-builtins": [
201 "error",
202 {
203 "version": ">=10.18.0"
204 }
205 ]
206 }
207 },
208 "jest": {
209 "clearMocks": true,
210 "collectCoverage": false,
211 "collectCoverageFrom": [
212 "lib/**/*.js",
213 "!lib/vendor/**/*.js",
214 "!lib/utils/parseCalcExpression/parser.js"
215 ],
216 "coverageDirectory": "./.coverage/",
217 "coverageReporters": [
218 "lcov",
219 "text-summary"
220 ],
221 "coverageThreshold": {
222 "global": {
223 "branches": 75,
224 "functions": 75,
225 "lines": 75,
226 "statements": 75
227 }
228 },
229 "setupFiles": [
230 "./jest-setup.js"
231 ],
232 "testEnvironment": "node",
233 "roots": [
234 "lib",
235 "system-tests"
236 ],
237 "testRegex": ".*\\.test\\.js$|rules/.*/__tests__/.*\\.js$",
238 "watchPlugins": [
239 "jest-watch-typeahead/filename",
240 "jest-watch-typeahead/testname"
241 ]
242 },
243 "remarkConfig": {
244 "plugins": [
245 "preset-lint-recommended",
246 "preset-lint-consistent",
247 [
248 "lint-no-missing-blank-lines",
249 {
250 "exceptTightLists": true
251 }
252 ],
253 [
254 "validate-links",
255 {
256 "repository": "stylelint/stylelint"
257 }
258 ]
259 ]
260 }
261}