Skip to content

Commit

Permalink
Disable new rules from eslint-config-airbnb upgrade
Browse files Browse the repository at this point in the history
The upgrade from version 16 to 19 introduced some new rules. Disabling
them for now.

Command used:

    npx eslint --ext .js,.jsx . --format json \
        | jq -r '.[] | .messages[] | .ruleId' \
        | sort | uniq
  • Loading branch information
victorlin committed Nov 28, 2022
1 parent 698e32c commit 55df89f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,22 @@ rules:
react/no-danger: off # gatsby uses this a lot
no-use-before-define: ["error", { "functions": false }]
no-return-await: off
# <<< These were enabled when upgrading eslint-config-airbnb 16→19. Disabling for now.
function-call-argument-newline: off
function-paren-newline: off
implicit-arrow-linebreak: off
import/no-cycle: off
import/order: off
lines-between-class-members: off
max-classes-per-file: off
no-else-return: off
no-multiple-empty-lines: off
object-curly-newline: off
operator-linebreak: off
prefer-destructuring: off
prefer-regex-literals: off
semi-style: off
# >>>
parserOptions:
sourceType: module
requireConfigFile: false
Expand Down

0 comments on commit 55df89f

Please sign in to comment.