Disable eslint rules which were failing

These should be re-enabled one-by-one while Tridactyl is made compliant
This commit is contained in:
Oliver Blanthorn 2020-06-17 14:58:32 +01:00
parent 37dc2d371a
commit 300f9987fc
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -35,9 +35,12 @@ module.exports = {
"sonarjs"
],
"rules": {
"sonarjs/cognitive-complexity": "off", //"error",
"sonarjs/no-duplicate-string": "off", //"error",
"sonarjs/no-unused-collection": "off", //"error",
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": [
"error",
"off", //"error",
{
"default": "array-simple"
}
@ -45,7 +48,7 @@ module.exports = {
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/ban-types": [
"error",
"off", //"error",
{
"types": {
"Object": {
@ -72,14 +75,14 @@ module.exports = {
"@typescript-eslint/class-name-casing": "off",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "error",
"@typescript-eslint/dot-notation": "off", //"error",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/explicit-module-boundary-types": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off", //"warn",
"@typescript-eslint/indent": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/member-delimiter-style": [
@ -95,48 +98,48 @@ module.exports = {
}
}
],
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/member-ordering": "off", //"error",
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-function": "off", //"error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-extra-non-null-assertion": "error",
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-extra-semi": "off", //"error",
"@typescript-eslint/no-floating-promises": "off", //"error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-implied-eval": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-inferrable-types": "off", //"error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-misused-promises": "off", //"error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-unsafe-call": "error",
"@typescript-eslint/no-unsafe-member-access": "error",
"@typescript-eslint/no-unsafe-return": "error",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-unnecessary-type-assertion": "off", //"error",
"@typescript-eslint/no-unsafe-assignment": "off", //"error",
"@typescript-eslint/no-unsafe-call": "off", //"error",
"@typescript-eslint/no-unsafe-member-access": "off", //"error",
"@typescript-eslint/no-unsafe-return": "off", //"error",
"@typescript-eslint/no-unused-expressions": "off", //"error",
"@typescript-eslint/no-unused-vars": "off", //"warn",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-as-const": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/prefer-regexp-exec": "error",
"@typescript-eslint/prefer-regexp-exec": "off", //"error",
"@typescript-eslint/quotes": [
"error",
"off", //"error",
"double",
{
"avoidEscape": true
}
],
"@typescript-eslint/require-await": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/restrict-template-expressions": "error",
"@typescript-eslint/require-await": "off", //"error",
"@typescript-eslint/restrict-plus-operands": "off", //"error",
"@typescript-eslint/restrict-template-expressions": "off", //"error",
"@typescript-eslint/semi": [
"off",
null
@ -150,15 +153,15 @@ module.exports = {
}
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "error",
"@typescript-eslint/unified-signatures": "error",
"arrow-body-style": "error",
"@typescript-eslint/unbound-method": "off", //"error",
"@typescript-eslint/unified-signatures": "off", //"error",
"arrow-body-style": "off", //"error",
"arrow-parens": [
"off",
"always"
],
"brace-style": [
"error",
"off", //"error",
"1tbs"
],
"camelcase": "off",
@ -171,7 +174,7 @@ module.exports = {
"off",
"always"
],
"guard-for-in": "error",
"guard-for-in": "off", //"error",
"id-blacklist": "off",
"id-match": "off",
"import/order": "off",
@ -195,7 +198,7 @@ module.exports = {
],
"no-empty-function": "off",
"no-eval": "off",
"no-extra-semi": "off",
"no-extra-semi": "off", //"off",
"no-fallthrough": "off",
"no-invalid-this": "off",
"no-multiple-empty-lines": "error",
@ -221,16 +224,16 @@ module.exports = {
],
"prefer-arrow/prefer-arrow-functions": "off",
"prefer-const": [
"error",
"off", //"error",
{
"destructuring": "all"
}
],
"quote-props": "off",
"radix": "error",
"radix": "off", //"error",
"require-await": "off",
"space-before-function-paren": [
"error",
"off", //"error",
{
"anonymous": "never",
"asyncArrow": "always",
@ -238,7 +241,7 @@ module.exports = {
}
],
"spaced-comment": [
"error",
"off", //"error",
"always",
{
"markers": [