Skip to content

Commit

Permalink
fix(deps): bump @typescript-eslint/parser peer to ^7.0.0
Browse files Browse the repository at this point in the history
---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and Mendes Hugo committed Mar 24, 2024
1 parent 9c7ea43 commit 2fbac11
Show file tree
Hide file tree
Showing 30 changed files with 3,264 additions and 3,315 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/Dockerfile
@@ -0,0 +1,3 @@
FROM mcr.microsoft.com/devcontainers/typescript-node:20

RUN apt-get update && apt-get install -y --no-install-recommends vim bash-completion
34 changes: 34 additions & 0 deletions .devcontainer/devcontainer.json
@@ -0,0 +1,34 @@
{
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"EditorConfig.EditorConfig",
"GitHub.vscode-pull-request-github",
"Gruntfuggly.todo-tree",
"dbaeumer.vscode-eslint",
"exiasr.hadolint",
"firsttris.vscode-jest-runner",
"github.vscode-github-actions",
"mhutchie.git-graph",
"redhat.vscode-yaml",
"streetsidesoftware.code-spell-checker",
"vivaxy.vscode-conventional-commits",
"waderyan.gitblame",
"yoavbls.pretty-ts-errors"
],
"settings": {
// Ensure correct node version
"eslint.runtime": "/usr/local/bin/node"
}
}
},
"features": {
"ghcr.io/dhoeric/features/hadolint:1": {}
},
"name": "DevContainer",
"onCreateCommand": "npm install",
"postCreateCommand": "echo \"PATH=\"${PATH}:${PWD}/node_modules/.bin\"\" >> ~/.bashrc"
}
35 changes: 16 additions & 19 deletions .eslintrc.json
Expand Up @@ -45,7 +45,13 @@
}
},
{
"files": [".eslintrc.json", ".prettierrc.json", "tsconfig.json", "tsconfig.*.json"],
"files": [
".eslintrc.json",
".prettierrc.json",
"tsconfig.json",
"tsconfig.*.json",
".vscode/*.json"
],
"rules": {
/* OK for `rc` files */
"jsonc/no-comments": "off"
Expand Down Expand Up @@ -175,12 +181,6 @@
}
],
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-implicit-any-catch": [
"error",
{
"allowExplicitAny": false
}
],
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
Expand All @@ -196,7 +196,6 @@
"@typescript-eslint/sort-type-constituents": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"etc/no-assign-mutated-array": "error",
"etc/no-deprecated": "warn",
"etc/no-implicit-any-catch": [
"error",
{
Expand Down Expand Up @@ -229,7 +228,7 @@
"env": {
"jest": true
},
"extends": ["plugin:jest/recommended", "plugin:jest/style", "plugin:jest-extended/all"],
"extends": ["plugin:jest/recommended", "plugin:jest/style"],
"files": ["*.spec.ts", "*.spec.js"],
"plugins": ["jest"],
"rules": {
Expand Down Expand Up @@ -285,31 +284,22 @@
}
],
"plugins": [
"@cspell",
"@shopify",
"eslint-plugin-import",
"etc",
"jest-extended",
"prettier",
"sonarjs",
"sort-destructure-keys",
"sort-keys-plus",
"typescript-sort-keys",
"unicorn",
"unused-imports"
],
"root": true,
"rules": {
"@cspell/spellchecker": [
"warn",
{
"autoFix": true,
"customWordListFile": "./tools/cspell/words.txt"
}
],
"@shopify/no-useless-computed-properties": "error",
"@shopify/prefer-early-return": "error",
"arrow-parens": "off",
"comma-dangle": "error",
"curly": ["error", "all"],
"eol-last": "error",
"eqeqeq": "error",
Expand Down Expand Up @@ -413,6 +403,13 @@
"allowLineSeparatedGroups": true
}
],
"sort-keys-plus/sort-keys": [
"error",
"asc",
{
"allowLineSeparatedGroups": true
}
],
"sort-vars": "error",
"space-before-blocks": "error",
"space-before-function-paren": [
Expand Down
8 changes: 7 additions & 1 deletion .prettierrc.json
@@ -1,6 +1,12 @@
{
"arrowParens": "avoid",
"overrides": [
{
"files": "*.json",
"options": {
"trailingComma": "none"
}
},
{
"files": "*.md",
"options": {
Expand All @@ -18,6 +24,6 @@
"semi": true,
"singleQuote": false,
"tabWidth": 4,
"trailingComma": "none",
"trailingComma": "all",
"useTabs": true
}
6 changes: 1 addition & 5 deletions .vscode/extensions.json
@@ -1,7 +1,3 @@
{
"recommendations": [
"firsttris.vscode-jest-runner",
"dbaeumer.vscode-eslint",
"emeraldwalk.runonsave"
]
"recommendations": ["ms-vscode-remote.remote-containers"]
}
27 changes: 19 additions & 8 deletions .vscode/settings.json
@@ -1,13 +1,24 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
},
"emeraldwalk.runonsave": {
"commands": [
{
"cmd": "npx eslint --fix ${file}",
"match": ".*\\.[ts|js|json|md|yml]"
}
]
"eslint.onIgnoredFiles": "warn",
"eslint.validate": [
"html",
"javascript",
"javascriptreact",
"json",
"markdown",
"typescript",
"typescriptreact",
"vue",
"yaml"
],
"files.associations": {
// Supposition: some files are ignored (e.g.: tsconfig.json) in the eslint plugin
// Doing this, "force" them to be considered
"*.json": "json",
"*.yaml": "yaml",
"*.yml": "yaml"
}
}
14 changes: 6 additions & 8 deletions jest.config.ts
@@ -1,23 +1,21 @@
import * as path from "path";
import { JestConfigWithTsJest } from "ts-jest";

export default {
collectCoverageFrom: [
"<rootDir>/src/**/*.ts",
"!<rootDir>/src/**/index.ts",
"!<rootDir>/src/configs/*.ts"
"!<rootDir>/src/configs/*.ts",
],
coverageThreshold: { global: { branches: 75, functions: 75, lines: 75, statements: 75 } },
moduleFileExtensions: ["js", "ts"],
setupFilesAfterEnv: [path.resolve(__dirname, "./tools/jest/jest-extended.ts")],
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
testPathIgnorePatterns: ["node_modules/", "dist/"],
transform: {
"^.+\\.[tj]s$": [
"ts-jest",
{
tsconfig: "<rootDir>/tsconfig.spec.json"
}
]
tsconfig: "<rootDir>/tsconfig.spec.json",
},
],
},
transformIgnorePatterns: ["node_modules/(?!.*\\.mjs$)"]
transformIgnorePatterns: ["node_modules/(?!.*\\.mjs$)"],
} satisfies JestConfigWithTsJest;

0 comments on commit 2fbac11

Please sign in to comment.