@alexlit/lint-kit 182.0.0 → 182.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. package/package.json +1 -1
  2. package/packages/config-commitlint/package.json +3 -3
  3. package/packages/config-eslint/package.json +7 -7
  4. package/packages/config-stylelint/package.json +3 -3
  5. package/packages/config-eslint/node_modules/eslint-visitor-keys/LICENSE +0 -201
  6. package/packages/config-eslint/node_modules/eslint-visitor-keys/README.md +0 -121
  7. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +0 -396
  8. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts +0 -28
  9. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/index.d.ts +0 -16
  10. package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +0 -12
  11. package/packages/config-eslint/node_modules/eslint-visitor-keys/lib/index.js +0 -67
  12. package/packages/config-eslint/node_modules/eslint-visitor-keys/lib/visitor-keys.js +0 -327
  13. package/packages/config-eslint/node_modules/eslint-visitor-keys/package.json +0 -59
  14. package/packages/config-eslint/node_modules/jsonc-eslint-parser/LICENSE +0 -21
  15. package/packages/config-eslint/node_modules/jsonc-eslint-parser/README.md +0 -109
  16. package/packages/config-eslint/node_modules/jsonc-eslint-parser/lib/chunk-C7Uep-_p.mjs +0 -20
  17. package/packages/config-eslint/node_modules/jsonc-eslint-parser/lib/index.d.mts +0 -210
  18. package/packages/config-eslint/node_modules/jsonc-eslint-parser/lib/index.mjs +0 -1305
  19. package/packages/config-eslint/node_modules/jsonc-eslint-parser/package.json +0 -98
