You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
748 B
32 lines
748 B
import eslint from "@eslint/js";
|
|
import tsEslint from "typescript-eslint";
|
|
import prettierEslintRecommended from "eslint-plugin-prettier/recommended";
|
|
|
|
export default tsEslint.config(
|
|
eslint.configs.recommended,
|
|
...tsEslint.configs.strictTypeChecked,
|
|
...tsEslint.configs.stylisticTypeChecked,
|
|
prettierEslintRecommended,
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
projectService: true,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
rules: {
|
|
"@typescript-eslint/restrict-template-expressions": [
|
|
"error",
|
|
{ allowNumber: true, allowNever: true },
|
|
],
|
|
},
|
|
},
|
|
{
|
|
files: ["**/*.spec.*"],
|
|
rules: {
|
|
"@typescript-eslint/require-await": "off",
|
|
},
|
|
},
|
|
);
|
|
|