@alexlit/lint-kit 181.0.0 → 182.0.0
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.
- package/package.json +1 -1
- package/packages/config-eslint/node_modules/eslint-visitor-keys/LICENSE +201 -0
- package/packages/config-eslint/node_modules/eslint-visitor-keys/README.md +121 -0
- package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +396 -0
- package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts +28 -0
- package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/index.d.ts +16 -0
- package/packages/config-eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +12 -0
- package/packages/config-eslint/node_modules/eslint-visitor-keys/lib/index.js +67 -0
- package/packages/config-eslint/node_modules/eslint-visitor-keys/lib/visitor-keys.js +327 -0
- package/packages/config-eslint/node_modules/eslint-visitor-keys/package.json +59 -0
- package/packages/config-eslint/node_modules/jsonc-eslint-parser/LICENSE +21 -0
- package/packages/config-eslint/node_modules/jsonc-eslint-parser/README.md +109 -0
- package/packages/config-eslint/node_modules/jsonc-eslint-parser/lib/chunk-C7Uep-_p.mjs +20 -0
- package/packages/config-eslint/node_modules/jsonc-eslint-parser/lib/index.d.mts +210 -0
- package/packages/config-eslint/node_modules/jsonc-eslint-parser/lib/index.mjs +1305 -0
- package/packages/config-eslint/node_modules/jsonc-eslint-parser/package.json +98 -0
- package/packages/config-eslint/package.json +3 -3
- package/packages/config-eslint/plugins/tanstack-query.js +2 -2
- package/packages/config-eslint/plugins/unocss.js +6 -4
- package/packages/config-stylelint/package.json +1 -1
- package/packages/config-stylelint/plugins/bem.js +7 -4
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jsonc-eslint-parser",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "JSON, JSONC and JSON5 parser for use with ESLint plugins",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./lib/index.d.mts",
|
|
9
|
+
"default": "./lib/index.mjs"
|
|
10
|
+
},
|
|
11
|
+
"./package.json": "./package.json"
|
|
12
|
+
},
|
|
13
|
+
"types": "lib/index.d.mts",
|
|
14
|
+
"files": [
|
|
15
|
+
"lib"
|
|
16
|
+
],
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "npm run build:bundle",
|
|
22
|
+
"build:bundle": "tsdown",
|
|
23
|
+
"clean": "rimraf .nyc_output lib coverage",
|
|
24
|
+
"lint": "eslint .",
|
|
25
|
+
"eslint-fix": "eslint . --fix",
|
|
26
|
+
"test:base": "mocha --require tsx \"tests/src/**/*.ts\" --reporter dot --timeout 60000",
|
|
27
|
+
"test": "npm run test:base",
|
|
28
|
+
"test:nyc": "nyc --reporter=lcov npm run test:base",
|
|
29
|
+
"test:debug": "node --experimental-strip-types ./node_modules/mocha/bin/mocha.js \"tests/src/**/*.ts\" --reporter dot",
|
|
30
|
+
"update": "tsx ./tools/update.ts && npm run eslint-fix && npm run test:nyc",
|
|
31
|
+
"preversion": "npm test && npm run update && git add .",
|
|
32
|
+
"version": "npm run eslint-fix && git add .",
|
|
33
|
+
"update-fixtures": "tsx ./tools/update-fixtures.ts",
|
|
34
|
+
"benchmark": "tsx benchmark/index.ts",
|
|
35
|
+
"prerelease": "npm run clean && npm run build",
|
|
36
|
+
"release": "changeset publish",
|
|
37
|
+
"version:ci": "changeset version"
|
|
38
|
+
},
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "git+https://github.com/ota-meshi/jsonc-eslint-parser.git"
|
|
42
|
+
},
|
|
43
|
+
"keywords": [
|
|
44
|
+
"eslint",
|
|
45
|
+
"json",
|
|
46
|
+
"jsonc",
|
|
47
|
+
"json5",
|
|
48
|
+
"parser"
|
|
49
|
+
],
|
|
50
|
+
"author": "Yosuke Ota",
|
|
51
|
+
"funding": "https://github.com/sponsors/ota-meshi",
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/ota-meshi/jsonc-eslint-parser/issues"
|
|
55
|
+
},
|
|
56
|
+
"homepage": "https://github.com/ota-meshi/jsonc-eslint-parser#readme",
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@changesets/changelog-github": "^0.5.0",
|
|
59
|
+
"@changesets/cli": "^2.24.2",
|
|
60
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
|
|
61
|
+
"@ota-meshi/eslint-plugin": "^0.20.0",
|
|
62
|
+
"@types/benchmark": "^2.1.0",
|
|
63
|
+
"@types/estree": "^1.0.0",
|
|
64
|
+
"@types/mocha": "^10.0.0",
|
|
65
|
+
"@types/node": "^24.0.0",
|
|
66
|
+
"@types/semver": "^7.3.1",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
68
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
69
|
+
"benchmark": "^2.1.4",
|
|
70
|
+
"env-cmd": "^11.0.0",
|
|
71
|
+
"eslint": "^10.0.0",
|
|
72
|
+
"eslint-config-prettier": "^10.0.0",
|
|
73
|
+
"eslint-plugin-jsdoc": "^62.0.0",
|
|
74
|
+
"eslint-plugin-json-schema-validator": "^6.0.0",
|
|
75
|
+
"eslint-plugin-jsonc": "^2.0.0",
|
|
76
|
+
"eslint-plugin-n": "^17.0.0",
|
|
77
|
+
"eslint-plugin-node-dependencies": "^1.0.0",
|
|
78
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
79
|
+
"eslint-plugin-regexp": "^3.0.0",
|
|
80
|
+
"eslint-plugin-vue": "^10.0.0",
|
|
81
|
+
"mocha": "^11.0.0",
|
|
82
|
+
"nyc": "^17.0.0",
|
|
83
|
+
"prettier": "~3.8.0",
|
|
84
|
+
"tsdown": "^0.20.3",
|
|
85
|
+
"tsx": "^4.21.0",
|
|
86
|
+
"typescript": "~5.9.0",
|
|
87
|
+
"typescript-eslint": "^8.0.0",
|
|
88
|
+
"vue-eslint-parser": "^10.0.0"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"acorn": "^8.5.0",
|
|
92
|
+
"eslint-visitor-keys": "^5.0.0",
|
|
93
|
+
"semver": "^7.3.5"
|
|
94
|
+
},
|
|
95
|
+
"publishConfig": {
|
|
96
|
+
"access": "public"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "136.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Sharable ESLint configuration",
|
|
6
6
|
"keywords": [
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"eslint-plugin-perfectionist": "^5.6.0",
|
|
53
53
|
"eslint-plugin-prettier": "^5.5.5",
|
|
54
54
|
"eslint-plugin-regexp": "^3.0.0",
|
|
55
|
-
"eslint-plugin-sonarjs": "^
|
|
55
|
+
"eslint-plugin-sonarjs": "^4.0.0",
|
|
56
56
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
57
57
|
"eslint-plugin-unicorn": "^63.0.0",
|
|
58
58
|
"eslint-plugin-vue": "^10.8.0",
|
|
59
59
|
"eslint-plugin-vuejs-accessibility": "^2.5.0",
|
|
60
60
|
"globals": "^17.3.0",
|
|
61
|
-
"jsonc-eslint-parser": "^
|
|
61
|
+
"jsonc-eslint-parser": "^3.0.0",
|
|
62
62
|
"typescript": "^5.9.3",
|
|
63
63
|
"typescript-eslint": "^8.56.0",
|
|
64
64
|
"yaml-eslint-parser": "^2.0.0"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import plugin from '@tanstack/eslint-plugin-query';
|
|
1
|
+
// import plugin from '@tanstack/eslint-plugin-query';
|
|
2
2
|
import { defineConfig } from 'eslint/config';
|
|
3
3
|
|
|
4
4
|
/** @see [@tanstack/query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query) */
|
|
5
5
|
export const tanstackQuery = defineConfig([
|
|
6
|
-
...plugin.configs['flat/recommended'],
|
|
6
|
+
// ...plugin.configs['flat/recommended'], // TODO: update plugin
|
|
7
7
|
]);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import plugin from '@unocss/eslint-config/flat';
|
|
1
|
+
// import plugin from '@unocss/eslint-config/flat';
|
|
2
2
|
import { defineConfig } from 'eslint/config';
|
|
3
3
|
|
|
4
|
-
import { FILES } from '../presets/base.js';
|
|
4
|
+
// import { FILES } from '../presets/base.js';
|
|
5
|
+
|
|
6
|
+
// TODO: update plugin
|
|
5
7
|
|
|
6
8
|
/** @see [@unocss/eslint-config](https://unocss.dev/integrations/eslint) */
|
|
7
9
|
export const unocss = defineConfig([
|
|
8
|
-
{ files: FILES, ...plugin },
|
|
9
|
-
{ files: FILES, rules: { 'unocss/order-attributify': 'off' } },
|
|
10
|
+
// { files: FILES, ...plugin },
|
|
11
|
+
// { files: FILES, rules: { 'unocss/order-attributify': 'off' } },
|
|
10
12
|
]);
|
|
@@ -16,16 +16,19 @@ export default {
|
|
|
16
16
|
files: ['**/*.{css,scss,vue}'],
|
|
17
17
|
rules: defineRules({
|
|
18
18
|
'@morev/base/no-selectors-in-at-rules': [true, {}],
|
|
19
|
-
'@morev/bem/block-variable':
|
|
19
|
+
'@morev/bem/block-variable': null,
|
|
20
20
|
'@morev/bem/match-file-name': [true, {}],
|
|
21
21
|
'@morev/bem/no-block-properties': [
|
|
22
22
|
true,
|
|
23
|
-
{ ignoreBlocks: [], presets: ['EXTERNAL_GEOMETRY'
|
|
23
|
+
{ ignoreBlocks: [], presets: ['EXTERNAL_GEOMETRY'] },
|
|
24
24
|
],
|
|
25
25
|
'@morev/bem/no-chained-entities': [true, {}],
|
|
26
|
-
'@morev/bem/no-side-effects': [
|
|
26
|
+
'@morev/bem/no-side-effects': [
|
|
27
|
+
true,
|
|
28
|
+
{ ignore: ['/^>/', '/^:deep/', '/^:global/'] },
|
|
29
|
+
],
|
|
27
30
|
'@morev/bem/selector-pattern': [true, {}],
|
|
28
|
-
'@morev/sass/no-unused-variables': [true, { ignore: [
|
|
31
|
+
'@morev/sass/no-unused-variables': [true, { ignore: [] }],
|
|
29
32
|
}),
|
|
30
33
|
},
|
|
31
34
|
{
|