mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 02:29:35 +00:00
45 lines
1.1 KiB
JavaScript
45 lines
1.1 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
es2021: true
|
|
},
|
|
extends: ["airbnb-base", "airbnb-typescript/base", "prettier"],
|
|
plugins: ["prettier", "simple-import-sort", "import"],
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
project: "./tsconfig.json",
|
|
tsconfigRootDir: __dirname
|
|
},
|
|
rules: {
|
|
"consistent-return": "off", // my style
|
|
'import/order': 'off', // for simple-import-order
|
|
"import/prefer-default-export": "off", // why
|
|
"import/first": "error",
|
|
"import/newline-after-import": "error",
|
|
"import/no-duplicates": "error",
|
|
"simple-import-sort/exports": "error",
|
|
"simple-import-sort/imports": [
|
|
"warn",
|
|
{
|
|
groups: [
|
|
["^node:", "^[a-z]", "@fastify"],
|
|
["^@app"],
|
|
["@lib"],
|
|
["@server"],
|
|
["^~(/.*|$)"],
|
|
["^\\.\\.(?!/?$)", "^\\.\\./?$", "^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"]
|
|
]
|
|
}
|
|
]
|
|
},
|
|
settings: {
|
|
"import/resolver": {
|
|
typescript: {
|
|
project: ["./tsconfig.json"]
|
|
}
|
|
}
|
|
}
|
|
};
|