chore: add prettier and eslint dev deps

This commit is contained in:
Tim Man
2023-07-11 14:19:04 +08:00
parent 5b20108e06
commit 26d1801ce9
4 changed files with 4484 additions and 18 deletions

26
.eslintrc.json Normal file
View File

@@ -0,0 +1,26 @@
{
"root": true,
"plugins": [
"@typescript-eslint",
"import",
"prettier"
],
"extends": [
"airbnb-typescript/base",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"max-len": [
"error",
{
"code": 120
}
]
}
}

13
.prettierrc.json Normal file
View File

@@ -0,0 +1,13 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"jsxSingleQuote": false,
"quoteProps": "as-needed",
"singleQuote": true,
"semi": true,
"printWidth": 100,
"useTabs": false,
"tabWidth": 2,
"trailingComma": "all"
}

4454
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -27,8 +27,17 @@
},
"devDependencies": {
"@types/node": "^12.12.6",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"eslint": "^8.44.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"nock": "^13.2.0",
"nodemon": "^2.0.15",
"prettier": "^2.8.7",
"ts-node": "^10.8.1",
"typescript": "^4.2.3"
}