@@ -1,327 +0,0 @@
1
- /* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`.
2
- TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed
3
- */
4
- /**
5
- * @typedef {{ readonly [type: string]: ReadonlyArray<string> }} VisitorKeys
6
- */
7
- /* eslint-enable jsdoc/valid-types -- doesn't allow `readonly string[]`. TODO: check why */
8
-
9
- /**
10
- * @type {VisitorKeys}
11
- */
12
- const KEYS = {
13
- ArrayExpression: [
14
- "elements"
15
- ],
16
- ArrayPattern: [
17
- "elements"
18
- ],
19
- ArrowFunctionExpression: [
20
- "params",
21
- "body"
22
- ],
23
- AssignmentExpression: [
24
- "left",
25
- "right"
26
- ],
27
- AssignmentPattern: [
28
- "left",
29
- "right"
30
- ],
31
- AwaitExpression: [
32
- "argument"
33
- ],
34
- BinaryExpression: [
35
- "left",
36
- "right"
37
- ],
38
- BlockStatement: [
39
- "body"
40
- ],
41
- BreakStatement: [
42
- "label"
43
- ],
44
- CallExpression: [
45
- "callee",
46
- "arguments"
47
- ],
48
- CatchClause: [
49
- "param",
50
- "body"
51
- ],
52
- ChainExpression: [
53
- "expression"
54
- ],
55
- ClassBody: [
56
- "body"
57
- ],
58
- ClassDeclaration: [
59
- "id",
60
- "superClass",
61
- "body"
62
- ],
63
- ClassExpression: [
64
- "id",
65
- "superClass",
66
- "body"
67
- ],
68
- ConditionalExpression: [
69
- "test",
70
- "consequent",
71
- "alternate"
72
- ],
73
- ContinueStatement: [
74
- "label"
75
- ],
76
- DebuggerStatement: [],
77
- DoWhileStatement: [
78
- "body",
79
- "test"
80
- ],
81
- EmptyStatement: [],
82
- ExperimentalRestProperty: [
83
- "argument"
84
- ],
85
- ExperimentalSpreadProperty: [
86
- "argument"
87
- ],
88
- ExportAllDeclaration: [
89
- "exported",
90
- "source",
91
- "attributes"
92
- ],
93
- ExportDefaultDeclaration: [
94
- "declaration"
95
- ],
96
- ExportNamedDeclaration: [
97
- "declaration",
98
- "specifiers",
99
- "source",
100
- "attributes"
101
- ],
102
- ExportSpecifier: [
103
- "local",
104
- "exported"
105
- ],
106
- ExpressionStatement: [
107
- "expression"
108
- ],
109
- ForInStatement: [
110
- "left",
111
- "right",
112
- "body"
113
- ],
114
- ForOfStatement: [
115
- "left",
116
- "right",
117
- "body"
118
- ],
119
- ForStatement: [
120
- "init",
121
- "test",
122
- "update",
123
- "body"
124
- ],
125
- FunctionDeclaration: [
126
- "id",
127
- "params",
128
- "body"
129
- ],
130
- FunctionExpression: [
131
- "id",
132
- "params",
133
- "body"
134
- ],
135
- Identifier: [],
136
- IfStatement: [
137
- "test",
138
- "consequent",
139
- "alternate"
140
- ],
141
- ImportAttribute: [
142
- "key",
143
- "value"
144
- ],
145
- ImportDeclaration: [
146
- "specifiers",
147
- "source",
148
- "attributes"
149
- ],
150
- ImportDefaultSpecifier: [
151
- "local"
152
- ],
153
- ImportExpression: [
154
- "source",
155
- "options"
156
- ],
157
- ImportNamespaceSpecifier: [
158
- "local"
159
- ],
160
- ImportSpecifier: [
161
- "imported",
162
- "local"
163
- ],
164
- JSXAttribute: [
165
- "name",
166
- "value"
167
- ],
168
- JSXClosingElement: [
169
- "name"
170
- ],
171
- JSXClosingFragment: [],
172
- JSXElement: [
173
- "openingElement",
174
- "children",
175
- "closingElement"
176
- ],
177
- JSXEmptyExpression: [],
178
- JSXExpressionContainer: [
179
- "expression"
180
- ],
181
- JSXFragment: [
182
- "openingFragment",
183
- "children",
184
- "closingFragment"
185
- ],
186
- JSXIdentifier: [],
187
- JSXMemberExpression: [
188
- "object",
189
- "property"
190
- ],
191
- JSXNamespacedName: [
192
- "namespace",
193
- "name"
194
- ],
195
- JSXOpeningElement: [
196
- "name",
197
- "attributes"
198
- ],
199
- JSXOpeningFragment: [],
200
- JSXSpreadAttribute: [
201
- "argument"
202
- ],
203
- JSXSpreadChild: [
204
- "expression"
205
- ],
206
- JSXText: [],
207
- LabeledStatement: [
208
- "label",
209
- "body"
210
- ],
211
- Literal: [],
212
- LogicalExpression: [
213
- "left",
214
- "right"
215
- ],
216
- MemberExpression: [
217
- "object",
218
- "property"
219
- ],
220
- MetaProperty: [
221
- "meta",
222
- "property"
223
- ],
224
- MethodDefinition: [
225
- "key",
226
- "value"
227
- ],
228
- NewExpression: [
229
- "callee",
230
- "arguments"
231
- ],
232
- ObjectExpression: [
233
- "properties"
234
- ],
235
- ObjectPattern: [
236
- "properties"
237
- ],
238
- PrivateIdentifier: [],
239
- Program: [
240
- "body"
241
- ],
242
- Property: [
243
- "key",
244
- "value"
245
- ],
246
- PropertyDefinition: [
247
- "key",
248
- "value"
249
- ],
250
- RestElement: [
251
- "argument"
252
- ],
253
- ReturnStatement: [
254
- "argument"
255
- ],
256
- SequenceExpression: [
257
- "expressions"
258
- ],
259
- SpreadElement: [
260
- "argument"
261
- ],
262
- StaticBlock: [
263
- "body"
264
- ],
265
- Super: [],
266
- SwitchCase: [
267
- "test",
268
- "consequent"
269
- ],
270
- SwitchStatement: [
271
- "discriminant",
272
- "cases"
273
- ],
274
- TaggedTemplateExpression: [
275
- "tag",
276
- "quasi"
277
- ],
278
- TemplateElement: [],
279
- TemplateLiteral: [
280
- "quasis",
281
- "expressions"
282
- ],
283
- ThisExpression: [],
284
- ThrowStatement: [
285
- "argument"
286
- ],
287
- TryStatement: [
288
- "block",
289
- "handler",
290
- "finalizer"
291
- ],
292
- UnaryExpression: [
293
- "argument"
294
- ],
295
- UpdateExpression: [
296
- "argument"
297
- ],
298
- VariableDeclaration: [
299
- "declarations"
300
- ],
301
- VariableDeclarator: [
302
- "id",
303
- "init"
304
- ],
305
- WhileStatement: [
306
- "test",
307
- "body"
308
- ],
309
- WithStatement: [
310
- "object",
311
- "body"
312
- ],
313
- YieldExpression: [
314
- "argument"
315
- ]
316
- };
317
-
318
- // Types.
319
- const NODE_TYPES = Object.keys(KEYS);
320
-
321
- // Freeze the keys.
322
- for (const type of NODE_TYPES) {
323
- Object.freeze(KEYS[type]);
324
- }
325
- Object.freeze(KEYS);
326
-
327
- export default KEYS;
@@ -1,59 +0,0 @@
1
- {
2
- "name": "eslint-visitor-keys",
3
- "version": "5.0.0",
4
- "description": "Constants and utilities about visitor keys to traverse AST.",
5
- "type": "module",
6
- "main": "dist/eslint-visitor-keys.cjs",
7
- "types": "./dist/index.d.ts",
8
- "exports": {
9
- ".": [
10
- {
11
- "import": "./lib/index.js",
12
- "require": "./dist/eslint-visitor-keys.cjs"
13
- },
14
- "./dist/eslint-visitor-keys.cjs"
15
- ],
16
- "./package.json": "./package.json"
17
- },
18
- "files": [
19
- "dist/index.d.ts",
20
- "dist/visitor-keys.d.ts",
21
- "dist/eslint-visitor-keys.cjs",
22
- "dist/eslint-visitor-keys.d.cts",
23
- "lib"
24
- ],
25
- "engines": {
26
- "node": "^20.19.0 || ^22.13.0 || >=24"
27
- },
28
- "devDependencies": {
29
- "opener": "^1.5.2",
30
- "rollup": "^4.50.2",
31
- "rollup-plugin-dts": "^6.2.3",
32
- "tsd": "^0.33.0",
33
- "typescript": "^5.9.2"
34
- },
35
- "scripts": {
36
- "build": "npm run build:cjs && npm run build:types",
37
- "build:cjs": "rollup -c",
38
- "build:debug": "npm run build:cjs -- -m && npm run build:types",
39
- "build:types": "tsc -v && tsc",
40
- "test": "mocha \"tests/**/*.test.cjs\" && c8 mocha \"tests/**/*.test.js\" && npm run test:types",
41
- "test:open-coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html",
42
- "test:types": "tsd"
43
- },
44
- "repository": {
45
- "type": "git",
46
- "url": "https://github.com/eslint/js.git",
47
- "directory": "packages/eslint-visitor-keys"
48
- },
49
- "funding": "https://opencollective.com/eslint",
50
- "keywords": [
51
- "eslint"
52
- ],
53
- "author": "Toru Nagashima (https://github.com/mysticatea)",
54
- "license": "Apache-2.0",
55
- "bugs": {
56
- "url": "https://github.com/eslint/js/issues"
57
- },
58
- "homepage": "https://github.com/eslint/js/blob/main/packages/eslint-visitor-keys/README.md"
59
- }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Yosuke Ota
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,109 +0,0 @@
1
- # jsonc-eslint-parser
2
-
3
- [![NPM license](https://img.shields.io/npm/l/jsonc-eslint-parser.svg)](https://www.npmjs.com/package/jsonc-eslint-parser)
4
- [![NPM version](https://img.shields.io/npm/v/jsonc-eslint-parser.svg)](https://www.npmjs.com/package/jsonc-eslint-parser)
5
- [![NPM downloads](https://img.shields.io/npm/dw/jsonc-eslint-parser.svg)](http://www.npmtrends.com/jsonc-eslint-parser)
6
- [![NPM downloads](https://img.shields.io/npm/dm/jsonc-eslint-parser.svg)](http://www.npmtrends.com/jsonc-eslint-parser)
7
- [![Build Status](https://github.com/ota-meshi/jsonc-eslint-parser/workflows/CI/badge.svg?branch=master)](https://github.com/ota-meshi/jsonc-eslint-parser/actions?query=workflow%3ACI)
8
- [![Coverage Status](https://coveralls.io/repos/github/ota-meshi/jsonc-eslint-parser/badge.svg?branch=master)](https://coveralls.io/github/ota-meshi/jsonc-eslint-parser?branch=master)
9
-
10
- ## :name_badge: Introduction
11
-
12
- [JSON], [JSONC] and [JSON5] parser for use with [ESLint] plugins.
13
-
14
- This parser allows us to lint [JSON], [JSONC] and [JSON5] files.
15
- This parser and the rules of [eslint-plugin-jsonc] would catch some of the mistakes and code style violations.
16
-
17
- See [eslint-plugin-jsonc] for details.
18
-
19
- ## :cd: Installation
20
-
21
- ```bash
22
- npm i --save-dev jsonc-eslint-parser
23
- ```
24
-
25
- ## :book: Usage (Flat Config)
26
-
27
- In your ESLint configuration file, set the `parser` property:
28
-
29
- ```js
30
- import * as jsoncParser from "jsonc-eslint-parser";
31
-
32
- export default [
33
- {
34
- // ...
35
- // Add the following settings.
36
- files: ["**/*.json", "**/*.json5"], // Specify the extension or pattern you want to parse as JSON.
37
- languageOptions: {
38
- parser: jsoncParser, // Set this parser.
39
- }
40
- },
41
- ];
42
- ```
43
-
44
- ## :book: Usage (Legacy Config)
45
-
46
- In your ESLint configuration file, set the `overrides` > `parser` property:
47
-
48
- ```json5
49
- {
50
- // ...
51
- // Add the following settings.
52
- "overrides": [
53
- {
54
- "files": ["*.json", "*.json5"], // Specify the extension or pattern you want to parse as JSON.
55
- "parser": "jsonc-eslint-parser", // Set this parser.
56
- },
57
- ],
58
- }
59
- ```
60
-
61
- ## :gear: Configuration
62
-
63
- The following additional configuration options are available by specifying them in [parserOptions](https://eslint.org/docs/latest/use/configure/parser#configure-parser-options) in your ESLint configuration file.
64
-
65
- ```json5
66
- {
67
- // Additional configuration options
68
- "parserOptions": {
69
- "jsonSyntax": "JSON5"
70
- }
71
- }
72
- ```
73
-
74
- ### `parserOptions.jsonSyntax`
75
-
76
- Set to `"JSON"`, `"JSONC"` or `"JSON5"`. Select the JSON syntax you are using.
77
- If not specified, all syntaxes that express static values ​​are accepted. For example, template literals without interpolation.
78
-
79
- **Note** : Recommended to loosen the syntax checking by the parser and use check rules of [eslint-plugin-jsonc] to automatically fix it.
80
-
81
- ## Usage for Custom Rules / Plugins
82
-
83
- - [AST.md](./docs/AST.md) is AST specification.
84
- - [Plugins.md](./docs/Plugins.md) describes using this in an ESLint plugin.
85
- - [no-template-literals.ts](https://github.com/ota-meshi/eslint-plugin-jsonc/blob/master/lib/rules/no-template-literals.ts) is an example.
86
- - You can see the AST on the [Online DEMO](https://ota-meshi.github.io/jsonc-eslint-parser/).
87
-
88
- ## :traffic_light: Semantic Versioning Policy
89
-
90
- **jsonc-eslint-parser** follows [Semantic Versioning](http://semver.org/).
91
-
92
- ## :couple: Related Packages
93
-
94
- - [eslint-plugin-jsonc](https://github.com/ota-meshi/eslint-plugin-jsonc) ... ESLint plugin for JSON, JSON with comments (JSONC) and JSON5.
95
- - [eslint-plugin-yml](https://github.com/ota-meshi/eslint-plugin-yml) ... ESLint plugin for YAML.
96
- - [eslint-plugin-toml](https://github.com/ota-meshi/eslint-plugin-toml) ... ESLint plugin for TOML.
97
- - [eslint-plugin-json-schema-validator](https://github.com/ota-meshi/eslint-plugin-json-schema-validator) ... ESLint plugin that validates data using JSON Schema Validator.
98
- - [yaml-eslint-parser](https://github.com/ota-meshi/yaml-eslint-parser) ... YAML parser for use with ESLint plugins.
99
- - [toml-eslint-parser](https://github.com/ota-meshi/toml-eslint-parser) ... TOML parser for use with ESLint plugins.
100
-
101
- ## :lock: License
102
-
103
- See the [LICENSE](LICENSE) file for license rights and limitations (MIT).
104
-
105
- [JSON]: https://json.org/
106
- [JSONC]: https://github.com/microsoft/node-jsonc-parser
107
- [JSON5]: https://json5.org/
108
- [ESLint]: https://eslint.org/
109
- [eslint-plugin-jsonc]: https://www.npmjs.com/package/eslint-plugin-jsonc
@@ -1,20 +0,0 @@
1
- import { createRequire } from "node:module";
2
-
3
- //#region \0rolldown/runtime.js
4
- var __defProp = Object.defineProperty;
5
- var __exportAll = (all, no_symbols) => {
6
- let target = {};
7
- for (var name in all) {
8
- __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- }
13
- if (!no_symbols) {
14
- __defProp(target, Symbol.toStringTag, { value: "Module" });
15
- }
16
- return target;
17
- };
18
-
19
- //#endregion
20
- export { __exportAll as t };