Skip to content

Instantly share code, notes, and snippets.

@mondwan
Last active February 29, 2016 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mondwan/36784172a2dcf2f20cd0 to your computer and use it in GitHub Desktop.
Save mondwan/36784172a2dcf2f20cd0 to your computer and use it in GitHub Desktop.
My .eslintrc
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"amd": true
},
"settings": {
"ecmascript": 6,
"jsx": true
},
"plugins": [
"react"
],
"rules": {
"no-console": 0,
"no-control-regex": 2,
"no-debugger": 2,
"no-dupe-keys": 2,
"no-empty": 2,
"no-empty-character-class": 2,
"no-ex-assign": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": 0,
"no-extra-semi": 2,
"no-invalid-regexp": 2,
"no-negated-in-lhs": 2,
"no-obj-calls": 2,
"no-regex-spaces": 2,
"no-sparse-arrays": 2,
"use-isnan": 2,
"valid-jsdoc": 2,
"valid-typeof": 2,
"block-scoped-var": 2,
"complexity": 2,
"curly": 2,
"dot-notation": 2,
"eqeqeq": 2,
"guard-for-in": 2,
"no-alert": 2,
"no-caller": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-iterator": 2,
"no-loop-func": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-new": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-octal": 2,
"no-octal-escape": 2,
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 2,
"radix": 2,
"wrap-iife": [2, "outside"],
"strict": [2, "global"],
"no-catch-shadow": 2,
"no-delete-var": 2,
"no-label-var": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-unused-vars": 2,
"no-use-before-define": 2,
"handle-callback-err": 2,
"no-path-concat": 2,
"no-mixed-requires": 2,
"no-sync": 2,
"comma-dangle": [2, "always-multiline"],
"brace-style": 2,
"camelcase": [2, {properties: "never"}],
"consistent-this": [2, "self"],
"new-cap": 0,
"new-parens": 2,
"no-array-constructor": 2,
"no-new-object": 2,
"no-spaced-func": 2,
"semi": [2, "always"],
"semi-spacing": 2,
"quotes": [2, "single"],
"object-curly-spacing": [2, "never"],
"array-bracket-spacing": [2, "never"],
"computed-property-spacing": [2, "never"],
"space-infix-ops": 2,
"keyword-spacing": 2,
"space-unary-ops": 2,
"max-nested-callbacks": [2, 3],
"max-len": [2, 80, 4],
}
}
@mondwan
Copy link
Author

mondwan commented Feb 29, 2016

For latest update, please refer to this project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment