Skip to content

Instantly share code, notes, and snippets.

@elc49
Last active April 16, 2018 10:40
Show Gist options
  • Save elc49/63073f40bab7e10f08600e5832af2b3a to your computer and use it in GitHub Desktop.
Save elc49/63073f40bab7e10f08600e5832af2b3a to your computer and use it in GitHub Desktop.
ESLint common rules for my development
{
"extends": ["prettier", "airbnb", "prettier/react"],
"plugins": ["prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"rules": {
"semi": ["error", "always"],
"no-tabs": "off",
"quotes": [0, "double"],
"no-underscore-dangle": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
},
"env": {
"browser": true,
"node": true,
"es6": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment