| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- {
- "env": {
- "es6": true,
- "node": true
- },
- "extends":[
- "eslint:recommended",
- "plugin:node/recommended"
- ],
- "parser": "babel-eslint",
- "parserOptions": {
- "sourceType": "module",
- "ecmaVersion": 2020
- },
- "rules": {
- "no-await-in-loop": ["error"],
- "no-shadow": ["error"],
- "no-redeclare": ["warn"],
- "arrow-spacing": ["warn"],
- "init-declarations": ["error", "always"],
- "no-setter-return": ["warn"],
- "no-duplicate-imports": [
- "warn"
- ],
- "no-const-assign": [
- "warn"
- ],
- "no-import-assign": [
- "error"
- ],
- "space-unary-ops": [
- "error",
- {
- "words": true,
- "nonwords": false
- }],
- "quote-props": [
- "error",
- "always"
- ],
- "no-unneeded-ternary": [
- "error"
- ],
- "rest-spread-spacing": ["error", "never"],
- "no-param-reassign": [
- "warn"
- ],
- "no-self-compare": [
- "error"
- ],
- "prefer-object-spread": [ "warn"],
- "indent": [
- "warn",
- "tab",
- { "SwitchCase": 1 }
- ],
- "quotes": [
- "error",
- "double"
- ],
- "semi": [
- "error",
- "always"
- ],
- "no-lone-blocks": [
- "error"
- ],
- "no-multi-str": [
- "error"
- ],
- "no-path-concat": [
- "error"
- ],
- "no-process-exit": [
- "error"
- ],
- "global-require": [
- "warn"
- ],
- "no-lonely-if": [
- "error"
- ],
- "no-spaced-func": [
- "warn"
- ],
- "no-confusing-arrow": [
- "error"
- ],
- "prefer-template": [
- "error"
- ],
- "no-constant-condition": [
- "error"
- ],
- "arrow-body-style": [
- "warn",
- "as-needed"
- ],
- "no-var": [
- "error"
- ],
- "no-nested-ternary": [
- "warn"
- ],
- "no-multiple-empty-lines": [
- "warn"
- ],
- "no-template-curly-in-string": [
- "error"
- ],
- "no-empty-function": [
- "error"
- ],
- "no-floating-decimal": [
- "error"
- ],
- "no-multi-spaces": [
- "warn"
- ],
- "guard-for-in": [
- "error"
- ],
- "yoda" : [
- "error"
- ],
- "array-callback-return": [
- "error"
- ],
- "no-dupe-else-if": [
- "error"
- ],
- "no-magic-numbers": [
- "warn"
- ],
- "vars-on-top": [
- "warn"
- ],
- "func-call-spacing": [
- "warn"
- ],
- "no-eval": ["error"]
- }
- }
|