ini𝖔 𝕞𝐚𝔢 b𝖁𝖘𝖋𝖗𝖆𝕊t commit
This commit is contained in:
commit
37729aa76e
26 changed files with 5634 additions and 0 deletions
32
eslint.config.mjs
Normal file
32
eslint.config.mjs
Normal file
|
@ -0,0 +1,32 @@
|
|||
import typescriptEslint from "typescript-eslint";
|
||||
|
||||
export default [
|
||||
{
|
||||
ignores: [
|
||||
"**/dist/*",
|
||||
"**/result/*",
|
||||
"**/node_modules/*"
|
||||
]
|
||||
},
|
||||
...typescriptEslint.configs.strict,
|
||||
{
|
||||
rules: {
|
||||
"quotes": ["error", "double"],
|
||||
"semi": ["error", "always"],
|
||||
"comma-dangle": ["error", "never"],
|
||||
|
||||
// TODO: find a rule to make it so that relative imports are needed
|
||||
// this is because those pass type checking, and fails at runtime
|
||||
// not very typescript
|
||||
|
||||
"@typescript-eslint/explicit-function-return-type": "error",
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
varsIgnorePattern: "^_",
|
||||
argsIgnorePattern: "^_"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue