-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.mjs
33 lines (32 loc) · 1017 Bytes
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { defineConfig } from "eslint-define-config";
import typescriptEslintPlugin from "@typescript-eslint/eslint-plugin";
import typescriptEslintParser from "@typescript-eslint/parser";
import prettierPlugin from "eslint-plugin-prettier";
export default defineConfig([
{
files: ["**/*.js", "**/*.ts", "**/*.tsx"],
languageOptions: {
parser: typescriptEslintParser,
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
},
plugins: {
"@typescript-eslint": typescriptEslintPlugin,
prettier: prettierPlugin,
},
ignores: ["mochawesome-report/assets/app.js"],
rules: {
"no-console": ["warn", { allow: ["warn"] }],
"prefer-const": "error",
semi: ["error", "always"],
curly: ["error", "all"],
eqeqeq: ["error", "always"],
"no-multi-spaces": ["error"],
"no-duplicate-imports": ["error"],
"prettier/prettier": "error",
"@typescript-eslint/no-unused-vars": ["warn"],
},
},
]);