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

Loading…
Cancel
Save