Skip to content

Instantly share code, notes, and snippets.

@qmmr
Created June 24, 2016 16:15
Show Gist options
  • Save qmmr/7290ea33d820bfaf3ccc90e7b0289453 to your computer and use it in GitHub Desktop.
Save qmmr/7290ea33d820bfaf3ccc90e7b0289453 to your computer and use it in GitHub Desktop.
{
"extends": ["airbnb", "plugin:react/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"qunit": true,
"mocha": true
},
"plugins": [
"react",
"jsx-a11y",
],
"globals": {
"SL": true,
"$": true
},
"rules": {
"array-bracket-spacing": [2, "always"],
"camelcase": 0,
"comma-dangle": [2, "only-multiline"],
"consistent-return": 0,
"func-names": 0,
"indent": [2, 4, { "SwitchCase": 1 }],
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"max-len": [2, 140],
"no-loop-func": 0,
"no-param-reassign": 0,
"no-undef": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-unused-vars": [2, { "vars": "all", "args": "after-used" }],
"no-var": 0,
"one-var": [2, { "uninitialized": "always", "initialized": "never" }],
"one-var-declaration-per-line": [2, "initializations"],
"padded-blocks": 0,
"quotes": 0,
"space-before-function-paren": [2, { "anonymous": "never", "named": "never" }],
"vars-on-top": 0,
"wrap-iife": [2, "inside"],
// "quote-props": 0,
// "quotes": [2, "single", "avoid-escape"],
// rules that cause a lot of errors
// test specific
// ES2015 rules
"arrow-body-style": [2, "as-needed"],
"object-shorthand": 0,
"prefer-arrow-callback": 0,
"prefer-const": 0,
"prefer-rest-params": 0,
"prefer-template": 0,
"template-curly-spacing": [2, "always"],
// React
"react/jsx-closing-bracket-location": [1, { "selfClosing": "after-props" }],
"react/jsx-curly-spacing": [2, "always"],
"react/jsx-indent": [1, 4],
"react/jsx-indent-props": [1, 4],
"react/no-deprecated": 0,
"react/no-multi-comp": 0,
"react/prefer-es6-class": 0,
"react/prefer-stateless-function": 0,
"react/react-in-jsx-scope": 0,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment