-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
34 lines (33 loc) · 848 Bytes
/
.eslintrc.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
34
"use strict";
module.exports = {
env: {
node: 1,
},
parserOptions: {
ecmaVersion: 2021,
},
plugins: ["node", "eslint-plugin", "prettier"],
extends: [
"eslint:recommended",
"plugin:node/recommended",
"plugin:eslint-plugin/all",
],
rules: {
"arrow-body-style": "error",
"no-use-before-define": "error",
"node/prefer-global/buffer": "error",
"node/prefer-global/console": "error",
"node/prefer-global/process": "error",
"node/prefer-global/text-decoder": "error",
"node/prefer-global/url": "error",
"node/prefer-global/url-search-params": "error",
"eslint-plugin/require-meta-docs-url": [
"error",
{
pattern:
"https://github.com/qDanik/eslint-plugin-path/blob/main/docs/rules/{{name}}.md",
},
],
"prettier/prettier": "error",
},
};