mirror of
https://github.com/morluto/rea.git
synced 2026-10-12 02:19:24 +00:00
29 lines
958 B
JavaScript
29 lines
958 B
JavaScript
import eslint from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default tseslint.config(
|
|
{ ignores: ["dist/**", "node_modules/**"] },
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.strictTypeChecked,
|
|
{
|
|
files: ["**/*.ts"],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
projectService: true,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
"@typescript-eslint/no-confusing-void-expression": "error",
|
|
"@typescript-eslint/no-floating-promises": "error",
|
|
"@typescript-eslint/no-non-null-assertion": "error",
|
|
"@typescript-eslint/no-unnecessary-condition": "error",
|
|
"@typescript-eslint/no-unsafe-type-assertion": "error",
|
|
"@typescript-eslint/only-throw-error": "error",
|
|
"@typescript-eslint/require-await": "error",
|
|
"@typescript-eslint/switch-exhaustiveness-check": "error",
|
|
},
|
|
},
|
|
);
|