feat(infisical-pg: linted after import order fix

This commit is contained in:
Akhil Mohan
2024-01-27 12:38:22 +05:30
parent 76e5d61da5
commit 498a90c484
20 changed files with 49 additions and 39 deletions
+14 -4
View File
@@ -14,7 +14,7 @@ module.exports = {
},
rules: {
"consistent-return": "off", // my style
'import/order': 'off', // for simple-import-order
"import/order": "off", // for simple-import-order
"import/prefer-default-export": "off", // why
"import/first": "error",
"import/newline-after-import": "error",
@@ -24,12 +24,22 @@ module.exports = {
"warn",
{
groups: [
["^node:", "^[a-z]", "@fastify"],
// Side effect imports.
["^\\u0000"],
// Node.js builtins prefixed with `node:`.
["^node:"],
// Packages.
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
["^@?\\w"],
["^@app"],
["@lib"],
["@server"],
["^~(/.*|$)"],
["^\\.\\.(?!/?$)", "^\\.\\./?$", "^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"]
// Absolute imports and other imports such as Vue-style `@/foo`.
// Anything not matched in another group.
["^"],
// Relative imports.
// Anything that starts with a dot.
["^\\."]
]
}
]