Skip to content

Commit

Permalink
More cleanup of linters, use eslint recommended (#2455)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jan 21, 2023
1 parent 446d4f5 commit ee47e2d
Show file tree
Hide file tree
Showing 12 changed files with 150 additions and 5,368 deletions.
26 changes: 3 additions & 23 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,23 @@
// eslint-disable-next-line no-undef
module.exports = {
root: true,
env: {
browser: false,
es2020: true,
},
extends: [
"airbnb-typescript/base",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
project: "./tsconfig.json",
},
rules: {
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-misused-promises": 0, // This one really needs to go
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"class-methods-use-this": 0,
"default-case": 0,
"import/no-cycle": 0,
"import/prefer-default-export": 0,
"no-console": 0,
"no-continue": 0,
"no-param-reassign": 0,
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
"no-void": 0,
"prefer-destructuring": 0,
"vars-on-top": 0,
strict: 0,
},
};
Loading

0 comments on commit ee47e2d

Please sign in to comment.