mirror of
https://github.com/wharfkit/antelope.git
synced 2026-07-21 17:43:35 +00:00
015e73f8bf
* Added es-x linter to detect and error on optional chaining rules * Regenerate yarn.lock Co-authored-by: Johan Nordberg <its@johan-nordberg.com>
35 lines
1.1 KiB
Plaintext
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"
|
|
}
|
|
}
|