mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
use prettier to format the code
This commit is contained in:
parent
4fcdb0fea0
commit
8e9f54f238
@ -29,8 +29,8 @@
|
|||||||
"build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node16",
|
"build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node16",
|
||||||
"build": "npm run build-base -- --sourcemap",
|
"build": "npm run build-base -- --sourcemap",
|
||||||
"watch": "npm run build-base -- --sourcemap --watch",
|
"watch": "npm run build-base -- --sourcemap --watch",
|
||||||
"lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests",
|
"lint": "prettier --check . && eslint -c .eslintrc.js --ext ts ./src ./tests",
|
||||||
"fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
|
"fix": "prettier --write . && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
|
||||||
"pretest": "tsc && npm run build",
|
"pretest": "tsc && npm run build",
|
||||||
"test": "cross-env TEST_VARIABLE=test node ./out/tests/runTests.js"
|
"test": "cross-env TEST_VARIABLE=test node ./out/tests/runTests.js"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user