Skip to content

Instantly share code, notes, and snippets.

@jaigouk
Created August 29, 2016 16:30
Show Gist options
  • Select an option

  • Save jaigouk/2e64617a701c5b27c2e8dcbc63c7ff0d to your computer and use it in GitHub Desktop.

Select an option

Save jaigouk/2e64617a701c5b27c2e8dcbc63c7ff0d to your computer and use it in GitHub Desktop.
lint rc
{
parser: "babel-eslint",
env: {
es6: true,
browser: true
},
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true
}
},
plugins: [ "ava", "react" ],
settings: {
react: {
pragma: "React",
version: "15.0"
}
},
extends: ["eslint:recommended", "plugin:react/recommended", "standard"],
"rules": {
"no-console": [2, {allow: ["warn", "error"]}],
"comma-dangle" : [2, "always-multiline"],
"semi": [2, "never"],
"no-extra-semi": 2,
"jsx-quotes": [2, "prefer-single"],
"react/jsx-boolean-value": [2, "always"],
"react/jsx-closing-bracket-location": [2, {selfClosing: "after-props", nonEmpty: "after-props"}],
"react/jsx-curly-spacing": [2, "never", {"allowMultiline": false}],
"react/jsx-max-props-per-line": [2, {maximum: 3}],
"react/jsx-no-literals": 2,
"react/self-closing-comp": 2,
"react/sort-comp": 2,
"ava/use-t": 2,
"ava/use-test": 2
}
}
{
"rules": {
"color-no-invalid-hex": true,
"declaration-colon-space-after": "always",
"max-empty-lines": 2,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment