2
0
mirror of https://github.com/webgefrickel/dotfiles synced 2024-11-19 03:25:33 +00:00
steffen-dotfiles/eslintrc

184 lines
5.1 KiB
Plaintext
Raw Normal View History

{
2016-02-18 16:06:17 +00:00
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
2015-07-08 14:25:10 +00:00
"es6": true,
"node": true
},
"rules": {
"no-console": 0,
2015-08-08 11:32:24 +00:00
"accessor-pairs": 0,
2016-02-18 16:06:17 +00:00
"array-callback-return": 2,
"block-scoped-var": 2,
2015-08-08 11:32:24 +00:00
"complexity": [ 0, 11 ],
"consistent-return": 2,
"curly": [ 2, "all" ],
"default-case": 2,
"dot-location": [ 2, "property" ],
"dot-notation": [ 2, { "allowKeywords": true } ],
"eqeqeq": 2,
"guard-for-in": 0,
"no-alert": 2,
"no-caller": 2,
"no-div-regex": 2,
2015-08-08 11:32:24 +00:00
"no-else-return": 2,
2016-02-18 16:06:17 +00:00
"no-empty-function": 2,
2015-08-08 11:32:24 +00:00
"no-eq-null": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
2016-02-18 16:06:17 +00:00
"no-extra-label": 2,
"no-floating-decimal": 2,
2015-08-08 11:32:24 +00:00
"no-implicit-coercion": 2,
2016-02-18 16:06:17 +00:00
"no-implicit-globals": 2,
2015-08-08 11:32:24 +00:00
"no-implied-eval": 2,
"no-invalid-this": 0,
"no-iterator": 2,
"no-labels": 2,
"no-lone-blocks": 1,
"no-loop-func": 2,
2016-02-18 16:06:17 +00:00
"no-magic-numbers": 0,
2015-08-08 11:32:24 +00:00
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-native-reassign": 1,
"no-new": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-octal-escape": 1,
2016-02-18 16:06:17 +00:00
"no-param-reassign": 2,
2015-08-08 11:32:24 +00:00
"no-process-env": 1,
"no-proto": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-self-compare": 2,
2015-08-08 11:32:24 +00:00
"no-sequences": 1,
"no-throw-literal": 1,
2016-02-18 16:06:17 +00:00
"no-unmodified-loop-condition": 1,
2015-08-08 11:32:24 +00:00
"no-unused-expressions": 2,
"no-useless-call": 2,
2016-02-18 16:06:17 +00:00
"no-useless-concat": 2,
"no-void": 2,
2015-08-08 11:32:24 +00:00
"no-warning-comments": 0,
"no-with": 2,
"radix": 0,
"vars-on-top": 2,
2015-08-08 11:32:24 +00:00
"wrap-iife": 2,
"yoda": [ 2, "never" ],
"strict": 0,
"init-declarations": 0,
"no-catch-shadow": 0,
"no-label-var": 2,
"no-shadow": 2,
"no-shadow-restricted-names": 2,
"no-undef-init": 2,
"no-undefined": 2,
"no-use-before-define": 2,
"callback-return": 0,
2016-02-18 16:06:17 +00:00
"global-require": 0,
2015-08-08 11:32:24 +00:00
"handle-callback-err": 0,
"no-mixed-requires": [ 1, true ],
"no-new-require": 1,
"no-path-concat": 0,
"no-process-exit": 0,
2016-02-18 16:06:17 +00:00
"no-restricted-imports": 0,
2015-08-08 11:32:24 +00:00
"no-restricted-modules": 0,
"no-sync": 0,
2015-07-08 14:25:10 +00:00
"array-bracket-spacing": [ 2, "always" ],
2016-02-18 16:06:17 +00:00
"block-spacing": [ 2, "always" ],
2015-01-11 20:42:59 +00:00
"brace-style": [ 2, "1tbs", { "allowSingleLine": false } ],
2015-08-08 11:32:24 +00:00
"camelcase": [ 2, { "properties": "always" } ],
"comma-spacing": [ 2, { "before": false, "after": true } ],
2015-01-11 20:42:59 +00:00
"comma-style": [ 2, "last" ],
2015-08-08 11:32:24 +00:00
"computed-property-spacing": [ 2, "never" ],
2015-01-11 20:42:59 +00:00
"consistent-this": [ 1, "that" ],
2015-08-08 11:32:24 +00:00
"eol-last": 2,
"func-names": 1,
2015-01-11 20:42:59 +00:00
"func-style": [ 2, "expression" ],
2016-02-18 16:06:17 +00:00
"id-blacklist": 0,
2015-08-08 11:32:24 +00:00
"id-length": 0,
2016-02-18 16:06:17 +00:00
"id-match": 0,
2015-08-08 11:32:24 +00:00
"indent": [ 2, 2, { "SwitchCase": 1 } ],
2016-02-18 16:06:17 +00:00
"jsx-quotes": 0,
2015-08-08 11:32:24 +00:00
"key-spacing": [ 2, { "beforeColon": false, "afterColon": true } ],
2016-02-18 16:06:17 +00:00
"keyword-spacing": 2,
2015-07-08 14:25:10 +00:00
"linebreak-style": [ 2, "unix" ],
2016-02-18 16:06:17 +00:00
"lines-around-comment": [ 1, { "beforeBlockComment": true, "beforeLineComment": false, "allowBlockStart": true } ],
"max-depth": [ 1, 4 ],
"max-len": [ 1, 120, 2 ],
2015-01-11 20:42:59 +00:00
"max-nested-callbacks": [ 1, 4 ],
2016-02-18 16:06:17 +00:00
"max-params": [ 1, 4 ],
"max-statements": [ 1, 30 ],
2015-08-08 11:32:24 +00:00
"new-cap": 2,
"new-parens": 2,
2015-07-08 14:25:10 +00:00
"newline-after-var": [ 1, "always" ],
"newline-per-chained-call": [ 0, { "ignoreChainWithDepth": 3 } ],
2015-08-08 11:32:24 +00:00
"no-array-constructor": 2,
2016-02-18 16:06:17 +00:00
"no-bitwise": 2,
2015-08-08 11:32:24 +00:00
"no-continue": 1,
"no-inline-comments": 0,
2015-01-11 20:42:59 +00:00
"no-lonely-if": 1,
"no-multiple-empty-lines": [ 1, { "max": 2 } ],
2016-02-18 16:06:17 +00:00
"no-negated-condition": 0,
2015-01-11 20:42:59 +00:00
"no-nested-ternary": 2,
2015-08-08 11:32:24 +00:00
"no-new-object": 2,
2016-02-18 16:06:17 +00:00
"no-plusplus": 2,
"no-restricted-syntax": 0,
2015-08-08 11:32:24 +00:00
"no-spaced-func": 2,
"no-ternary": 0,
"no-trailing-spaces": 2,
"no-underscore-dangle": 1,
"no-unneeded-ternary": 2,
2016-02-18 16:06:17 +00:00
"no-whitespace-before-property": 2,
2015-07-08 14:25:10 +00:00
"object-curly-spacing": [ 2, "always" ],
"one-var": [ 2, "never" ],
2016-02-18 16:06:17 +00:00
"on-var-declaration-per-line": 0,
2015-01-11 20:42:59 +00:00
"operator-assignment": [ 2, "always" ],
2015-07-08 14:25:10 +00:00
"operator-linebreak": [ 2, "after" ],
2015-08-08 11:32:24 +00:00
"padded-blocks": 0,
"quote-props": [ 2, "as-needed" ],
2015-01-11 20:42:59 +00:00
"quotes": [ 2, "single", "avoid-escape" ],
2016-02-18 16:06:17 +00:00
"require-jsdoc": 0,
2015-08-08 11:32:24 +00:00
"semi": [ 2, "always" ],
2016-02-18 16:06:17 +00:00
"semi-spacing": [ 2, { "before": false, "after": true } ],
"sort-imports": 0,
2015-08-08 11:32:24 +00:00
"sort-vars": 0,
2015-01-11 20:42:59 +00:00
"space-before-blocks": [ 2, "always" ],
2015-07-08 14:25:10 +00:00
"space-before-function-paren": [ 2, "always" ],
2015-01-11 20:42:59 +00:00
"space-in-parens": [ 2, "never" ],
2015-08-08 11:32:24 +00:00
"space-infix-ops": 2,
"space-unary-ops": [ 2, { "words": true, "nonwords": false } ],
2015-07-08 14:25:10 +00:00
"spaced-comment": [ 2, "always" ],
"wrap-regex": 2,
2016-02-18 16:06:17 +00:00
"arrow-body-style": [ 2, "as-needed" ],
2015-08-08 11:32:24 +00:00
"arrow-parens": 1,
"arrow-spacing": [ 1, { "before": true, "after": true } ],
"generator-star-spacing": [ 1, { "before": true, "after": true} ],
2016-02-18 16:06:17 +00:00
"no-confusing-arrow": 1,
"no-useless-constructor": 1,
"no-var": 2,
2015-07-08 14:25:10 +00:00
"object-shorthand": [ 1, "always" ],
2016-02-18 16:06:17 +00:00
"prefer-arrow-callback": 1,
2015-08-08 11:32:24 +00:00
"prefer-const": 1,
"prefer-reflect": 0,
2016-02-18 16:06:17 +00:00
"prefer-rest-params": 1,
"prefer-spread": 1,
"prefer-template": 1,
2015-08-08 11:32:24 +00:00
"require-yield": 1,
2016-02-18 16:06:17 +00:00
"template-curly-spacing": [ 2, "never" ],
"yield-star-spacing": [ 2, {"before": true, "after": false} ]
}
}