123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- {
- "env": { "browser": true, "es6": true },
- "extends": "eslint:recommended",
- "parserOptions": { "sourceType": "module" },
- "rules": {
- "accessor-pairs": "error",
- "array-bracket-spacing": "error",
- "array-callback-return": "error",
- "arrow-body-style": "error",
- "arrow-parens": ["error", "as-needed"],
- "arrow-spacing": "error",
- "block-spacing": "error",
- "callback-return": "error",
- "class-methods-use-this": "error",
- "comma-dangle": "error",
- "comma-spacing": "error",
- "comma-style": "error",
- "complexity": "error",
- "computed-property-spacing": "error",
- "consistent-return": "error",
- "consistent-this": "error",
- "curly": ["error", "multi-or-nest"],
- "default-case": "error",
- "dot-location": ["error", "property"],
- "dot-notation": "error",
- "eol-last": "error",
- "eqeqeq": "off",
- "func-call-spacing": ["error", "always"],
- "func-name-matching": "error",
- "func-style": ["error", "declaration", { "allowArrowFunctions": true }],
- "generator-star-spacing": ["error", "both"],
- "global-require": "error",
- "guard-for-in": "error",
- "handle-callback-err": "error",
- "id-blacklist": "error",
- "id-match": [
- "error",
- "^([A-Z]+(_[A-Z]+)*|[_A-Z]?[a-z\\d]+(_[a-z\\d]+)*\\$*)$",
- { "onlyDeclarations": true }
- ],
- "key-spacing": "error",
- "keyword-spacing": "error",
- "linebreak-style": ["error", "unix"],
- "lines-around-directive": "error",
- "max-depth": "error",
- "max-len": ["error", 80],
- "max-nested-callbacks": ["error", 3],
- "max-params": "error",
- "max-statements": "off",
- "max-statements-per-line": "error",
- "new-cap": "error",
- "new-parens": "error",
- "newline-per-chained-call": "error",
- "no-alert": "error",
- "no-array-constructor": "off",
- "no-await-in-loop": "error",
- "no-bitwise": "error",
- "no-caller": "error",
- "no-catch-shadow": "error",
- "no-compare-neg-zero": "error",
- "no-confusing-arrow": "error",
- "no-div-regex": "error",
- "no-duplicate-imports": "error",
- "no-empty-function": "error",
- "no-eq-null": "error",
- "no-eval": "error",
- "no-extend-native": "error",
- "no-extra-bind": "error",
- "no-floating-decimal": "error",
- "no-implicit-coercion": "error",
- "no-implicit-globals": "error",
- "no-implied-eval": "error",
- "no-invalid-this": "error",
- "no-iterator": "error",
- "no-labels": "error",
- "no-lone-blocks": "error",
- "no-lonely-if": "error",
- "no-loop-func": "error",
- "no-magic-numbers": ["error", { "ignore": [1] }],
- "no-mixed-operators": "error",
- "no-mixed-requires": "error",
- "no-multi-assign": "error",
- "no-multi-spaces": "error",
- "no-multiple-empty-lines": "error",
- "no-native-reassign": "error",
- "no-negated-in-lhs": "error",
- "no-nested-ternary": "error",
- "no-new-func": "error",
- "no-new-object": "error",
- "no-new-require": "error",
- "no-new-wrappers": "error",
- "no-octal-escape": "error",
- "no-param-reassign": "error",
- "no-path-concat": "error",
- "no-plusplus": "error",
- "no-process-env": "error",
- "no-process-exit": "error",
- "no-proto": "error",
- "no-restricted-globals": "error",
- "no-restricted-imports": "error",
- "no-restricted-modules": "error",
- "no-restricted-properties": "error",
- "no-restricted-syntax": "error",
- "no-return-assign": "error",
- "no-return-await": "error",
- "no-script-url": "error",
- "no-self-compare": "error",
- "no-sequences": "error",
- "no-shadow": "error",
- "no-shadow-restricted-names": "error",
- "no-sync": "error",
- "no-tabs": "error",
- "no-template-curly-in-string": "error",
- "no-throw-literal": "error",
- "no-trailing-spaces": "error",
- "no-undef-init": "error",
- "no-undefined": "error",
- "no-underscore-dangle": "error",
- "no-unmodified-loop-condition": "error",
- "no-unneeded-ternary": "error",
- "no-unused-expressions": "error",
- "no-use-before-define": "off",
- "no-useless-call": "error",
- "no-useless-computed-key": "error",
- "no-useless-concat": "error",
- "no-useless-constructor": "error",
- "no-useless-rename": "error",
- "no-useless-return": "error",
- "no-void": "error",
- "no-whitespace-before-property": "error",
- "no-with": "error",
- "object-curly-newline": "error",
- "object-curly-spacing": ["error", "always"],
- "object-property-newline": [
- "error",
- { "allowMultiplePropertiesPerLine": true }
- ],
- "object-shorthand": "error",
- "one-var": ["error", "never"],
- "one-var-declaration-per-line": "error",
- "operator-assignment": "error",
- "operator-linebreak": [
- "error",
- "before",
- { "overrides": { "=" : "after", "?": "after", ":": "after" } }
- ],
- "padded-blocks": ["error", "never"],
- "prefer-arrow-callback": "error",
- "prefer-numeric-literals": "error",
- "prefer-promise-reject-errors": "error",
- "prefer-rest-params": "error",
- "prefer-spread": "error",
- "quote-props": ["error", "as-needed"],
- "quotes": ["error", "double"],
- "radix": "error",
- "require-await": "error",
- "require-jsdoc": "off",
- "rest-spread-spacing": "error",
- "semi": "error",
- "semi-spacing": "error",
- "sort-imports": "error",
- "space-before-blocks": "error",
- "space-before-function-paren": "error",
- "space-in-parens": ["error", "never"],
- "space-infix-ops": "error",
- "space-unary-ops": "error",
- "spaced-comment": [
- "error",
- "always",
- { "block": { "balanced": true, "exceptions": ["-"] } }
- ],
- "strict": "error",
- "symbol-description": "error",
- "template-curly-spacing": "error",
- "unicode-bom": "error",
- "valid-jsdoc": "off",
- "wrap-iife": "error",
- "wrap-regex": "error",
- "yield-star-spacing": ["error", { "before": true, "after": false }],
- "yoda": "error"
- }
- }
|