Closed kshyun28 closed 6 months ago
These changes improve the style and consistency of generated config files when running anchor init.
anchor init
.gitignore
.prettierignore
line 1
package.json
2
jest
tsconfig.json
Snippets for generate file changes before and after the fixes are shown below.
.ignore
.anchor .DS_Store target **/*.rs.bk node_modules test-ledger .yarn
{ "scripts": { "lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w", "lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check" }, "dependencies": { "@coral-xyz/anchor": "^0.29.0" }, "devDependencies": { "chai": "^4.3.4", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", "@types/bn.js": "^5.1.0", "@types/chai": "^4.3.0", "@types/mocha": "^9.0.0", "typescript": "^4.3.5", "prettier": "^2.6.2" } }
{ "scripts": { "lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w", "lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check" }, "dependencies": { "@coral-xyz/anchor": "^0.29.0" }, "devDependencies": { "@types/bn.js": "^5.1.0", "@types/jest": "^29.0.3", "jest": "^29.0.3", "prettier": "^2.6.2", "ts-jest": "^29.0.2", "typescript": "^4.3.5" } }
{ "compilerOptions": { "types": ["mocha", "chai"], "typeRoots": ["./node_modules/@types"], "lib": ["es2015"], "module": "commonjs", "target": "es6", "esModuleInterop": true } }
{ "compilerOptions": { "types": ["jest"], "typeRoots": ["./node_modules/@types"], "lib": ["es2015"], "module": "commonjs", "target": "es6", "esModuleInterop": true } }
@kshyun28 is attempting to deploy a commit to the coral-xyz Team on Vercel.
A member of the Team first needs to authorize it.
These changes improve the style and consistency of generated config files when running
anchor init
.Summary of Changes
.gitignore
and.prettierignore
, I removed the empty line online 1
.package.json
, I adjusted the indentation tab size to2
, then fixed indentation when usingjest
.tsconfig.json
, I fixed the indentation.Snippets for generate file changes before and after the fixes are shown below.
.ignore
filesOld
New
package.json
Default (mocha, chai)
Old
New
Jest
Old
New
tsconfig.json
Default (mocha, chai)
Old
New
Jest
Old
New