Skip to content
Snippets Groups Projects

ESLint-Konfiguration

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by aroidl
    .eslintrc.json 9.87 KiB
    {
        "parserOptions": {
            "ecmaVersion": 2015,
            "sourceType": "script",
            "ecmaFeatures": {}
        },
        "rules": {
            "accessor-pairs": 0,
            "array-bracket-newline": 0,
            "array-bracket-spacing": 0,
            "array-callback-return": 0,
            "array-element-newline": 0,
            "arrow-body-style": 0,
            "arrow-parens": 0,
            "arrow-spacing": ["error"],
            "block-scoped-var": 0,
            "block-spacing": 0,
            "brace-style": ["error", "1tbs"],
            "callback-return": 0,
            "camelcase": ["error", {
                "properties": "always"
            }],
            "capitalized-comments": ["error", "always"],
            "class-methods-use-this": 0,
            "comma-dangle": 0,
            "comma-spacing": ["error", {
                "before": false,
                "after": true
            }],
            "comma-style": 0,
            "complexity": 0,
            "computed-property-spacing": 0,
            "consistent-return": 0,
            "consistent-this": 0,
            "constructor-super": 0,
            "curly": 0,
            "default-case": 0,
            "default-case-last": 0,
            "default-param-last": 0,
            "dot-location": 0,
            "dot-notation": 0,
            "eol-last": 0,
            "eqeqeq": ["error", "always", {
                "null": "ignore"
            }],
            "for-direction": 0,
            "func-call-spacing": ["error", "never"],
            "func-name-matching": 0,
            "func-style": 0,
            "function-call-argument-newline": 0,
            "function-paren-newline": 0,
            "generator-star-spacing": 0,
            "getter-return": 0,
            "global-require": 0,
            "grouped-accessor-pairs": 0,
            "guard-for-in": 0,
            "handle-callback-err": 0,
            "id-blacklist": 0,
            "id-denylist": 0,
            "id-length": 0,
            "id-match": 0,
            "implicit-arrow-linebreak": 0,
            "indent": ["error", 2],
            "indent-legacy": 0,
            "init-declarations": 0,
            "jsx-quotes": 0,
            "key-spacing": ["error", {
                "beforeColon": false 
            }],
            "keyword-spacing": ["error", {
                "before": true
            }],
            "line-comment-position": 0,
            "linebreak-style": 0,
            "lines-around-comment": ["error", { 
                "beforeBlockComment": true 
            }],
            "lines-around-directive": 0,
            "lines-between-class-members": 0,
            "max-classes-per-file": 0,
            "max-depth": 0,
            "max-len": 0,
            "max-lines": 0,
            "max-lines-per-function": 0,
            "max-nested-callbacks": 0,
            "max-params": ["error", 4],
            "max-statements": 0,
            "max-statements-per-line": 0,
            "multiline-comment-style": 0,
            "multiline-ternary": 0,
            "new-cap": 0,
            "new-parens": 0,
            "newline-after-var": 0,
            "newline-before-return": 0,
            "newline-per-chained-call": 0,
            "no-alert": 0,
            "no-array-constructor": 0,
            "no-async-promise-executor": 0,
            "no-await-in-loop": 0,
            "no-bitwise": 0,
            "no-buffer-constructor": 0,
            "no-caller": 0,
            "no-case-declarations": 0,
            "no-catch-shadow": 0,
            "no-class-assign": 0,
            "no-compare-neg-zero": 0,
            "no-cond-assign": 0,
            "no-confusing-arrow": 0,
            "no-console": 0,
            "no-const-assign": 0,
            "no-constant-condition": 0,
            "no-constructor-return": 0,
            "no-continue": 0,
            "no-control-regex": 0,
            "no-debugger": 0,
            "no-delete-var": 0,
            "no-div-regex": 0,
            "no-dupe-args": 0,
            "no-dupe-class-members": 0,
            "no-dupe-else-if": 0,
            "no-dupe-keys": 0,
            "no-duplicate-case": 0,
            "no-duplicate-imports": 0,
            "no-else-return": 0,
            "no-empty": ["error"],
            "no-empty-character-class": 0,
            "no-empty-function": ["error"],
            "no-empty-pattern": 0,
            "no-eq-null": 0,
            "no-eval": 0,
            "no-ex-assign": 0,
            "no-extend-native": 0,
            "no-extra-bind": 0,
            "no-extra-boolean-cast": 0,
            "no-extra-label": 0,
            "no-extra-parens": 0,
            "no-extra-semi": ["error"],
            "no-fallthrough": 0,
            "no-floating-decimal": 0,
            "no-func-assign": 0,
            "no-global-assign": 0,
            "no-implicit-coercion": 0,
            "no-implicit-globals": 0,
            "no-implied-eval": 0,
            "no-import-assign": 0,
            "no-inline-comments": 0,
            "no-inner-declarations": 0,
            "no-invalid-regexp": 0,
            "no-invalid-this": 0,
            "no-irregular-whitespace": 0,
            "no-iterator": 0,
            "no-label-var": 0,
            "no-labels": 0,
            "no-lone-blocks": 0,
            "no-lonely-if": 0,
            "no-loop-func": 0,
            "no-loss-of-precision": 0,
            "no-magic-numbers": 0,
            "no-misleading-character-class": 0,
            "no-mixed-operators": 0,
            "no-mixed-requires": 0,
            "no-mixed-spaces-and-tabs": ["error"],
            "no-multi-assign": 0,
            "no-multi-spaces": ["error",{
                "ignoreEOLComments": true
            }],
            "no-multi-str": 0,
            "no-multiple-empty-lines": ["error"],
            "no-native-reassign": 0,
            "no-negated-condition": 0,
            "no-negated-in-lhs": 0,
            "no-nested-ternary": 0,
            "no-new": 0,
            "no-new-func": 0,
            "no-new-object": 0,
            "no-new-require": 0,
            "no-new-symbol": 0,
            "no-new-wrappers": 0,
            "no-nonoctal-decimal-escape": 0,
            "no-obj-calls": 0,
            "no-octal": 0,
            "no-octal-escape": 0,
            "no-param-reassign": 0,
            "no-path-concat": 0,
            "no-plusplus": 0,
            "no-process-env": 0,
            "no-process-exit": 0,
            "no-promise-executor-return": 0,
            "no-proto": 0,
            "no-prototype-builtins": 0,
            "no-redeclare": 0,
            "no-regex-spaces": 0,
            "no-restricted-exports": 0,
            "no-restricted-globals": 0,
            "no-restricted-imports": 0,
            "no-restricted-modules": 0,
            "no-restricted-properties": 0,
            "no-restricted-syntax": 0,
            "no-return-assign": 0,
            "no-return-await": 0,
            "no-script-url": 0,
            "no-self-assign": 0,
            "no-self-compare": 0,
            "no-sequences": 0,
            "no-setter-return": 0,
            "no-shadow": 0,
            "no-shadow-restricted-names": ["error"],
            "no-spaced-func": 0,
            "no-sparse-arrays": 0,
            "no-sync": 0,
            "no-tabs": 0,
            "no-template-curly-in-string": 0,
            "no-ternary": 0,
            "no-this-before-super": 0,
            "no-throw-literal": 0,
            "no-trailing-spaces": ["error", {
                "skipBlankLines": true 
            }],
            "no-undef": 0,
            "no-undef-init": 0,
            "no-undefined": 0,
            "no-underscore-dangle": 0,
            "no-unexpected-multiline": 0,
            "no-unmodified-loop-condition": 0,
            "no-unneeded-ternary": 0,
            "no-unreachable": 0,
            "no-unreachable-loop": 0,
            "no-unsafe-finally": 0,
            "no-unsafe-negation": 0,
            "no-unsafe-optional-chaining": 0,
            "no-unused-expressions": 0,
            "no-unused-labels": 0,
            "no-unused-vars": ["error", {
                "vars": "all", 
                "args": "none",
                "argsIgnorePattern": "^_",
                "ignoreRestSiblings": false 
            }],
            "no-use-before-define": 0,
            "no-useless-backreference": 0,
            "no-useless-call": 0,
            "no-useless-catch": 0,
            "no-useless-computed-key": 0,
            "no-useless-concat": 0,
            "no-useless-constructor": 0,
            "no-useless-escape": 0,
            "no-useless-rename": 0,
            "no-useless-return": 0,
            "no-var": 0,
            "no-void": 0,
            "no-warning-comments": 0,
            "no-whitespace-before-property": 0,
            "no-with": 0,
            "nonblock-statement-body-position": 0,
            "object-curly-newline": 0,
            "object-curly-spacing": 0,
            "object-property-newline": 0,
            "object-shorthand": 0,
            "one-var": ["error", "never"],
            "one-var-declaration-per-line": ["error", "always"],
            "operator-assignment": 0,
            "operator-linebreak": 0,
            "padded-blocks": ["error", "never"],
            "padding-line-between-statements": ["error", { 
                "blankLine": "always", 
                "prev": "*", 
                "next": "block" 
            }],
            "prefer-arrow-callback": 0,
            "prefer-const": 0,
            "prefer-destructuring": 0,
            "prefer-exponentiation-operator": 0,
            "prefer-named-capture-group": 0,
            "prefer-numeric-literals": 0,
            "prefer-object-spread": 0,
            "prefer-promise-reject-errors": 0,
            "prefer-reflect": 0,
            "prefer-regex-literals": 0,
            "prefer-rest-params": 0,
            "prefer-spread": 0,
            "prefer-template": 0,
            "quote-props": 0,
            "quotes": ["error","single"],
            "radix": 0,
            "require-atomic-updates": 0,
            "require-await": 0,
            "require-jsdoc": 0,
            "require-unicode-regexp": 0,
            "require-yield": 0,
            "rest-spread-spacing": 0,
            "semi": ["error", "always"],
            "semi-spacing": ["error"],
            "semi-style": 0,
            "sort-imports": 0,
            "sort-keys": 0,
            "sort-vars": 0,
            "space-before-blocks": ["error", "always"],
            "space-before-function-paren": ["error", "always"],
            "space-in-parens": 0,
            "space-infix-ops": ["error"],
            "space-unary-ops": ["error"],
            "spaced-comment": 0,
            "strict": 0,
            "switch-colon-spacing": ["error", {
                "after": true,
                "before": false
            }],
            "symbol-description": 0,
            "template-curly-spacing": 0,
            "template-tag-spacing": ["error", "always"],
            "unicode-bom": 0,
            "use-isnan": 0,
            "valid-jsdoc": 0,
            "valid-typeof": 0,
            "vars-on-top": 0,
            "wrap-iife": 0,
            "wrap-regex": 0,
            "yield-star-spacing": 0,
            "yoda": 0
        },
        "env": {
            "node": true,
            "browser": true,
            "jquery": true
        }
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment