Files
Eric Passmore 015e73f8bf ESLint Error on Optional-Chaining (#42)
* Added es-x linter to detect and error on optional chaining rules

* Regenerate yarn.lock

Co-authored-by: Johan Nordberg <its@johan-nordberg.com>
2022-10-31 12:20:29 +01:00

35 lines
1.1 KiB
Plaintext

{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "es-x"],
"ignorePatterns": ["lib/*", "node_modules/**"],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:es-x/no-new-in-es2020"
],
"rules": {
"prettier/prettier": "warn",
"no-console": "warn",
"sort-imports": [
"warn",
{
"ignoreCase": true,
"ignoreDeclarationSort": true
}
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-this-alias": "off",
"no-inner-declarations": "off",
"es-x/no-optional-chaining": "ERROR",
"es-x/no-class-fields": "OFF",
"es-x/no-export-ns-from": "OFF"
}
}