Skip to content

Commit 2fbac11

Browse files
HugoMendes98renovate[bot]
authored andcommitted
fix(deps): bump @typescript-eslint/parser peer to ^7.0.0
--------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 9c7ea43 commit 2fbac11

30 files changed

+3264
-3315
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM mcr.microsoft.com/devcontainers/typescript-node:20
2+
3+
RUN apt-get update && apt-get install -y --no-install-recommends vim bash-completion

.devcontainer/devcontainer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"build": {
3+
"dockerfile": "Dockerfile"
4+
},
5+
"customizations": {
6+
"vscode": {
7+
"extensions": [
8+
"EditorConfig.EditorConfig",
9+
"GitHub.vscode-pull-request-github",
10+
"Gruntfuggly.todo-tree",
11+
"dbaeumer.vscode-eslint",
12+
"exiasr.hadolint",
13+
"firsttris.vscode-jest-runner",
14+
"github.vscode-github-actions",
15+
"mhutchie.git-graph",
16+
"redhat.vscode-yaml",
17+
"streetsidesoftware.code-spell-checker",
18+
"vivaxy.vscode-conventional-commits",
19+
"waderyan.gitblame",
20+
"yoavbls.pretty-ts-errors"
21+
],
22+
"settings": {
23+
// Ensure correct node version
24+
"eslint.runtime": "/usr/local/bin/node"
25+
}
26+
}
27+
},
28+
"features": {
29+
"ghcr.io/dhoeric/features/hadolint:1": {}
30+
},
31+
"name": "DevContainer",
32+
"onCreateCommand": "npm install",
33+
"postCreateCommand": "echo \"PATH=\"${PATH}:${PWD}/node_modules/.bin\"\" >> ~/.bashrc"
34+
}

