Skip to content

Commit

Permalink
Merge branch 'eslint-and-prettier-updates'
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpetro committed May 12, 2024
2 parents 492ea65 + b01b492 commit 8a810fc
Show file tree
Hide file tree
Showing 36 changed files with 1,116 additions and 324 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ module.exports = {
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'airbnb-base',
'airbnb-typescript/base',
'prettier'
],
root: true,
env: {
Expand All @@ -21,5 +23,11 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'class-methods-use-this': 'off',
'import/prefer-default-export': 'off',
'import/no-default-export': 'error',
'import/extensions': 'off',
"no-underscore-dangle": ["error", { "allow": ["_id", "_rev", "_deleted"] }],
'radix': 'off',
},
};
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/metadata.ts
2 changes: 0 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@
"bracketSpacing": true,
"trailingComma": "es5",
"semi": false,
"jsxSingleQuote": false,
"jsxBracketSameLine": false,
"endOfLine": "auto"
}
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
"scripts": {
"build": "nest build && mv dist/src/* dist && rmdir dist/src",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"checkFormat": "prettier --check src",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"start:prod": "NODE_ENV=production node dist/main",
"lint": "eslint \"{src,test}/**/*.ts\"",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
Expand Down Expand Up @@ -52,11 +53,13 @@
"@types/jest": "^29.5.2",
"@types/node": "^20.3.1",
"@types/supertest": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"eslint": "^8.42.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"jest": "^29.5.0",
"prettier": "^3.0.0",
"source-map-support": "^0.5.21",
Expand Down
Loading

0 comments on commit 8a810fc

Please sign in to comment.