Browse Source

feat(nocodb): enable import/order and introduce order group

pull/5267/head
Wing-Kam Wong 2 years ago
parent
commit
771b057bfa
  1. 30
      packages/nocodb/.eslintrc.json

30
packages/nocodb/.eslintrc.json

@ -7,18 +7,8 @@
"env": { "env": {
"es6": true "es6": true
}, },
"ignorePatterns": [ "ignorePatterns": ["node_modules", "build", "coverage", "dist", "nc"],
"node_modules", "plugins": ["import", "eslint-comments", "functional"],
"build",
"coverage",
"dist",
"nc"
],
"plugins": [
"import",
"eslint-comments",
"functional"
],
"extends": [ "extends": [
"eslint:recommended", "eslint:recommended",
"plugin:eslint-comments/recommended", "plugin:eslint-comments/recommended",
@ -47,6 +37,21 @@
"ignoreCase": true "ignoreCase": true
} }
], ],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object",
"type"
]
}
],
"@typescript-eslint/no-this-alias": "off", "@typescript-eslint/no-this-alias": "off",
// todo: enable // todo: enable
@ -57,7 +62,6 @@
"no-useless-catch": "off", "no-useless-catch": "off",
"no-empty": "off", "no-empty": "off",
"@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-empty-function": "off",
"import/order": "off",
"@typescript-eslint/consistent-type-imports": "warn" "@typescript-eslint/consistent-type-imports": "warn"
} }
} }

Loading…
Cancel
Save