-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy patheslint.config.mjs
42 lines (41 loc) · 1.15 KB
/
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
34
35
36
37
38
39
40
41
42
"use strict";
import js from "@eslint/js";
import globals from "globals";
export default [
js.configs.recommended, // Recommended config applied to all files
{
languageOptions: {
sourceType: "commonjs",
ecmaVersion: 2015,
globals: {
...globals.node,
...globals.mocha,
...globals.mocha,
expect: true,
},
},
ignores: [
".editorconfig",
"artifacts/",
"coverage/",
"node_modules/",
"lcov-*",
"xunit*",
"eslint.config.mjs",
],
rules: {
"brace-style": [2, "stroustrup", { allowSingleLine: true }],
"no-console": 0,
strict: [2],
indent: [2, 4],
semi: ["error"],
"prefer-const": ["error"],
"no-var": ["error"],
"prefer-destructuring": ["error"],
"object-shorthand": ["error"],
quotes: ["error", "single"],
"quote-props": ["error", "as-needed"],
"prefer-template": ["error"],
},
},
];