Enable some more eslint rules from iD rules

This commit is contained in:
Tom Hughes 2019-04-06 15:48:51 +01:00
parent 07aa5ade67
commit 87127d41e9
8 changed files with 48 additions and 18 deletions

View file

@ -17,14 +17,44 @@
"updateLinks": "readonly"
},
"rules": {
"dot-notation": "error",
"eqeqeq": ["error", "smart"],
"keyword-spacing": "error",
"no-caller": "error",
"no-div-regex": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-floating-decimal": "error",
"no-implied-eval": "error",
"no-iterator": "error",
"no-labels": "error",
"no-label-var": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-str": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-process-env": "error",
"no-proto": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "off",
"no-unused-vars": "error",
"no-use-before-define": ["error", {"functions": false}],
"semi": ["error", "always"]
"no-void": "error",
"no-warning-comments": "warn",
"no-with": "error",
"radix": ["error", "always"],
"semi": ["error", "always"],
"semi-spacing": "error",
"space-unary-ops": "error",
"wrap-regex": "off"
}
}