-
Notifications
You must be signed in to change notification settings - Fork 183
/
package.json
193 lines (193 loc) · 7.75 KB
/
package.json
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
{
"name": "sonarjs",
"version": "1.0.0",
"description": "SonarJS code analyzer",
"scripts": {
"format": "prettier --write .",
"check-format": "prettier --list-different .",
"build": "mvn clean && npm run bridge:build && npm run _:plugin:pre-build && npm run plugin:build",
"build:cov": "mvn clean && npm run bridge:build:cov && npm run _:plugin:pre-build && npm run plugin:build",
"build:fast": "npm run bridge:build:fast && npm run _:plugin:pre-build && npm run plugin:build:fast",
"bf": "npm run build:fast",
"new-rule": "tsx tools/newRule.ts",
"generate-meta": "tsx tools/generate-meta.ts && cd packages/jsts/src/rules && npm run eslint-docs",
"generate-rules-list": "node tools/generate-rules-list.js",
"ruling": "node tools/prepare-ruling.js && tsx --tsconfig packages/tsconfig.test.json --test packages/ruling/tests/projects/*.ruling.test.ts",
"ruling-parametrized": "node tools/prepare-ruling.js && SONAR_RULING_SETTINGS=../settings.js tsx --tsconfig packages/tsconfig.test.json --test packages/ruling/tests/projects/*.ruling.test.ts",
"ruling-sync": "rsync -avh packages/ruling/tests/actual/jsts/ its/ruling/src/test/expected/jsts/ --delete",
"update-ruling-data": "mvn -f sonar-plugin/sonar-javascript-plugin/pom.xml compile && npx tsx packages/ruling/tests/tools/parseRulesData.ts",
"bridge:compile": "tsc -b packages profiling && npm run _:bridge:copy-protofiles",
"bridge:test": "tsx --tsconfig packages/tsconfig.test.json --test --test-reporter spec --test-reporter-destination stdout \"packages/*/src/rules/*[!node_modules]/**/*.test.ts\" \"packages/*[!ruling]/tests/**/*.test.ts\"",
"bridge:test:cov": "odz run npm run bridge:test || true && odz report --reporters=text-lcov > lcov.info",
"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 ci && npm run _:bridge:clear && npm run bridge:compile",
"bbf": "npm run bridge:build:fast",
"plugin:build": "mvn install && npm run update-ruling-data",
"plugin:build:fast": "mvn install -DskipTests && npm run update-ruling-data",
"pbf": "npm run plugin:build:fast",
"td": "npm --prefix typedoc/searchable-parameters-plugin run setup && npx typedoc --options typedoc/typedoc.js",
"prepare": "husky install",
"precommit": "pretty-quick --staged",
"count-rules": "node tools/count-rules.js",
"_:bridge:copy-protofiles": "cpy --flat packages/jsts/src/parsers/estree.proto sonar-plugin/bridge/src/main/protobuf && cpy --flat packages/jsts/src/parsers/estree.proto lib/jsts/src/parsers",
"_:bridge:clear": "rimraf --glob lib/*",
"_:plugin:prepare-bridge": "npm pack && node tools/check-distribution-filepath-length.cjs && npm run _:plugin:copy-bridge && npm run generate-rules-list",
"_:plugin-fetch-node": "node tools/fetch-node/scripts/wrapper.mjs",
"_:plugin:pre-build": "npm run _:plugin:prepare-bridge && npm run _:plugin-fetch-node",
"_:plugin:copy-bridge": "cpy sonarjs-1.0.0.tgz sonar-plugin/sonar-javascript-plugin/target/classes && cpy sonarjs-1.0.0.tgz sonar-plugin/standalone/target/classes",
"eslint-plugin:build": "npm ci && npm run eslint-plugin:compile && cd lib && npm pack",
"eslint-plugin:compile": "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",
"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 generate-eslint-package-json.mjs",
"eslint-plugin:copy-assets": "cpy LICENSE.txt lib/ --rename LICENSE && cpy packages/jsts/src/rules/README.md lib/ --flat",
"eslint-docs": "npm run compile && eslint-doc-generator lib"
},
"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": "^18.17.0 || ^20.9.0 || >=21.1.0"
},
"type": "module",
"devDependencies": {
"@types/babel__preset-env": "7.9.7",
"@types/bytes": "3.1.4",
"@types/eslint": "8.56.10",
"@types/eslint-scope": "3.7.7",
"@types/estree": "1.0.5",
"@types/express": "4.17.21",
"@types/functional-red-black-tree": "1.0.6",
"@types/lodash.clone": "4.5.9",
"@types/node": "20.11.30",
"@types/semver": "7.5.8",
"@types/tmp": "0.2.6",
"cpy-cli": "5.0.0",
"dir-compare": "5.0.0",
"eslint-doc-generator": "1.7.1",
"esprima": "4.0.1",
"expect": "29.7.0",
"extract-zip": "2.0.1",
"fs-extra": "11.2.0",
"husky": "9.1.6",
"json-schema-to-ts": "3.1.1",
"memfs": "4.12.0",
"mkdirp": "3.0.1",
"node-fetch": "3.3.2",
"one-double-zero": "^1.0.0-beta.10",
"prettier": "3.3.3",
"prettier-plugin-java": "2.6.4",
"pretty-quick": "4.0.0",
"rimraf": "6.0.1",
"tsx": "4.19.1",
"type-fest": "4.26.1",
"typedoc": "0.26.7"
},
"dependencies": {
"@babel/core": "7.25.2",
"@babel/eslint-parser": "7.25.1",
"@babel/plugin-proposal-decorators": "7.24.7",
"@babel/preset-env": "7.25.4",
"@babel/preset-flow": "7.24.7",
"@babel/preset-react": "7.24.7",
"@eslint-community/regexpp": "4.11.1",
"@typescript-eslint/eslint-plugin": "7.16.1",
"@typescript-eslint/parser": "7.16.1",
"@typescript-eslint/utils": "7.16.1",
"builtin-modules": "3.3.0",
"bytes": "3.1.2",
"eslint": "8.57.0",
"eslint-plugin-import": "2.30.0",
"eslint-plugin-jsx-a11y": "6.10.0",
"eslint-plugin-react": "7.36.1",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-scope": "8.1.0",
"express": "4.21.1",
"form-data": "4.0.0",
"functional-red-black-tree": "1.0.1",
"htmlparser2": "9.1.0",
"jsx-ast-utils": "3.3.5",
"lodash.clone": "4.5.0",
"minimatch": "10.0.1",
"module-alias": "2.2.3",
"postcss": "8.4.47",
"postcss-html": "0.36.0",
"postcss-less": "6.0.0",
"postcss-sass": "0.5.0",
"postcss-scss": "4.0.9",
"postcss-syntax": "0.36.2",
"postcss-value-parser": "4.2.0",
"protobufjs": "7.4.0",
"run-node": "2.0.0",
"scslre": "0.3.0",
"semver": "7.6.3",
"stylelint": "15.10.0",
"tar": "7.4.3",
"tmp": "0.2.3",
"typescript": "5.6.2",
"vue-eslint-parser": "9.4.3",
"yaml": "2.5.1"
},
"bundleDependencies": [
"@typescript-eslint/eslint-plugin",
"@typescript-eslint/utils",
"@typescript-eslint/parser",
"@babel/core",
"@babel/eslint-parser",
"@babel/plugin-proposal-decorators",
"@babel/preset-env",
"@babel/preset-flow",
"@babel/preset-react",
"@eslint-community/regexpp",
"builtin-modules",
"bytes",
"eslint",
"eslint-plugin-import",
"eslint-plugin-jsx-a11y",
"eslint-plugin-react",
"eslint-plugin-react-hooks",
"express",
"form-data",
"functional-red-black-tree",
"htmlparser2",
"jsx-ast-utils",
"lodash.clone",
"minimatch",
"module-alias",
"postcss",
"postcss-html",
"postcss-less",
"postcss-sass",
"postcss-scss",
"postcss-syntax",
"postcss-value-parser",
"protobufjs",
"run-node",
"semver",
"scslre",
"stylelint",
"tmp",
"vue-eslint-parser",
"typescript",
"yaml"
],
"prettier": {
"printWidth": 100,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "avoid",
"endOfLine": "lf"
},
"files": [
"lib/",
"bin/"
]
}