Skip to content

Commit

Permalink
fix: upgraded @typescript-eslint* to v6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin SÉGAULT authored and Benjamin SÉGAULT committed Nov 6, 2023
1 parent 1513ee4 commit 065d869
Show file tree
Hide file tree
Showing 4 changed files with 875 additions and 1,060 deletions.
8 changes: 5 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ module.exports = {
extends: [
// Base recommended set of rules
"eslint:recommended",
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin/src/configs
// recommended extends @typescript-eslint/eslint-recommended which disables some of eslint:recommended
"plugin:@typescript-eslint/recommended",

// https://typescript-eslint.io/linting/configs/#recommended-configurations
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic",

// Additional recommended react rules
"plugin:react/recommended",
// Additional recommended react-hooks rules
Expand Down
130 changes: 116 additions & 14 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@
"linebreak-style": [
"off"
],
"max-statements-per-line": [
"off"
],
"multiline-ternary": [
"off"
],
Expand Down Expand Up @@ -462,6 +465,9 @@
"vue/array-bracket-spacing": [
"off"
],
"vue/array-element-newline": [
"off"
],
"vue/arrow-spacing": [
"off"
],
Expand Down Expand Up @@ -783,13 +789,28 @@
"@typescript-eslint/adjacent-overload-signatures": [
"error"
],
"@typescript-eslint/ban-ts-comment": [
"@typescript-eslint/array-type": [
"error"
],
"no-array-constructor": [
"off"
"@typescript-eslint/ban-tslint-comment": [
"error"
],
"@typescript-eslint/no-array-constructor": [
"@typescript-eslint/class-literal-property-style": [
"error"
],
"@typescript-eslint/consistent-generic-constructors": [
"error"
],
"@typescript-eslint/consistent-indexed-object-style": [
"error"
],
"@typescript-eslint/consistent-type-assertions": [
"error"
],
"@typescript-eslint/consistent-type-definitions": [
"error"
],
"@typescript-eslint/no-confusing-non-null-assertion": [
"error"
],
"no-empty-function": [
Expand All @@ -801,10 +822,52 @@
"@typescript-eslint/no-empty-interface": [
"error"
],
"@typescript-eslint/no-inferrable-types": [
"error"
],
"@typescript-eslint/prefer-for-of": [
"error"
],
"@typescript-eslint/prefer-function-type": [
"error"
],
"@typescript-eslint/prefer-namespace-keyword": [
"error"
],
"@typescript-eslint/await-thenable": [
"error"
],
"@typescript-eslint/ban-ts-comment": [
"error"
],
"no-array-constructor": [
"off"
],
"@typescript-eslint/no-array-constructor": [
"error"
],
"@typescript-eslint/no-base-to-string": [
"error"
],
"@typescript-eslint/no-duplicate-enum-values": [
"error"
],
"@typescript-eslint/no-duplicate-type-constituents": [
"error"
],
"@typescript-eslint/no-extra-non-null-assertion": [
"error"
],
"@typescript-eslint/no-inferrable-types": [
"@typescript-eslint/no-floating-promises": [
"error"
],
"@typescript-eslint/no-for-in-array": [
"error"
],
"no-implied-eval": [
"off"
],
"@typescript-eslint/no-implied-eval": [
"error"
],
"no-loss-of-precision": [
Expand All @@ -816,21 +879,48 @@
"@typescript-eslint/no-misused-new": [
"error"
],
"@typescript-eslint/no-misused-promises": [
"error"
],
"@typescript-eslint/no-namespace": [
"error"
],
"@typescript-eslint/no-non-null-asserted-optional-chain": [
"error"
],
"@typescript-eslint/no-non-null-assertion": [
"warn"
"@typescript-eslint/no-redundant-type-constituents": [
"error"
],
"@typescript-eslint/no-this-alias": [
"error"
],
"@typescript-eslint/no-unnecessary-type-assertion": [
"error"
],
"@typescript-eslint/no-unnecessary-type-constraint": [
"error"
],
"@typescript-eslint/no-unsafe-argument": [
"error"
],
"@typescript-eslint/no-unsafe-assignment": [
"error"
],
"@typescript-eslint/no-unsafe-call": [
"error"
],
"@typescript-eslint/no-unsafe-declaration-merging": [
"error"
],
"@typescript-eslint/no-unsafe-enum-comparison": [
"error"
],
"@typescript-eslint/no-unsafe-member-access": [
"error"
],
"@typescript-eslint/no-unsafe-return": [
"error"
],
"no-unused-vars": [
"off"
],
Expand All @@ -840,12 +930,24 @@
"@typescript-eslint/prefer-as-const": [
"error"
],
"@typescript-eslint/prefer-namespace-keyword": [
"require-await": [
"off"
],
"@typescript-eslint/require-await": [
"error"
],
"@typescript-eslint/restrict-plus-operands": [
"error"
],
"@typescript-eslint/restrict-template-expressions": [
"error"
],
"@typescript-eslint/triple-slash-reference": [
"error"
],
"@typescript-eslint/unbound-method": [
"error"
],
"constructor-super": [
"error"
],
Expand Down Expand Up @@ -1021,11 +1123,11 @@
}
},
"ignorePatterns": [
"build",
"coverage",
"dist",
"doc",
"node_modules",
"tmp"
"/build",
"/coverage",
"/dist",
"/doc",
"/node_modules",
"/tmp"
]
}
Loading

0 comments on commit 065d869

Please sign in to comment.