chore: tidy up linters
This commit is contained in:
parent
a3ef31f846
commit
4a7ced5550
30 changed files with 1101 additions and 3482 deletions
23
packages/eslint-config/.eslintrc.cjs
Normal file
23
packages/eslint-config/.eslintrc.cjs
Normal file
|
@ -0,0 +1,23 @@
|
|||
/** @type {import("eslint").Linter.Config} */
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true,
|
||||
},
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:prettier/recommended",
|
||||
"turbo",
|
||||
],
|
||||
parser: "@typescript-eslint/parser",
|
||||
plugins: ["@typescript-eslint", "import", "simple-import-sort"],
|
||||
rules: {
|
||||
// import related
|
||||
"simple-import-sort/imports": "error",
|
||||
"simple-import-sort/exports": "error",
|
||||
"import/first": "error",
|
||||
"import/newline-after-import": "error",
|
||||
"import/no-duplicates": "error",
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue