Skip to content

Commit

Permalink
Upgrade Nest.js and other dependencies (#324)
Browse files Browse the repository at this point in the history
* Fix package locks

* Update nestjs

* Update typescript

* Update jest and other dependencies

* Update to node 14

* Remove jest electron runner

* Upgrade eslint and prettier, fix lint issues
  • Loading branch information
nglgzz authored Aug 31, 2021
1 parent e9ab8ec commit 3b210bd
Show file tree
Hide file tree
Showing 68 changed files with 85,731 additions and 113,254 deletions.
31 changes: 26 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"prettier",
"plugin:prettier/recommended",
"plugin:jest/recommended"
],
Expand All @@ -18,6 +18,13 @@
},
"plugins": ["@typescript-eslint/eslint-plugin"],
"overrides": [
{
// We use conditional expect to run tests only in certain platforms.
"files": ["packages/common/**/*.ts", "packages/web/**/*.ts", "packages/cli/**/*.ts"],
"rules": {
"jest/no-conditional-expect": "off"
}
},
{
"files": ["**/*.js"],
"rules": {
Expand Down Expand Up @@ -57,13 +64,23 @@
{
"files": ["packages/types/src/**/*.ts"],
"rules": {
"@typescript-eslint/ban-ts-ignore": ["off"]
"@typescript-eslint/ban-ts-comment": ["off"]
}
}
],
"rules": {
"@typescript-eslint/consistent-type-assertions": ["error", {"assertionStyle": "never"}],
"@typescript-eslint/interface-name-prefix": ["error", "always"],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
}
],
"@typescript-eslint/no-unused-vars": ["error", {"args": "none"}],
"array-bracket-spacing": ["error", "never"],
"array-callback-return": "error",
Expand Down Expand Up @@ -110,7 +127,9 @@
"max-statements": "warn",
"max-statements-per-line": "error",
"new-parens": "error",
"newline-per-chained-call": "error",
// This rule is conflicting with the new behavior from prettier
// https://prettier.io/blog/2020/03/21/2.0.0.html#improved-method-chain-breaking-heuristic-6685httpsgithubcomprettierprettierpull6685-by-mmkalhttpsgithubcommmkal
"newline-per-chained-call": "off",
"no-alert": "error",
"no-array-constructor": "error",
"no-await-in-loop": "error",
Expand Down Expand Up @@ -206,7 +225,9 @@
"no-self-compare": "error",
"no-sequences": "error",
"no-setter-return": "error",
"no-shadow": "error",
// The default rule flags all enums as errors
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-sync": "error",
"no-tabs": "error",
"no-template-curly-in-string": "error",
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
14
18 changes: 9 additions & 9 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"printWidth": 120,
"semi": true,
"singleQuote": true,
"useTabs": false,
"tabWidth": 4,
"arrowParens": "always",
"trailingComma": "all",
"bracketSpacing": false,
"endOfLine": "lf"
"printWidth": 120,
"semi": true,
"singleQuote": true,
"useTabs": false,
"tabWidth": 4,
"arrowParens": "always",
"trailingComma": "all",
"bracketSpacing": false,
"endOfLine": "lf"
}
Loading

0 comments on commit 3b210bd

Please sign in to comment.