-
Notifications
You must be signed in to change notification settings - Fork 4
/
eslint.config.js
33 lines (32 loc) · 1022 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
32
33
import eslintJs from "@eslint/js";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import typescriptParser from "@typescript-eslint/parser";
import eslintConfigPrettier from "eslint-config-prettier";
import globals from "globals";
import eslintTs from "typescript-eslint";
export default [
{
ignores: ["build/**", "coverage/**", "dist/**", "docs/**", "node_modules/**", "types/**", "www/**"]
},
{
files: ["**/*.ts"],
languageOptions: {
parser: typescriptParser,
parserOptions: {},
globals: globals.browser
},
plugins: {
"@typescript-eslint": typescriptEslint
},
rules: {
// Make this "error" when releasing.
"brace-style": [2, "stroustrup"],
"no-console": "warn",
"no-param-reassign": "off",
semi: [2, "always"]
}
},
eslintJs.configs.recommended,
...eslintTs.configs.recommended,
eslintConfigPrettier
];