Skip to content

Instantly share code, notes, and snippets.

@Xiryl
Created July 11, 2020 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xiryl/d24b5e2a311d4a87a97841b37cb7b52f to your computer and use it in GitHub Desktop.
Save Xiryl/d24b5e2a311d4a87a97841b37cb7b52f to your computer and use it in GitHub Desktop.
eslint-guide-4
{
...,
rules: {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"indent": [2, 4],
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
"react/prefer-stateless-function": [1, { "ignorePureComponents": true }],
"import/no-extraneous-dependencies": [1, {"peerDependencies": true}],
"import/no-extraneous-dependencies": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"max-len": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off",
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment