Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@eric-khoury
Last active September 3, 2018 08:33
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 eric-khoury/dca25aa204544b518360f6496bb474b4 to your computer and use it in GitHub Desktop.
Save eric-khoury/dca25aa204544b518360f6496bb474b4 to your computer and use it in GitHub Desktop.
.eslintrc.json
{
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"node": true,
"es6": true
},
"globals": {
"document": true,
"window": true,
"localStorage": true,
"XMLHttpRequest": true,
"Blob": true,
"fetch": true,
"FileReader": true,
"atob": true
},
"parser": "babel-eslint",
"rules": {
"strict": [2, "never"],
"eqeqeq": 2,
"array-bracket-spacing": 2,
"func-names": 2,
"no-bitwise": 2,
"radix": 2,
"comma-style": [2, "last"],
"keyword-spacing": 2,
"no-trailing-spaces": 1,
"no-nested-ternary": 2,
"no-mixed-spaces-and-tabs": 2,
"semi-spacing": 2,
"space-before-blocks": 2,
"space-infix-ops": 2,
"no-console": 0,
"no-undef": 2,
"no-undefined": 0,
"no-unused-vars": [1, {
"args": "none"
}],
"semi": [2, "always"],
"no-extra-semi": 2,
"no-cond-assign": 2,
"no-control-regex": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty": 1,
"no-ex-assign": 2,
"no-func-assign": 2,
"no-inner-declarations": 2,
"no-irregular-whitespace": 2,
"no-negated-in-lhs": 2,
"no-obj-calls": 2,
"no-sparse-arrays": 2,
"no-unexpected-multiline": 2,
"no-unreachable": 1,
"use-isnan": 2,
"valid-jsdoc": [1, {
"requireParamDescription": false,
"requireReturnDescription": false
}],
"valid-typeof": 1,
"block-scoped-var": 1,
"curly": 2,
"default-case": 1,
"no-floating-decimal": 2,
"no-lone-blocks": 1,
"no-loop-func": 2,
"no-multi-spaces": 2,
"no-octal": 2,
"no-param-reassign": [2, {
"props": false
}],
"no-redeclare": 2,
"no-sequences": 2,
"no-with": 2,
"no-shadow-restricted-names": 1,
"new-cap": 1,
"new-parens": 1,
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": 2,
"constructor-super": 2,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-this-before-super": 2,
"no-var": 1,
"object-shorthand": 1,
"prefer-arrow-callback": 0,
"no-empty-pattern": 2,
"no-fallthrough": 2,
"no-invalid-this": 0,
"generator-star-spacing": 1,
/*
The babel/generator-star-spacing rule is deprecated. Please use the built in generator-star-spacing rule instead.
The babel/object-shorthand rule is deprecated. Please use the built in object-shorthand rule instead.
The babel/arrow-parens rule is deprecated. Please use the built in arrow-parens rule instead.
*/
"babel/new-cap": 1,
"babel/no-await-in-loop": 1,
"babel/no-invalid-this": 2,
"react/display-name": 0,
"react/forbid-prop-types": 2,
"react/jsx-boolean-value": 2,
"react/jsx-closing-bracket-location": 0,
"react/jsx-curly-spacing": 2,
"react/jsx-handler-names": 0,
"react/jsx-key": 2,
"react/jsx-max-props-per-line": 0,
"react/jsx-no-bind": [2, {
"allowArrowFunctions": true
}],
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-literals": 0,
"react/jsx-no-undef": 2,
"react/jsx-pascal-case": 0,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-danger": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-direct-mutation-state": 2,
"react/no-multi-comp": 0,
"react/no-set-state": 0,
"react/no-unknown-property": 2,
"react/prefer-es6-class": 2,
"react/prop-types": 0,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react/sort-comp": 2,
"react/sort-prop-types": 2,
"react/wrap-multilines": 0,
"import/export": 2,
"import/imports-first": 2,
"import/order": 1,
"import/default": 1,
"import/no-unresolved": 1,
"import/named": 1,
"import/namespace": [2, {
"allowComputed": false
}],
/* new set */
"accessor-pairs": 1,
"array-callback-return": 1,
"babel/object-curly-spacing": 0,
"block-spacing": 0,
"brace-style": 0,
"callback-return": 1,
"camelcase": 1,
"class-methods-use-this": 0,
"comma-spacing": 1,
"complexity": 1,
"computed-property-spacing": 1,
"consistent-return": 0,
"consistent-this": 1,
"dot-location": 0,
"dot-notation": 1,
"eol-last": 0,
"func-call-spacing": 1,
"func-name-matching": 1,
"func-style": 0,
"global-require": 1,
"guard-for-in": 1,
"handle-callback-err": 1,
"id-blacklist": 1,
"id-length": 0,
"id-match": 1,
"import/extensions": 1,
"import/max-dependencies": 0,
"import/newline-after-import": 0,
"import/no-absolute-path": 1,
"import/no-amd": 1,
"import/no-commonjs": 1,
"import/no-deprecated": 1,
"import/no-duplicates": 1,
"import/no-dynamic-require": 1,
"import/no-extraneous-dependencies": 1,
"import/no-internal-modules": 0,
"import/no-mutable-exports": 1,
"import/no-named-as-default": 1,
"import/no-named-as-default-member": 1,
"import/no-namespace": 0,
"import/no-nodejs-modules": 0,
"import/no-restricted-paths": 1,
"import/prefer-default-export": 1,
"init-declarations": 0,
"jsx-quotes": 0,
"key-spacing": 1,
"line-comment-position": 0,
"linebreak-style": 0,
"lines-around-comment": 0,
"lines-around-directive": 1,
"max-depth": 1,
"max-len": 0,
"max-lines": 0,
"max-nested-callbacks": 1,
"max-params": 1,
"max-statements": 0,
"max-statements-per-line": 1,
"multiline-ternary": 0,
"newline-after-var": 0,
"newline-before-return": 0,
"newline-per-chained-call": 0,
"no-alert": 1,
"no-array-constructor": 1,
"no-caller": 1,
"no-case-declarations": 0,
"no-catch-shadow": 1,
"no-class-assign": 1,
"no-confusing-arrow": [1, {
"allowParens": true
}],
"no-constant-condition": 1,
"no-continue": 1,
"no-debugger": 1,
"no-delete-var": 1,
"no-div-regex": 1,
"no-duplicate-imports": 1,
"no-else-return": 0,
"no-empty-character-class": 1,
"no-empty-function": 0,
"no-eq-null": 1,
"no-eval": 1,
"no-extend-native": 1,
"no-extra-bind": 1,
"no-extra-boolean-cast": 1,
"no-extra-label": 1,
"no-extra-parens": 0,
"no-global-assign": 1,
"no-implicit-coercion": 0,
"no-implicit-globals": 1,
"no-implied-eval": 1,
"no-inline-comments": 0,
"no-invalid-regexp": 1,
"no-iterator": 1,
"no-label-var": 1,
"no-labels": 1,
"no-lonely-if": 1,
"no-magic-numbers": 0,
"no-mixed-operators": 0,
"no-mixed-requires": 1,
"no-multi-str": 1,
"no-multiple-empty-lines": 0,
"no-native-reassign": 1,
"no-negated-condition": 0,
"no-new": 1,
"no-new-func": 1,
"no-new-object": 1,
"no-new-require": 1,
"no-new-symbol": 1,
"no-new-wrappers": 1,
"no-octal-escape": 1,
"no-path-concat": 1,
"no-plusplus": [1, {
"allowForLoopAfterthoughts": true
}],
"no-process-env": 0,
"no-process-exit": 1,
"no-proto": 1,
"no-prototype-builtins": 1,
"no-regex-spaces": 1,
"no-restricted-globals": 1,
"no-restricted-imports": 1,
"no-restricted-modules": 1,
"no-restricted-properties": 1,
"no-restricted-syntax": 1,
"no-return-assign": 0,
"no-return-await": 1,
"no-script-url": 1,
"no-self-assign": 1,
"no-self-compare": 1,
"no-shadow": 0,
"no-spaced-func": 1,
"no-sync": 1,
"no-tabs": 1,
"no-template-curly-in-string": 1,
"no-ternary": 0,
"no-throw-literal": 1,
"no-undef-init": 1,
"no-underscore-dangle": 0,
"no-unmodified-loop-condition": 1,
"no-unneeded-ternary": 1,
"no-unsafe-finally": 1,
"no-unsafe-negation": 1,
"no-unused-expressions": 1,
"no-unused-labels": 1,
"no-use-before-define": 1,
"no-useless-call": 1,
"no-useless-computed-key": 1,
"no-useless-concat": 1,
"no-useless-constructor": 1,
"no-useless-escape": 1,
"no-useless-rename": 1,
"no-useless-return": 1,
"no-void": 1,
"no-warning-comments": 0,
"no-whitespace-before-property": 1,
"object-curly-newline": 0,
"object-curly-spacing": 0,
"object-property-newline": 0,
"one-var": 0,
"one-var-declaration-per-line": 1,
"operator-assignment": 0,
"padded-blocks": 0,
"prefer-const": [1, {
"destructuring": "all",
"ignoreReadBeforeAssign": true
}],
"prefer-numeric-literals": 1,
"prefer-reflect": 0,
"prefer-rest-params": 1,
"prefer-spread": 1,
"prefer-template": 0,
"quote-props": 0,
"quotes": 0,
"react/forbid-component-props": 0,
"react/jsx-equals-spacing": 1,
"react/jsx-filename-extension": 0,
"react/jsx-first-prop-new-line": 1,
"react/jsx-no-comment-textnodes": 1,
"react/jsx-no-target-blank": 1,
"react/jsx-tag-spacing": 0,
"react/jsx-wrap-multilines": 0,
"react/no-children-prop": 1,
"react/no-danger-with-children": 1,
"react/no-deprecated": 1,
"react/no-find-dom-node": 1,
"react/no-is-mounted": 1,
"react/no-render-return-value": 1,
"react/no-string-refs": 1,
"react/no-unescaped-entities": 1,
"react/no-unused-prop-types": 1,
"react/prefer-stateless-function": 0,
"react/require-optimization": 0,
"react/require-render-return": 1,
"react/style-prop-object": 1,
"require-jsdoc": 0,
"require-yield": 1,
"rest-spread-spacing": 1,
"sort-imports": 0,
"sort-keys": 0,
"sort-vars": 1,
"space-before-function-paren": 0,
"space-in-parens": 0,
"space-unary-ops": 1,
"spaced-comment": 0,
"symbol-description": 1,
"template-curly-spacing": 1,
"unicode-bom": 1,
"vars-on-top": 1,
"wrap-iife": 1,
"wrap-regex": 1,
"yield-star-spacing": 1,
"yoda": 1,
"capitalized-comments": 0,
"no-await-in-loop": 1,
"react/no-array-index-key": 1,
"react/require-default-props": 0,
"require-await": 2,
/*"react/jsx-indent": [1, 2],*/
"react/jsx-indent": [1, 2],
"react/jsx-indent-props": [1, 2],
"react/jsx-space-before-closing": 1,
"indent": [2, 2, {
"SwitchCase": 1
}]
},
"settings": {
/*"import/extensions": { "js": "never", "json": "always" },*/
"import/resolver": {
"webpack": {
"config": "webpack.production.js"
},
"node": {
"paths": ["src"]
}
},
"import/ignore": ["node_modules", "css"],
"import/cache": {
"lifetime": 5
}
},
"plugins": [
"babel",
"react",
"import"
],
"extends": [
"prettier"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment