-
Notifications
You must be signed in to change notification settings - Fork 192
Expand file tree
/
Copy pathpackage.json
More file actions
173 lines (173 loc) · 7.57 KB
/
package.json
File metadata and controls
173 lines (173 loc) · 7.57 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
166
167
168
169
170
171
172
173
{
"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": "npm run sync-rspec-all && npm run grpc:generate-proto && tsx tools/generate-meta.ts",
"validate-quickfix": "tsx tools/validate-quickfix.ts",
"generate-java-rule-classes": "tsx tools/generate-java-rule-classes.ts",
"ruling": "tsx --tsconfig packages/tsconfig.test.json --test packages/ruling/projects/*.ruling.test.ts",
"sync-rspec": "tsx tools/sync-rspec.ts",
"sync-rspec-all": "npm run sync-rspec -- --language javascript && npm run sync-rspec -- --language css && npm run deploy-rule-data",
"ruling-sync": "rsync -avh packages/ruling/actual/ its/ruling/src/test/expected/ --delete",
"bridge:compile:ts5": "tsc -b packages && tsx tools/generate-proto.ts --copy",
"bridge:compile": "tsgo -p packages/tsconfig.app.json && tsgo -p packages/tsconfig.test.json && tsx tools/generate-proto.ts --copy",
"bridge:test": "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",
"grpc:generate-proto": "tsx tools/generate-proto.ts",
"grpc:bundle": "node esbuild-grpc.mjs",
"grpc:build": "npm run bridge:build:fast && npm run grpc:bundle",
"plugin:build": "mvn install",
"plugin:build:fast": "mvn install -DskipTests",
"pbf": "npm run plugin:build:fast",
"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 ci && 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-plugin:copy-assets && npm run eslint-docs",
"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/jsts/src/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",
"docker:build": "npm run grpc:build && docker build -t sonarjs:latest .",
"docker:run": "docker run -p 50051:50051 sonarjs:latest"
},
"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": "^20.12.0 || ^22.11.0 || ^24.0.0"
},
"type": "module",
"devDependencies": {
"@asciidoctor/core": "3.0.4",
"@eslint/core": "1.1.1",
"@inquirer/prompts": "8.3.2",
"@istanbuljs/esm-loader-hook": "0.3.0",
"@types/babel__preset-env": "7.10.0",
"@types/bytes": "3.1.5",
"@types/estree": "1.0.8",
"@types/estree-jsx": "1.0.5",
"@types/express": "5.0.6",
"@types/functional-red-black-tree": "1.0.6",
"@types/lodash.merge": "4.6.9",
"@types/node": "24.12.0",
"@types/semver": "7.7.1",
"@types/ws": "8.18.1",
"cpy-cli": "7.0.0",
"cross-env": "10.1.0",
"dir-compare": "5.0.0",
"esbuild": "0.27.4",
"esbuild-plugin-copy": "2.1.1",
"esbuild-plugin-text-replace": "1.3.0",
"eslint-doc-generator": "3.3.1",
"esprima": "4.0.1",
"expect": "30.3.0",
"glob": "13.0.6",
"husky": "9.1.7",
"json-schema-to-ts": "3.1.1",
"knip": "5.88.0",
"license-checker": "25.0.1",
"memfs": "4.56.11",
"node-reporter-sonarqube": "1.0.3",
"nyc": "18.0.0",
"package-manifest-generator": "1.0.0-beta.4",
"prettier": "3.8.1",
"prettier-plugin-java": "2.8.1",
"pretty-quick": "4.2.2",
"protobufjs-cli": "2.0.0",
"rimraf": "6.1.3",
"tsx": "4.21.0",
"type-fest": "5.5.0"
},
"dependencies": {
"@angular-eslint/eslint-plugin": "21.3.1",
"@babel/core": "7.29.0",
"@babel/eslint-parser": "7.28.6",
"@babel/plugin-proposal-decorators": "7.29.0",
"@babel/preset-env": "7.29.2",
"@babel/preset-flow": "7.27.1",
"@babel/preset-react": "7.28.5",
"@eslint-community/regexpp": "4.12.2",
"@grpc/grpc-js": "1.14.3",
"@protobufjs/base64": "1.1.2",
"@stylistic/eslint-plugin": "5.10.0",
"@stylistic/stylelint-plugin": "5.0.1",
"@typescript-eslint/eslint-plugin": "8.57.1",
"@typescript-eslint/parser": "8.57.1",
"@typescript-eslint/type-utils": "8.57.1",
"@typescript-eslint/utils": "8.57.1",
"@typescript/native-preview": "7.0.0-dev.20260316.1",
"builtin-modules": "5.0.0",
"bytes": "3.1.2",
"color": "5.0.3",
"css-unit-converter": "1.1.2",
"eslint": "9.39.4",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "7.0.1",
"eslint-plugin-unicorn": "63.0.0",
"express": "5.2.1",
"functional-red-black-tree": "1.0.1",
"globals": "17.4.0",
"htmlparser2": "11.0.0",
"http-status-codes": "2.3.0",
"jsx-ast-utils-x": "0.1.0",
"lodash.merge": "4.6.2",
"minimatch": "10.2.4",
"patch-package": "8.0.1",
"postcss": "8.5.8",
"postcss-html": "1.8.1",
"postcss-less": "6.0.0",
"postcss-sass": "0.5.0",
"postcss-scss": "4.0.9",
"postcss-selector-parser": "7.1.1",
"postcss-value-parser": "4.2.0",
"protobufjs": "7.5.4",
"scslre": "0.3.0",
"semver": "7.7.4",
"stylelint": "17.4.0",
"stylelint-config-html": "1.1.0",
"ts-api-utils": "2.5.0",
"typescript": "5.9.3",
"vue-eslint-parser": "10.4.0",
"ws": "8.19.0",
"yaml": "2.8.2"
},
"prettier": {
"printWidth": 100,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "avoid",
"endOfLine": "lf",
"plugins": [
"prettier-plugin-java"
]
},
"files": [
"bin/",
"licenses/"
]
}