Skip to content

Commit

Permalink
chore: upgrade deps (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor authored Dec 28, 2023
1 parent 2425ee3 commit a2b8b9d
Show file tree
Hide file tree
Showing 9 changed files with 352 additions and 603 deletions.
22 changes: 15 additions & 7 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const paddingLineBetweenStatements = [
"error",
{ blankLine: "always", prev: "*", next: "return" },
{ blankLine: "always", next: "return", prev: "*" },
]
.concat(
[
Expand All @@ -13,16 +13,16 @@ const paddingLineBetweenStatements = [
"if",
]
.map((item) => [
{ blankLine: "always", prev: item, next: "*" },
{ blankLine: "always", prev: "*", next: item },
{ blankLine: "always", next: "*", prev: item },
{ blankLine: "always", next: item, prev: "*" },
])
.flat(),
)
.concat([
{
blankLine: "any",
prev: ["singleline-const"],
next: ["singleline-const"],
prev: ["singleline-const"],
},
]);

Expand All @@ -39,8 +39,10 @@ module.exports = {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint", "prettier", "@stylistic"],
plugins: ["@typescript-eslint", "prettier", "@stylistic", "perfectionist"],
rules: {
"@stylistic/padding-line-between-statements": paddingLineBetweenStatements,

"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-unused-vars": "error",
Expand All @@ -55,12 +57,18 @@ module.exports = {
"no-useless-return": "error",
"object-shorthand": "error",
"operator-assignment": "error",

"perfectionist/sort-enums": "error",
"perfectionist/sort-exports": "error",
"perfectionist/sort-interfaces": "error",
"perfectionist/sort-object-types": "error",
"perfectionist/sort-objects": "error",
"perfectionist/sort-union-types": "error",

"prefer-const": "error",
"prefer-destructuring": ["error"],
"prefer-spread": "error",
"prefer-template": "error",
"quote-props": ["error", "consistent-as-needed"],

"@stylistic/padding-line-between-statements": paddingLineBetweenStatements,
},
};
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/node": "^20.10.5",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.1",
"eslint-plugin-perfectionist": "^2.5.0",
"eslint-plugin-prettier": "^5.1.2",
"graphql": "^16.8.1",
"nodemon": "^3.0.2",
"prettier": "^3.1.1",
Expand Down
Loading

0 comments on commit a2b8b9d

Please sign in to comment.