-
Notifications
You must be signed in to change notification settings - Fork 928
/
.eslintrc.js
38 lines (37 loc) · 1.01 KB
/
.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
35
36
37
38
"use strict";
module.exports = {
extends: [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:node/recommended",
],
env: {
node: true,
es6: true,
},
rules: {
// todo: enable these
//"no-var": "error",
//"prefer-const": "error",
strict: "error",
// 'url.parse' was deprecated in v11, but this lib supports v6+ and the replacement, URL, was only standardized in v10
// next major release will include a bump of the minimum node.js version, allowing the use of URL and resolving
// alternatively, we could use https://www.npmjs.com/package/url to avoid the deprecated api but maintain backwards compatibility
"node/no-deprecated-api": "warn",
},
overrides: [
{
files: ["examples/*/*.js"],
rules: {
"node/no-missing-require": "off",
},
},
{
files: ["test/**"],
rules: {
"node/no-unsupported-features/node-builtins": "off",
},
},
],
ignorePatterns: ["test/source/", "test/expected/"],
};