-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
40 lines (39 loc) · 1.16 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
import jsdoc from "eslint-plugin-jsdoc";
import js from "@eslint/js";
import globals from "globals";
export default [
{
ignores: ['dist/', 'vendor/', '*.cjs'],
},
js.configs.recommended,
jsdoc.configs["flat/recommended"],
{
plugins: {
jsdoc: jsdoc,
},
languageOptions: {
ecmaVersion: 2022,
globals: {
...globals.browser,
...globals.es2020,
...globals.mocha,
},
},
rules: {
"no-unused-vars": ["error", { "args": "none" }],
"no-trailing-spaces": ["error"],
"semi": [2, "always"],
"jsdoc/require-jsdoc": 0,
"jsdoc/require-param-description": 0,
"jsdoc/require-returns": 0,
"jsdoc/require-param-type": 0,
"jsdoc/require-returns-description": 0,
"no-multiple-empty-lines": ["error", { "max": 1 }],
"padded-blocks": ["error", "never"],
"padding-line-between-statements": [
"error",
{ "blankLine": "any", "prev": "*", "next": "*" }
]
},
},
];