Skip to content

Commit

Permalink
docs(eslint-plugin): replaced the Out-of-date TS error codes in eslin…
Browse files Browse the repository at this point in the history
…t-recommended.ts with the supported-codes (#7590)

* replaced the TS error 2360 with 2322

* changed the TS error codes
  • Loading branch information
girishsontakke committed Sep 21, 2023
1 parent d467e14 commit dec6cbe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/eslint-plugin/src/configs/eslint-recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ export = {
'no-dupe-args': 'off', // ts(2300)
'no-dupe-class-members': 'off', // ts(2393) & ts(2300)
'no-dupe-keys': 'off', // ts(1117)
'no-func-assign': 'off', // ts(2539)
'no-import-assign': 'off', // ts(2539) & ts(2540)
'no-func-assign': 'off', // ts(2630)
'no-import-assign': 'off', // ts(2632) & ts(2540)
'no-new-symbol': 'off', // ts(7009)
'no-obj-calls': 'off', // ts(2349)
'no-redeclare': 'off', // ts(2451)
'no-setter-return': 'off', // ts(2408)
'no-this-before-super': 'off', // ts(2376)
'no-undef': 'off', // ts(2304)
'no-this-before-super': 'off', // ts(2376) & ts(17009)
'no-undef': 'off', // ts(2304) & ts(2552)
'no-unreachable': 'off', // ts(7027)
'no-unsafe-negation': 'off', // ts(2365) & ts(2360) & ts(2358)
'no-unsafe-negation': 'off', // ts(2365) & ts(2322) & ts(2358)
'no-var': 'error', // ts transpiles let/const to var, so no need for vars any more
'prefer-const': 'error', // ts provides better types with const
'prefer-rest-params': 'error', // ts provides better types with rest args over arguments
Expand Down

0 comments on commit dec6cbe

Please sign in to comment.