Skip to content

Instantly share code, notes, and snippets.

@keepitsimple
Created May 18, 2020 09:33
Show Gist options
  • Save keepitsimple/e6f765ed5d73fa51cb1f30f4ade5ab43 to your computer and use it in GitHub Desktop.
Save keepitsimple/e6f765ed5d73fa51cb1f30f4ade5ab43 to your computer and use it in GitHub Desktop.
const path = require('path')
module.exports = {
extends: [
'react-app',
'standard',
'standard-react',
'plugin:import/errors',
'plugin:import/warnings'
],
rules: {
'import/no-unresolved': "off",
"import/order": [
"error", {
"groups": [
"internal",
"external",
"index",
"builtin",
"sibling",
"parent"
]
}
],
"react/jsx-first-prop-new-line": [
1,
"multiline"
],
"react/jsx-max-props-per-line": [
1,
{
"maximum": 1,
"when": "always"
}
],
"react/jsx-closing-bracket-location": [
1,
"tag-aligned"
],
"react/jsx-sort-props": [
1
],
"react/prop-types": "off",
"no-undef-init": "off",
"react/jsx-handler-names": "off",
"jsx-a11y/img-redundant-alt": "off"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment