UNPKG

eslint-config-yellow

Version:

An Opinionated ESLint Configuration prioritizing Readability, Brevity, and Clarity

208 lines 6.02 kB
{ "rules": { "for-direction": 2, "getter-return": 2, "no-async-promise-executor": 2, "no-compare-neg-zero": 2, "no-cond-assign": [2, "always"], "no-console": 1, "no-constant-condition": [2, { "checkLoops": false }], "no-control-regex": 2, "no-debugger": 2, "no-dupe-args": 2, "no-dupe-keys": 2, "no-duplicate-case": 2, "no-empty": [2, { "allowEmptyCatch": true }], "no-empty-character-class": 2, "no-extra-boolean-cast": 2, "no-extra-semi": 2, "no-func-assign": 2, "no-inner-declarations": 2, "no-invalid-regexp": 2, "no-irregular-whitespace": [2, { "skipStrings": false }], "no-misleading-character-class": 2, "no-obj-calls": 2, "no-prototype-builtins": 1, "no-sparse-arrays": 2, "no-unexpected-multiline": 2, "no-unreachable": 2, "no-unsafe-finally": 2, "no-unsafe-negation": 2, "require-atomic-updates": 2, "use-isnan": 2, "valid-typeof": 2, "accessor-pairs": 1, "array-callback-return": 1, "curly": 2, "dot-location": [2, "property"], "dot-notation": 2, "eqeqeq": 2, "no-caller": 1, "no-else-return": [2, {"allowElseIf": false }], "no-empty-function": 1, "no-empty-pattern": 1, "no-eq-null": 2, "no-eval": 1, "no-extend-native": 1, "no-extra-bind": 1, "no-extra-label": 1, "no-fallthrough": 1, "no-floating-decimal": 2, "no-global-assign": 2, "no-implicit-coercion": 2, "no-implied-eval": 2, "no-multi-spaces": 2, "no-new": 1, "no-new-func": 2, "no-new-wrappers": 1, "no-octal": 1, "no-octal-escape": 2, "no-param-reassign": [2, { "props": true }], "no-proto": 2, "no-redeclare": [2, { "builtinGlobals": true }], "no-return-assign": 2, "no-return-await": 2, "no-script-url": 1, "no-self-assign": 2, "no-self-compare": 2, "no-sequences": 1, "no-throw-literal": 2, "no-unused-expressions": 2, "no-unused-labels": 1, "no-useless-call": 1, "no-useless-catch": 2, "no-useless-concat": 2, "no-useless-escape": 2, "no-useless-return": 2, "no-void": 1, "no-with": 1, "prefer-promise-reject-errors": 2, "radix": [2, "as-needed"], "require-await": 1, "wrap-iife": 2, "yoda": [2, "never", { "exceptRange": true }], "no-label-var": 2, "no-shadow": 2, "no-shadow-restricted-names": 2, "no-undef": 1, "no-undef-init": 2, "no-unused-vars": 1, "no-use-before-define": [1, { "functions": false }], "global-require": 2, "no-path-concat": 2, "array-bracket-newline": [2, { "multiline": true }], "array-bracket-spacing": 2, "array-element-newline": [2, "consistent"], "block-spacing": 2, "brace-style": [2, "1tbs", { "allowSingleLine": true }], "camelcase": 2, "capitalized-comments": 2, "comma-dangle": [2, "always-multiline"], "comma-spacing": 2, "comma-style": 2, "computed-property-spacing": 2, "eol-last": 2, "func-call-spacing": 2, "function-paren-newline": 2, "implicit-arrow-linebreak": 2, "indent": [2, 2], "jsx-quotes": 2, "key-spacing": 2, "keyword-spacing": 2, "line-comment-position": 2, "linebreak-style": 2, "lines-around-comment": [ 2, { "beforeLineComment": true, "allowBlockStart": true, "allowObjectStart": true, "allowArrayStart": true, "allowClassStart": true } ], "lines-between-class-members": 2, "max-len": [2, { "code": 79, "tabWidth": 2, "ignoreUrls": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreRegExpLiterals": true }], "max-lines": [2, { "max": 400, "skipBlankLines": true, "skipComments": true }], "max-lines-per-function": [2, { "max": 150, "skipBlankLines": true, "skipComments": true, "IIFEs": true }], "max-statements-per-line": [2, { "max": 1 }], "multiline-comment-style": [2, "separate-lines"], "multiline-ternary": [2, "always-multiline"], "new-cap": 2, "new-parens": 2, "no-array-constructor": 2, "no-lonely-if": 2, "no-mixed-spaces-and-tabs": 2, "no-multiple-empty-lines": [1, { "max": 2, "maxEOF": 1, "maxBOF": 0 }], "no-negated-condition": 1, "no-new-object": 2, "no-tabs": 2, "no-trailing-spaces": [2, { "skipBlankLines": false }], "no-unneeded-ternary": [2, { "defaultAssignment": false }], "no-whitespace-before-property": 2, "object-curly-newline": [2, { "multiline": true }], "object-curly-spacing": [2, "always"], "one-var": [2, "never"], "operator-assignment": 2, "operator-linebreak": [2, "after"], "padded-blocks": [2, "never"], "quote-props": [2, "as-needed"], "quotes": [2, "single"], "semi": [2, "always"], "semi-spacing": 2, "semi-style": 2, "space-before-blocks": 2, "space-before-function-paren": [2, { "anonymous": "always", "named": "never", "asyncArrow": "always" }], "space-in-parens": 2, "space-infix-ops": 2, "space-unary-ops": 2, "spaced-comment": 2, "switch-colon-spacing": 2, "template-tag-spacing": 2, "arrow-body-style": [2, "as-needed"], "arrow-parens": [2, "as-needed"], "arrow-spacing": 2, "constructor-super": 1, "generator-star-spacing": [2, "after"], "no-class-assign": 2, "no-const-assign": 1, "no-dupe-class-members": 1, "no-duplicate-imports": 2, "no-new-symbol": 2, "no-this-before-super": 1, "no-useless-computed-key": 2, "no-useless-constructor": 2, "no-useless-rename": 2, "no-var": 2, "object-shorthand": 2, "prefer-arrow-callback": 2, "prefer-destructuring": 2, "prefer-numeric-literals": 2, "prefer-rest-params": 2, "prefer-spread": 2, "require-yield": 1, "rest-spread-spacing": 2, "template-curly-spacing": 2, "yield-star-spacing": [2, "after"] } }