UNPKG

@quitsmx/eslint-config

Version:

Customized ESLint config for TypeScript + React or Preact + Prettierx

45 lines (44 loc) 1.88 kB
{ "rules": { "dot-notation": "off", "no-implied-eval": "off", "no-return-await": "off", "no-throw-literal": "off", "require-await": "off", "@typescript-eslint/await-thenable": "error", "@typescript-eslint/dot-notation": "warn", "@typescript-eslint/no-base-to-string": [ "warn", { "ignoredTypeNames": ["Error", "RegExp", "TypeError", "URL"] } ], "@typescript-eslint/no-confusing-void-expression": [ "warn", { "ignoreArrowShorthand": true } ], "@typescript-eslint/no-floating-promises": "error", "@typescript-eslint/no-for-in-array": "error", "@typescript-eslint/no-implied-eval": "error", "@typescript-eslint/no-misused-promises": "error", "@typescript-eslint/no-throw-literal": "warn", "@typescript-eslint/no-unnecessary-boolean-literal-compare": "warn", "@typescript-eslint/no-unnecessary-qualifier": "warn", "@typescript-eslint/no-unnecessary-type-arguments": "warn", "@typescript-eslint/no-unnecessary-type-assertion": "error", "@typescript-eslint/no-unsafe-call": "error", "@typescript-eslint/no-unsafe-return": "error", "@typescript-eslint/non-nullable-type-assertion-style": "warn", "@typescript-eslint/prefer-includes": "warn", "@typescript-eslint/prefer-reduce-type-parameter": "warn", "@typescript-eslint/prefer-regexp-exec": "warn", "@typescript-eslint/promise-function-async": "warn", "@typescript-eslint/require-array-sort-compare": "error", "@typescript-eslint/require-await": "warn", "@typescript-eslint/restrict-plus-operands": "warn", "@typescript-eslint/restrict-template-expressions": [ "off", { "allowNumber": true, "allowBoolean": true, "allowAny": true, "allowNullish": true } ], "@typescript-eslint/return-await": "warn", "@typescript-eslint/switch-exhaustiveness-check": "warn" } }