1 | {
|
2 | "name": "stylelint",
|
3 | "version": "13.2.1",
|
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.1",
|
63 | "micromatch": "^4.0.2",
|
64 | "normalize-selector": "^0.2.0",
|
65 | "postcss": "^7.0.27",
|
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": "^6.0.2",
|
77 | "postcss-syntax": "^0.36.2",
|
78 | "postcss-value-parser": "^4.0.3",
|
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.3"
|
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.6.0",
|
104 | "husky": "^4.2.1",
|
105 | "jest": "^25.1.0",
|
106 | "jest-watch-typeahead": "^0.4.2",
|
107 | "lint-staged": "^10.0.8",
|
108 | "np": "^6.2.0",
|
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-preset-lint-recommended": "^3.0.3",
|
114 | "remark-preset-prettier": "^0.4.0",
|
115 | "remark-validate-links": "^9.2.0",
|
116 | "typescript": "^3.8.3"
|
117 | },
|
118 | "scripts": {
|
119 | "benchmark-rule": "node scripts/benchmark-rule.js",
|
120 | "jest": "jest",
|
121 | "jest:detectleaks": "jest --detectLeaks",
|
122 | "lint:js": "eslint . --cache --max-warnings=0",
|
123 | "lint:md": "remark . --quiet --frail",
|
124 | "lint:types": "tsc",
|
125 | "lint": "npm-run-all --parallel lint:*",
|
126 | "pretest": "npm-run-all --serial lint prettier:check",
|
127 | "prettier:check": "prettier \"**/*.{md,js,ts}\" --check",
|
128 | "prettier:fix": "prettier \"**/*.{md,js,ts}\" --write",
|
129 | "release": "np",
|
130 | "test": "jest --coverage",
|
131 | "watch": "jest --watch"
|
132 | },
|
133 | "husky": {
|
134 | "hooks": {
|
135 | "pre-commit": "lint-staged"
|
136 | }
|
137 | },
|
138 | "lint-staged": {
|
139 | "*.js": [
|
140 | "prettier --write",
|
141 | "eslint --max-warnings=0 --fix"
|
142 | ],
|
143 | "*.ts": [
|
144 | "prettier --write"
|
145 | ],
|
146 | "*.md": [
|
147 | "prettier --write",
|
148 | "remark --quiet --frail"
|
149 | ]
|
150 | },
|
151 | "eslintConfig": {
|
152 | "parserOptions": {
|
153 | "ecmaVersion": 2019
|
154 | },
|
155 | "extends": [
|
156 | "stylelint"
|
157 | ],
|
158 | "globals": {
|
159 | "testRule": true
|
160 | },
|
161 | "rules": {
|
162 | "array-callback-return": "error",
|
163 | "dot-notation": "error",
|
164 | "func-name-matching": "error",
|
165 | "guard-for-in": "error",
|
166 | "no-confusing-arrow": [
|
167 | "error",
|
168 | {
|
169 | "allowParens": false
|
170 | }
|
171 | ],
|
172 | "no-else-return": [
|
173 | "error",
|
174 | {
|
175 | "allowElseIf": false
|
176 | }
|
177 | ],
|
178 | "no-implicit-coercion": "error",
|
179 | "no-lonely-if": "error",
|
180 | "no-mixed-spaces-and-tabs": "off",
|
181 | "no-unneeded-ternary": "error",
|
182 | "no-useless-return": "error",
|
183 | "no-unused-vars": [
|
184 | "error",
|
185 | {
|
186 | "ignoreRestSiblings": true
|
187 | }
|
188 | ],
|
189 | "operator-assignment": "error",
|
190 | "prefer-arrow-callback": "error",
|
191 | "prefer-object-spread": "error",
|
192 | "prefer-regex-literals": "error",
|
193 | "prefer-rest-params": "error",
|
194 | "prefer-spread": "error",
|
195 | "prefer-template": "error",
|
196 | "node/no-unsupported-features/es-builtins": [
|
197 | "error",
|
198 | {
|
199 | "version": ">=10.18.0"
|
200 | }
|
201 | ],
|
202 | "node/no-unsupported-features/es-syntax": [
|
203 | "error",
|
204 | {
|
205 | "version": ">=10.18.0"
|
206 | }
|
207 | ],
|
208 | "node/no-unsupported-features/node-builtins": [
|
209 | "error",
|
210 | {
|
211 | "version": ">=10.18.0"
|
212 | }
|
213 | ]
|
214 | }
|
215 | },
|
216 | "jest": {
|
217 | "clearMocks": true,
|
218 | "collectCoverage": false,
|
219 | "collectCoverageFrom": [
|
220 | "lib/**/*.js",
|
221 | "!lib/vendor/**/*.js",
|
222 | "!lib/utils/parseCalcExpression/parser.js"
|
223 | ],
|
224 | "coverageDirectory": "./.coverage/",
|
225 | "coverageReporters": [
|
226 | "lcov",
|
227 | "text-summary"
|
228 | ],
|
229 | "coverageThreshold": {
|
230 | "global": {
|
231 | "branches": 75,
|
232 | "functions": 75,
|
233 | "lines": 75,
|
234 | "statements": 75
|
235 | }
|
236 | },
|
237 | "setupFiles": [
|
238 | "./jest-setup.js"
|
239 | ],
|
240 | "testEnvironment": "node",
|
241 | "roots": [
|
242 | "lib",
|
243 | "system-tests"
|
244 | ],
|
245 | "testRegex": ".*\\.test\\.js$|rules/.*/__tests__/.*\\.js$",
|
246 | "watchPlugins": [
|
247 | "jest-watch-typeahead/filename",
|
248 | "jest-watch-typeahead/testname"
|
249 | ]
|
250 | },
|
251 | "remarkConfig": {
|
252 | "plugins": [
|
253 | "preset-lint-recommended",
|
254 | "remark-preset-prettier",
|
255 | [
|
256 | "validate-links",
|
257 | {
|
258 | "repository": "stylelint/stylelint"
|
259 | }
|
260 | ]
|
261 | ]
|
262 | }
|
263 | }
|