mirror of
https://github.com/wharfkit/data-type-template.git
synced 2026-07-21 18:03:34 +00:00
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"
|
|
}
|
|
}
|