Last active
December 11, 2017 13:06
-
-
Save MeFoDy/14b0c95938964b112ad3b30cea8f43bb to your computer and use it in GitHub Desktop.
ESLint strict config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"parserOptions": { | |
"ecmaVersion": 2017, | |
"sourceType": "script", | |
"ecmaFeatures": { | |
"impliedStrict": true | |
} | |
}, | |
"env": { | |
"node": true, | |
"mocha": true, | |
"mongo": true | |
}, | |
"rules": { | |
"array-bracket-spacing": ["warn", "never"], | |
"array-callback-return": "error", | |
"arrow-body-style": ["warn", "as-needed"], | |
"arrow-spacing": "warn", | |
"block-scoped-var": "error", | |
"block-spacing": "warn", | |
"class-methods-use-this": "warn", | |
"comma-dangle": ["warn", "always-multiline"], | |
"comma-spacing": ["warn", { "before": false, "after": true }], | |
"constructor-super": "warn", | |
"curly": ["warn", "multi-line"], | |
"eqeqeq": "warn", | |
"for-direction": "warn", | |
"getter-return": "warn", | |
"global-require": "warn", | |
"handle-callback-err": "warn", | |
"key-spacing": ["warn", { "beforeColon": false, "afterColon": true }], | |
"multiline-ternary": ["warn", "always-multiline"], | |
"no-alert": "warn", | |
"no-await-in-loop": "warn", | |
"no-caller": "error", | |
"no-case-declarations": "error", | |
"no-class-assign": "error", | |
"no-cond-assign": "error", | |
"no-console": "warn", | |
"no-const-assign": "error", | |
"no-constant-condition": "warn", | |
"no-debugger": "warn", | |
"no-dupe-args": "error", | |
"no-dupe-class-members": "error", | |
"no-dupe-keys": "error", | |
"no-duplicate-case": "error", | |
"no-duplicate-imports": "warn", | |
"no-else-return": "warn", | |
"no-empty-function": "warn", | |
"no-empty-pattern": "warn", | |
"no-empty": "warn", | |
"no-eval": "error", | |
"no-extra-bind": "warn", | |
"no-extra-boolean-cast": "warn", | |
"no-extra-semi": "error", | |
"no-fallthrough": "warn", | |
"no-floating-decimal": "error", | |
"no-func-assign": "error", | |
"no-implicit-globals": "warn", | |
"no-implied-eval": "error", | |
"no-inner-declarations": "warn", | |
"no-invalid-regexp": "error", | |
"no-lone-blocks": "warn", | |
"no-lonely-if": "warn", | |
"no-loop-func": "warn", | |
"no-multi-assign": "warn", | |
"no-multi-spaces": "warn", | |
"no-nested-ternary": "warn", | |
"no-obj-calls": "warn", | |
"no-octal-escape": "error", | |
"no-octal": "error", | |
"no-param-reassign": ["warn", { "props": false }], | |
"no-path-concat": "warn", | |
"no-redeclare": "error", | |
"no-return-assign": "warn", | |
"no-return-await": "warn", | |
"no-self-assign": "error", | |
"no-self-compare": "warn", | |
"no-sync": "warn", | |
"no-template-curly-in-string": "warn", | |
"no-this-before-super": "warn", | |
"no-trailing-spaces": "warn", | |
"no-undef-init": "warn", | |
"no-undef": "error", | |
"no-undefined": "error", | |
"no-unexpected-multiline": "warn", | |
"no-unneeded-ternary": "warn", | |
"no-unreachable": "error", | |
"no-unsafe-negation": "warn", | |
"no-unused-expressions": "warn", | |
"no-unused-vars": "warn", | |
"no-useless-call": "warn", | |
"no-useless-computed-key": "warn", | |
"no-useless-constructor": "warn", | |
"no-useless-escape": "warn", | |
"no-useless-rename": "warn", | |
"no-useless-return": "warn", | |
"no-var": "warn", | |
"no-with": "error", | |
"object-property-newline": "warn", | |
"prefer-arrow-callback": "warn", | |
"prefer-const": "warn", | |
"prefer-rest-params": "warn", | |
"prefer-spread": "warn", | |
"prefer-template": "warn", | |
"quotes": ["warn", "single", { "allowTemplateLiterals": true }], | |
"require-await": "warn", | |
"require-yield": "error", | |
"rest-spread-spacing": ["warn", "never"], | |
"semi-spacing": ["error", { "before": false, "after": true }], | |
"semi": ["warn", "always"], | |
"space-before-blocks": "warn", | |
"space-before-function-paren": ["warn", { "anonymous": "always", "named": "never", "asyncArrow": "always" }], | |
"template-curly-spacing": ["warn", "never"], | |
"template-tag-spacing": ["warn", "never"], | |
"use-isnan": "error", | |
"vars-on-top": "warn" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment