Skip to content

Instantly share code, notes, and snippets.

@msikma
Created November 29, 2015 14:02
Show Gist options
  • Save msikma/b332fd5f1b20df47a786 to your computer and use it in GitHub Desktop.
Save msikma/b332fd5f1b20df47a786 to your computer and use it in GitHub Desktop.
{
// Uses the Airbnb config as a base with a number of overrides.
// See <https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb>.
"extends": "eslint-config-airbnb",
"env": {
"browser": true,
"node": true
},
"rules": {
"block-scoped-var": 0,
"brace-style": [2, "stroustrup", {"allowSingleLine": false}],
"camelcase": [2, {"properties": "never"}],
"comma-dangle": 0,
"dot-notation": [2, {"allowPattern": "^[a-z]+(_[a-z]+)+$"}],
"eqeqeq": [2, "smart"],
"indent": [2, 2, {"SwitchCase": 1}],
"no-console": 0,
"object-curly-spacing": [2, "never"],
"padded-blocks": 0,
// React plugin
"react/jsx-quotes": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-multi-comp": 0,
"react/react-in-jsx-scope": 2,
// Babel plugin
"babel/block-scoped-var": 1,
// Import plugin
"import/export": 2,
"import/imports-first": [2, {"absolute-first": true}],
"import/named": 2,
"import/no-duplicates": 2,
"import/no-named-as-default": 2,
"import/no-unresolved": [2, {"commonjs": true, "amd": true}],
// Header plugin
"header/header": [2, "line", [
" Copyright (C) 2015, MIT License"
]]
},
"settings": {
"import/resolve": {
// Use the same extra import path as our NODE_PATH.
"paths": ["src/"]
}
},
"plugins": [
"react", "babel", "import", "header"
],
"globals": {
"__CLIENT__": true,
"__DEVELOPMENT__": true,
"__DEVTOOLS__": true,
"__DISABLE_SSR__": true,
"__SERVER__": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment