Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
165 lines (165 loc) · 7.43 KB
/
Copy pathpackage.json
File metadata and controls
165 lines (165 loc) · 7.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"name": "sonarjs",
"version": "1.0.0",
"description": "SonarJS code analyzer",
"scripts": {
"format": "prettier --write .",
"check-format": "prettier --list-different .",
"new-rule": "tsx tools/new-rule.mts",
"generate-meta": "tsx tools/generate-meta.ts",
"rspec:refresh": "mvn -q -ntp -N -P rspec-refresh -DskipTests process-resources",
"validate-quickfix": "tsx tools/validate-quickfix.ts",
"generate-java-rule-classes": "tsx tools/generate-java-rule-classes-cli.ts",
"ruling": "tsx --tsconfig packages/tsconfig.test.json --test packages/ruling/projects/*.ruling.test.ts",
"ruling:cache": "tsx --no-cache --tsconfig packages/tsconfig.test.json --conditions=sonarjs-ruling-fs-cache --test packages/ruling/projects/*.ruling.test.ts",
"ruling-sync": "node .github/actions/ruling_bot/sync-results.mjs packages/ruling/actual its/ruling/src/test/resources/expected",
"bridge:compile:ts5": "npm run proto:generate && tsc -b packages && npm run proto:copy",
"bridge:compile": "npm run proto:generate && tsgo -p packages/tsconfig.app.json && tsgo -p packages/tsconfig.test.json && npm run proto:copy",
"bridge:test": "npm run proto:generate && tsx --tsconfig packages/tsconfig.test.json --test --test-concurrency=4 --test-reporter=spec --test-reporter-destination stdout \"packages/**/src/*/rules/*[!node_modules]/**/*.test.ts\" \"packages/**/tests/**/*.test.ts\"",
"bridge:test:js": "tsx tools/copy-test-resources.ts && node --test --enable-source-maps --test-concurrency=4 --test-reporter=spec --test-reporter-destination=stdout --test-reporter=node-reporter-sonarqube --test-reporter-destination=coverage/js/test-report.xml \"lib/**/src/*/rules/*[!node_modules]/**/*.test.js\" \"lib/**/tests/**/*.test.js\" && node tools/fix-test-report-paths.js",
"bridge:test:cov": "cross-env 'NODE_OPTIONS=--import ./tools/nyc-esm-hook-loader.js' nyc npm run bridge:test:js",
"bridge:bundle": "node esbuild.mjs",
"bridge:build": "npm run bridge:build:fast && npm run bridge:test",
"bridge:build:cov": "npm run bridge:build:fast && npm run bridge:test:cov",
"bridge:build:fast": "npm run _:bridge:clear && npm run generate-meta && npm run bridge:compile",
"bbf": "npm run bridge:build:fast",
"bbf:latest": "npm run rspec:refresh && npm run bbf",
"proto:generate": "tsx tools/generate-proto.ts",
"proto:copy": "tsx tools/generate-proto.ts --copy",
"prepare": "husky",
"precommit": "pretty-quick --staged",
"postinstall": "patch-package",
"count-rules": "tsx tools/count-rules.ts",
"_:bridge:clear": "rimraf --glob lib/*",
"eslint-plugin:build": "npm install --no-save builtin-modules@3.3.0 && npm run eslint-plugin:compile && cd lib && npm pack",
"eslint-plugin:compile": "npm run generate-meta && npm run _:bridge:clear && npm run eslint-plugin:check && npm run eslint-plugin:emit && npm run eslint-plugin:types && npm run eslint-plugin:package-json && npm run eslint-docs && npm run eslint-plugin:copy-assets",
"eslint-plugin:check": "tsc -p tsconfig-plugin.json --noEmit",
"eslint-plugin:emit": "tsc -p tsconfig-plugin.json --noCheck --module commonjs --moduleResolution node --outDir lib/cjs",
"eslint-plugin:types": "tsc -p tsconfig-plugin.json --declaration true --emitDeclarationOnly --outDir lib/types",
"eslint-plugin:package-json": "node node_modules/package-manifest-generator/pmg.mjs --entries \"lib/cjs/**/*.js\" --output lib/package.json && node tools/normalize-eslint-plugin-dependencies.mjs",
"eslint-plugin:copy-assets": "cpy LICENSE.txt lib/ --rename LICENSE && cpy packages/analysis/src/jsts/rules/README.md lib/ --flat",
"eslint-docs": "rimraf --glob lib/docs/*.md && eslint-doc-generator lib --init-rule-docs && tsx tools/generate-external-rules-docs.ts",
"deploy-rule-data": "tsx tools/deploy-rule-data.ts",
"license-regeneration": "node license-management.mjs",
"cyclonedx:npm": "cyclonedx-npm --omit dev --spec-version 1.6 --validate --output-file target/bom-npm.json"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SonarSource/SonarJS.git"
},
"license": "LGPL-3.0-only",
"bugs": {
"url": "https://community.sonarsource.com/"
},
"homepage": "https://github.com/SonarSource/SonarJS#readme",
"engines": {
"node": "^22.12.0 || ^24.0.0"
},
"type": "module",
"devDependencies": {
"@cyclonedx/cyclonedx-npm": "6.0.1",
"@eslint/core": "1.2.1",
"@inquirer/prompts": "8.7.2",
"@istanbuljs/esm-loader-hook": "0.3.0",
"@types/aria-query": "5.0.4",
"@types/bytes": "3.1.6",
"@types/estree": "1.0.9",
"@types/estree-jsx": "1.0.5",
"@types/functional-red-black-tree": "1.0.6",
"@types/lodash.merge": "4.6.9",
"@types/node": "24.19.0",
"@types/semver": "7.8.0",
"@typescript/native-preview": "7.0.0-dev.20260707.2",
"cpy-cli": "7.0.0",
"cross-env": "10.1.0",
"dir-compare": "5.0.0",
"esbuild": "0.28.2",
"esbuild-plugin-copy": "2.1.1",
"esbuild-plugin-text-replace": "1.3.0",
"eslint-doc-generator": "3.7.1",
"esprima": "4.0.1",
"expect": "30.5.2",
"glob": "13.0.6",
"husky": "9.1.7",
"json-schema-to-ts": "3.1.1",
"knip": "6.39.0",
"license-checker": "25.0.1",
"memfs": "4.80.0",
"node-reporter-sonarqube": "1.0.3",
"nyc": "18.0.0",
"package-manifest-generator": "1.0.0-beta.4",
"patch-package": "8.0.1",
"prettier": "3.9.9",
"prettier-plugin-java": "2.11.0",
"pretty-quick": "4.2.2",
"protobufjs-cli": "2.7.0",
"rimraf": "6.1.3",
"tsx": "4.23.15",
"type-fest": "5.10.0"
},
"dependencies": {
"@angular-eslint/eslint-plugin": "22.5.0",
"@babel/core": "8.0.6",
"@babel/eslint-parser": "8.0.6",
"@eslint-community/regexpp": "4.12.2",
"@grpc/grpc-js": "1.14.5",
"@protobufjs/base64": "1.1.2",
"@sonarsource/analyzer-commons-configurations": "2.31.0-5284",
"@stylistic/eslint-plugin": "5.10.0",
"@stylistic/stylelint-plugin": "5.3.1",
"@typescript-eslint/eslint-plugin": "8.71.0",
"@typescript-eslint/parser": "8.71.0",
"@typescript-eslint/type-utils": "8.71.0",
"@typescript-eslint/utils": "8.71.0",
"aria-query": "5.3.2",
"builtin-modules": "5.4.0",
"bytes": "3.1.2",
"color": "5.0.3",
"css-unit-converter": "1.1.2",
"eslint": "9.39.5",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-promise": "7.3.0",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "7.1.1",
"eslint-plugin-testing-library": "7.16.2",
"eslint-plugin-unicorn": "65.0.1",
"eslint-plugin-vue": "10.11.1",
"functional-red-black-tree": "1.0.1",
"globals": "17.12.0",
"htmlparser2": "12.0.0",
"jsx-ast-utils-x": "0.1.0",
"lodash.merge": "4.6.2",
"minimatch": "10.2.6",
"postcss": "8.5.28",
"postcss-html": "2.0.0",
"postcss-less": "6.0.0",
"postcss-sass": "0.5.0",
"postcss-scss": "4.0.9",
"postcss-selector-parser": "7.1.6",
"postcss-value-parser": "4.2.0",
"protobufjs": "8.8.0",
"scslre": "0.3.0",
"semver": "7.8.5",
"stylelint": "17.15.0",
"stylelint-config-html": "2.0.0",
"ts-api-utils": "2.5.0",
"typescript": "6.0.3",
"vue-eslint-parser": "10.4.1",
"yaml": "2.9.1"
},
"prettier": {
"printWidth": 100,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "avoid",
"endOfLine": "lf",
"plugins": [
"prettier-plugin-java"
]
},
"files": [
"bin/",
"licenses/"
]
}