Notes/eslint.config.js

46 lines
1.2 KiB
JavaScript
Raw Normal View History

import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
// consider using rules below, once we have a full TS codebase and can be more strict
// tseslint.configs.strictTypeChecked,
// tseslint.configs.stylisticTypeChecked,
2025-03-03 22:18:29 +01:00
// tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname
}
}
},
{
rules: {
// add rule overrides here
"no-undef": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_"
}
],
"sort-imports": [ "error", { ignoreCase: false } ]
}
},
{
2025-03-03 22:18:29 +01:00
ignores: [
"build/*",
"dist/*",
"docs/*",
"demo/*",
2025-03-03 22:18:29 +01:00
"libraries/*",
"src/public/app-dist/*",
"src/public/app/doc_notes/*"
]
}
);