37 lines
848 B
JavaScript
37 lines
848 B
JavaScript
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default [
|
|
...tseslint.configs.recommended,
|
|
{
|
|
plugins: {
|
|
"simple-import-sort": simpleImportSort,
|
|
},
|
|
rules: {
|
|
"simple-import-sort/imports": "error",
|
|
"simple-import-sort/exports": "error",
|
|
},
|
|
},
|
|
{
|
|
files: ["**/*.ts"],
|
|
rules: {
|
|
"@typescript-eslint/ban-ts-comment": [
|
|
"error",
|
|
{
|
|
"ts-expect-error": "allow-with-description",
|
|
minimumDescriptionLength: 10,
|
|
},
|
|
],
|
|
"@typescript-eslint/ban-types": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
];
|