generated from Dennis-Rosenbaum/MMM-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
32 lines (30 loc) · 870 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
import eslintPluginJs from "@eslint/js"
import eslintPluginStylistic from "@stylistic/eslint-plugin"
import globals from "globals"
const config = [
{
files: ["**/*.js", "**/*.mjs"],
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
Log: "readonly",
Module: "readonly",
},
},
plugins: {
...eslintPluginStylistic.configs["recommended-flat"].plugins,
},
rules: {
...eslintPluginJs.configs.recommended.rules,
...eslintPluginStylistic.configs["recommended-flat"].rules,
"@stylistic/brace-style": ["error", "1tbs", { allowSingleLine: true }],
"@stylistic/comma-dangle": ["error", "only-multiline"],
"@stylistic/max-statements-per-line": ["error", { max: 2 }],
"@stylistic/quotes": ["error", "double"]
},
}
]
export default config