add linting and prettier
This commit is contained in:
21
package.json
21
package.json
@@ -8,6 +8,7 @@
|
||||
"compile": "rm -rf dist && tsc -d && npm run copy-types",
|
||||
"lint": "eslint --ext .ts src/",
|
||||
"lint:fix": "eslint --ext .ts src/ --fix",
|
||||
"format": "npx prettier --write src",
|
||||
"prepublish": "tsc",
|
||||
"copy-types": "mkdir dist/types && cp src/types/*.d.ts dist/types"
|
||||
},
|
||||
@@ -31,14 +32,17 @@
|
||||
"devDependencies": {
|
||||
"@types/node": "^15.3.0",
|
||||
"@types/node-fetch": "^2.5.10",
|
||||
"@typescript-eslint/eslint-plugin": "^4.23.0",
|
||||
"@typescript-eslint/parser": "^4.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
||||
"@typescript-eslint/parser": "^5.58.0",
|
||||
"dotenv": "^9.0.2",
|
||||
"eslint": "^7.26.0",
|
||||
"eslint-config-airbnb-base": "^14.2.1",
|
||||
"eslint-plugin-import": "^2.23.1",
|
||||
"eslint": "^8.38.0",
|
||||
"eslint-config-airbnb-typescript": "^17.0.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"husky": "^8.0.3",
|
||||
"prettier": "^2.8.7",
|
||||
"ts-node": "^9.1.1",
|
||||
"typescript": "^4.2.4"
|
||||
"typescript": "^4.9.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"cross-fetch": "^3.1.4"
|
||||
@@ -48,6 +52,11 @@
|
||||
"yarn": "1.19.2",
|
||||
"npm": "7.12.1"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "echo \"[Husky] pre-commit\""
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user