-
Notifications
You must be signed in to change notification settings - Fork 183
/
package.json
153 lines (153 loc) · 6.94 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
{
"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: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 ci && npm run _:bridge:clear && npm run bridge:compile && npm run bridge:bundle",
"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",
"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 && 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 eslint-plugin:compile && eslint-doc-generator lib --init-rule-docs"
},
"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"
},
"type": "module",
"devDependencies": {
"@babel/preset-typescript": "7.26.0",
"@types/babel__preset-env": "7.9.7",
"@types/bytes": "3.1.4",
"@types/eslint": "8.56.12",
"@types/eslint-scope": "3.7.7",
"@types/estree": "1.0.6",
"@types/express": "4.17.21",
"@types/functional-red-black-tree": "1.0.6",
"@types/lodash.clone": "4.5.9",
"@types/node": "20.17.6",
"@types/semver": "7.5.8",
"@types/tmp": "0.2.6",
"cpy-cli": "5.0.0",
"dir-compare": "5.0.0",
"esbuild": "0.24.0",
"esbuild-plugin-copy": "2.1.1",
"esbuild-plugin-text-replace": "1.3.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.7",
"json-schema-to-ts": "3.1.1",
"memfs": "4.14.0",
"mkdirp": "3.0.1",
"node-fetch": "3.3.2",
"one-double-zero": "^1.0.0-beta.10",
"prettier": "3.4.1",
"prettier-plugin-java": "2.6.5",
"pretty-quick": "4.0.0",
"rimraf": "6.0.1",
"tsx": "4.19.2",
"type-fest": "4.27.0",
"typedoc": "0.27.1"
},
"dependencies": {
"@babel/core": "7.26.0",
"@babel/eslint-parser": "7.25.9",
"@babel/plugin-proposal-decorators": "7.25.9",
"@babel/preset-env": "7.26.0",
"@babel/preset-flow": "7.25.9",
"@babel/preset-react": "7.25.9",
"@eslint-community/regexpp": "4.12.1",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@typescript-eslint/utils": "7.18.0",
"builtin-modules": "3.3.0",
"bytes": "3.1.2",
"eslint": "8.57.1",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-react": "7.37.2",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-scope": "8.2.0",
"express": "4.21.1",
"form-data": "4.0.1",
"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.49",
"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",
"scslre": "0.3.0",
"semver": "7.6.3",
"stylelint": "15.11.0",
"tar": "7.4.3",
"tmp": "0.2.3",
"typescript": "5.7.2",
"vue-eslint-parser": "9.4.3",
"yaml": "2.6.1"
},
"prettier": {
"printWidth": 100,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "avoid",
"endOfLine": "lf"
},
"files": [
"bin/"
]
}