.eslintrc.json

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@
4545
}
4646
},
4747
{
48-
"files": [".eslintrc.json", ".prettierrc.json", "tsconfig.json", "tsconfig.*.json"],
48+
"files": [
49+
".eslintrc.json",
50+
".prettierrc.json",
51+
"tsconfig.json",
52+
"tsconfig.*.json",
53+
".vscode/*.json"
54+
],
4955
"rules": {
5056
/* OK for `rc` files */
5157
"jsonc/no-comments": "off"
@@ -175,12 +181,6 @@
175181
}
176182
],
177183
"@typescript-eslint/no-for-in-array": "error",
178-
"@typescript-eslint/no-implicit-any-catch": [
179-
"error",
180-
{
181-
"allowExplicitAny": false
182-
}
183-
],
184184
"@typescript-eslint/no-inferrable-types": "error",
185185
"@typescript-eslint/no-misused-new": "error",
186186
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
@@ -196,7 +196,6 @@
196196
"@typescript-eslint/sort-type-constituents": "error",
197197
"@typescript-eslint/type-annotation-spacing": "error",
198198
"etc/no-assign-mutated-array": "error",
199-
"etc/no-deprecated": "warn",
200199
"etc/no-implicit-any-catch": [
201200
"error",
202201
{
@@ -229,7 +228,7 @@
229228
"env": {
230229
"jest": true
231230
},
232-
"extends": ["plugin:jest/recommended", "plugin:jest/style", "plugin:jest-extended/all"],
231+
"extends": ["plugin:jest/recommended", "plugin:jest/style"],
233232
"files": ["*.spec.ts", "*.spec.js"],
234233
"plugins": ["jest"],
235234
"rules": {
@@ -285,31 +284,22 @@
285284
}
286285
],
287286
"plugins": [
288-
"@cspell",
289287
"@shopify",
290288
"eslint-plugin-import",
291289
"etc",
292-
"jest-extended",
293290
"prettier",
294291
"sonarjs",
295292
"sort-destructure-keys",
293+
"sort-keys-plus",
296294
"typescript-sort-keys",
297295
"unicorn",
298296
"unused-imports"
299297
],
300298
"root": true,
301299
"rules": {
302-
"@cspell/spellchecker": [
303-
"warn",
304-
{
305-
"autoFix": true,
306-
"customWordListFile": "./tools/cspell/words.txt"
307-
}
308-
],
309300
"@shopify/no-useless-computed-properties": "error",
310301
"@shopify/prefer-early-return": "error",
311302
"arrow-parens": "off",
312-
"comma-dangle": "error",
313303
"curly": ["error", "all"],
314304
"eol-last": "error",
315305
"eqeqeq": "error",
@@ -413,6 +403,13 @@
413403
"allowLineSeparatedGroups": true
414404
}
415405
],
406+
"sort-keys-plus/sort-keys": [
407+
"error",
408+
"asc",
409+
{
410+
"allowLineSeparatedGroups": true
411+
}
412+
],
416413
"sort-vars": "error",
417414
"space-before-blocks": "error",
418415
"space-before-function-paren": [

.prettierrc.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"arrowParens": "avoid",
33
"overrides": [
4+
{
5+
"files": "*.json",
6+
"options": {
7+
"trailingComma": "none"
8+
}
9+
},
410
{
511
"files": "*.md",
612
"options": {
@@ -18,6 +24,6 @@
1824
"semi": true,
1925
"singleQuote": false,
2026
"tabWidth": 4,
21-
"trailingComma": "none",
27+
"trailingComma": "all",
2228
"useTabs": true
2329
}

.vscode/extensions.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"recommendations": [
3-
"firsttris.vscode-jest-runner",
4-
"dbaeumer.vscode-eslint",
5-
"emeraldwalk.runonsave"
6-
]
2+
"recommendations": ["ms-vscode-remote.remote-containers"]
73
}

.vscode/settings.json

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
{
22
"editor.codeActionsOnSave": {
3-
"source.fixAll": true
3+
"source.fixAll": "explicit"
44
},
5-
"emeraldwalk.runonsave": {
6-
"commands": [
7-
{
8-
"cmd": "npx eslint --fix ${file}",
9-
"match": ".*\\.[ts|js|json|md|yml]"
10-
}
11-
]
5+
"eslint.onIgnoredFiles": "warn",
6+
"eslint.validate": [
7+
"html",
8+
"javascript",
9+
"javascriptreact",
10+
"json",
11+
"markdown",
12+
"typescript",
13+
"typescriptreact",
14+
"vue",
15+
"yaml"
16+
],
17+
"files.associations": {
18+
// Supposition: some files are ignored (e.g.: tsconfig.json) in the eslint plugin
19+
// Doing this, "force" them to be considered
20+
"*.json": "json",
21+
"*.yaml": "yaml",
22+
"*.yml": "yaml"
1223
}
1324
}

jest.config.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
import * as path from "path";
21
import { JestConfigWithTsJest } from "ts-jest";
32

43
export default {
54
collectCoverageFrom: [
65
"<rootDir>/src/**/*.ts",
76
"!<rootDir>/src/**/index.ts",
8-
"!<rootDir>/src/configs/*.ts"
7+
"!<rootDir>/src/configs/*.ts",
98
],
109
coverageThreshold: { global: { branches: 75, functions: 75, lines: 75, statements: 75 } },
1110
moduleFileExtensions: ["js", "ts"],
12-
setupFilesAfterEnv: [path.resolve(__dirname, "./tools/jest/jest-extended.ts")],
13-
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
11+
testPathIgnorePatterns: ["node_modules/", "dist/"],
1412
transform: {
1513
"^.+\\.[tj]s$": [
1614
"ts-jest",
1715
{
18-
tsconfig: "<rootDir>/tsconfig.spec.json"
19-
}
20-
]
16+
tsconfig: "<rootDir>/tsconfig.spec.json",
17+
},
18+
],
2119
},
22-
transformIgnorePatterns: ["node_modules/(?!.*\\.mjs$)"]
20+
transformIgnorePatterns: ["node_modules/(?!.*\\.mjs$)"],
2321
} satisfies JestConfigWithTsJest;

0 commit comments

Comments
 (0)