Skip to content

Instantly share code, notes, and snippets.

@dghez
Created February 20, 2023 15:28
Show Gist options
  • Save dghez/e6fea6521fb577ce8ee19aa1448d5a35 to your computer and use it in GitHub Desktop.
Save dghez/e6fea6521fb577ce8ee19aa1448d5a35 to your computer and use it in GitHub Desktop.
Next eslint
{
"env": {
"browser": true,
"node": true,
},
"parserOptions": {
"ecmaVersion": 2020
},
"extends": [
"airbnb",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"camelcase": 0,
"max-len": ["error", { "code": 30000000 }],
"indent": ["error", 2, { "SwitchCase": 1 }],
"quote-props": 0,
"semi": ["error", "never"],
"object-curly-newline": 0,
"arrow-body-style": 0,
"consistent-return": 0,
"prefer-arrow-callback": 0,
"react/prop-types": 0,
"global-require": 0,
"no-nested-ternary": 0,
"no-unused-expressions": 0,
"no-unused-vars": 1,
"no-underscore-dangle": 0,
"no-shadow": 0,
"no-param-reassign": 0,
"no-restricted-syntax": 0,
"no-plusplus": 0,
"default-case": 0,
"import/prefer-default-export": 0,
"import/no-unresolved": 0,
"import/extensions": 0,
"import/order": 0,
"import/no-named-as-default": 0,
"react/jsx-filename-extension": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-first-prop-new-line": "error",
"react/jsx-max-props-per-line": ["error", { "maximum": 1 }],
"react/jsx-props-no-spreading": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": 0,
"react/no-array-index-key": 0,
"react/no-danger": 0,
"react/jsx-no-target-blank": 0,
"jsx-a11y/alt-text": 0,
"jsx-a11y/media-has-caption": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/no-static-element-interactions": 0,
"no-multiple-empty-lines": [2, {"max": 2}],
"brace-style": 0,
"spaced-comment":0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment