Skip to content

Commit

Permalink
Eslint configuration changes for 6+, amend no-unused-vars to be more
Browse files Browse the repository at this point in the history
strict and specifically check args, allowing unused pattern.
  • Loading branch information
dannon committed Oct 16, 2023
1 parent 4328be7 commit 2a7587e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,23 @@ module.exports = {
files: ["**/*.ts", "**/*.tsx"],
extends: [
...baseExtends,
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
// "plugin:@typescript-eslint/stylistic" // TODO: work towards this
],
rules: {
...baseRules,
"@typescript-eslint/no-throw-literal": "error",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-explicit-any": "warn", // TODO: re-enable this
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "_.+", varsIgnorePattern: "_.+" }],
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: { jsx: true },
ecmaVersion: 2020,
sourceType: "module",
extraFileExtensions: [".vue"],
project: "./tsconfig.json",
project: true,
},
plugins: [...basePlugins, "@typescript-eslint"],
},
Expand Down

0 comments on commit 2a7587e

Please sign in to comment.