-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
31 lines (30 loc) · 928 Bytes
/
eslint.config.js
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
import globals from "globals";
import js from "@eslint/js";
import { configs as tsConfigs } from "@typescript-eslint/eslint-plugin";
import { parser } from "@typescript-eslint/parser";
export default [
{
files: ["**/*.{js,mjs,cjs,ts}"],
languageOptions: {
parser,
globals: globals.browser,
},
rules: {
"no-console": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"import/order": [
"error",
{
groups: [["builtin", "external"], "internal", ["parent", "sibling", "index"]],
"newlines-between": "always",
alphabetize: { order: "asc", caseInsensitive: true },
},
],
"@typescript-eslint/no-explicit-any": "off",
"class-methods-use-this": "off",
"max-len": ["error", { code: 100, ignoreComments: true }],
},
},
js.configs.recommended,
tsConfigs.recommended,
];