Skip to content

Commit

Permalink
add eslint rules and plugins for "Apply Linting Only to Files Updated…
Browse files Browse the repository at this point in the history
… in git #1270" (#1397)

* make requested changes

* restore original scripts

* add eslint rules and plugins

* fix duplicate imports and tsdoc tags

* fix conflict with src/screens/Requests/Requests.tsx
  • Loading branch information
Shubh152 authored Jan 12, 2024
1 parent 2bfee78 commit 9c19e55
Show file tree
Hide file tree
Showing 17 changed files with 394 additions and 174 deletions.
18 changes: 16 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@
},

// Specify the ESLint plugins tobe used
"plugins": ["react", "@typescript-eslint", "jest"],
"plugins": [
"react",
"@typescript-eslint",
"jest",
"import",
"eslint-plugin-tsdoc"
],
"rules": {
"react/destructuring-assignment": ["off"],
"@typescript-eslint/no-explicit-any": ["off"],
// "@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/explicit-module-boundary-types": ["off"],
"react/no-multi-comp": [
"error",
Expand All @@ -44,6 +50,14 @@
"extensions": [".tsx"]
}
],
"import/no-duplicates": "error",
"tsdoc/syntax": "error",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/no-duplicate-enum-values": "error",
"@typescript-eslint/array-type": "error",
Expand Down
Loading

0 comments on commit 9c19e55

Please sign in to comment.