UNPKG

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