forked from Jayphen/polyfill-useragent-normaliser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (38 loc) · 858 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
35
36
37
38
39
"use strict";
module.exports = {
plugins: ["prettier", "node"],
parserOptions: {
ecmaVersion: 2017,
},
env: {
node: true,
es6: true,
},
rules: {
"node/exports-style": "error",
"node/no-deprecated-api": "error",
"node/no-missing-require": "error",
"node/no-unsupported-features": "error",
"prettier/prettier": "error",
"no-unused-vars": 2,
"no-undef": 2,
eqeqeq: 2,
"no-underscore-dangle": 0,
"guard-for-in": 2,
"no-extend-native": 2,
"wrap-iife": 0,
"new-cap": 2,
"no-caller": 2,
semi: [2, "always"],
strict: [2, "global"],
"no-loop-func": 2,
"no-irregular-whitespace": 1,
"no-multi-spaces": 2,
"one-var": [2, "never"],
"constructor-super": 2,
"no-this-before-super": 2,
"no-var": 2,
"prefer-const": 1,
"no-const-assign": 2,
},
};