mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 22:08:33 +00:00
104 lines
2.4 KiB
JSON
104 lines
2.4 KiB
JSON
{
|
|
"root": true,
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"project": "./tsconfig.json"
|
|
},
|
|
"env": {
|
|
"es6": true
|
|
},
|
|
"ignorePatterns": [
|
|
"node_modules",
|
|
"build",
|
|
"coverage",
|
|
"dist",
|
|
"nc"
|
|
],
|
|
"plugins": [
|
|
"import",
|
|
"eslint-comments",
|
|
"functional"
|
|
],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:eslint-comments/recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:import/typescript",
|
|
"plugin:prettier/recommended"
|
|
],
|
|
"globals": {
|
|
"BigInt": true,
|
|
"console": true,
|
|
"WebAssembly": true
|
|
},
|
|
"rules": {
|
|
"require-await": "error",
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"eslint-comments/disable-enable-pair": [
|
|
"error",
|
|
{
|
|
"allowWholeFile": true
|
|
}
|
|
],
|
|
"eslint-comments/no-unused-disable": "error",
|
|
"sort-imports": [
|
|
"error",
|
|
{
|
|
"ignoreDeclarationSort": true,
|
|
"ignoreCase": true
|
|
}
|
|
],
|
|
"@typescript-eslint/no-this-alias": "off",
|
|
|
|
// todo: enable
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
"no-useless-catch": "off",
|
|
"no-empty": "off",
|
|
"@typescript-eslint/no-empty-function": "off",
|
|
"import/order": "off"
|
|
|
|
|
|
// "@typescript-eslint/member-ordering": [
|
|
// "warn" ,
|
|
// {
|
|
// "default": {
|
|
// "memberTypes": [ "static-field",
|
|
// "public-field",
|
|
// "instance-field",
|
|
// "protected-field",
|
|
// "private-field",
|
|
// "abstract-field",
|
|
//
|
|
// "public-static-field",
|
|
// "protected-static-field",
|
|
// "private-static-field",
|
|
// "public-instance-field",
|
|
// "public-decorated-field",
|
|
// "public-abstract-field",
|
|
// "protected-instance-field",
|
|
// "protected-decorated-field",
|
|
// "protected-abstract-field",
|
|
// "private-instance-field",
|
|
// "private-decorated-field",
|
|
// "private-abstract-field",
|
|
//
|
|
//
|
|
//
|
|
// "constructor",
|
|
//
|
|
// "public-static-method",
|
|
// "protected-static-method",
|
|
// "private-static-method",
|
|
// "public-method",
|
|
// "protected-method",
|
|
// "private-method"
|
|
// ]
|
|
// }
|
|
// }
|
|
// ]
|
|
}
|
|
}
|