Skip to content

Instantly share code, notes, and snippets.

@leohxj
Created February 10, 2018 09:27
Show Gist options
  • Save leohxj/1d0a85215a5bd266dbdd97b3a0d70511 to your computer and use it in GitHub Desktop.
Save leohxj/1d0a85215a5bd266dbdd97b3a0d70511 to your computer and use it in GitHub Desktop.
with airbnb, prettier
module.exports = {
parser: "babel-eslint",
extends: [
"airbnb-base",
"airbnb-base/rules/strict",
"airbnb/rules/react",
"prettier",
"prettier/react"
],
plugins: ["react", "prettier", "import"],
env: {
browser: true,
node: true
},
rules: {
"class-methods-use-this": "off",
"comma-dangle": "off",
"global-require": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"max-len": "off",
"no-underscore-dangle": "off",
"react/prefer-stateless-function": "off",
"no-param-reassign": "off",
"react/sort-comp": [
1,
{
order: [
"type-annotations",
"static-methods",
"lifecycle",
"everything-else",
"render"
]
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment