forked from dappradar/nft-sales-adapters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (31 loc) · 811 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
module.exports = {
parser: "babel-eslint",
env: {
es6: true,
browser: true,
node: true,
jest: true,
},
extends: ["eslint:recommended", "prettier"],
plugins: ["prettier"],
rules: {
"no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
"no-prototype-builtins": "off",
"no-useless-escape": "warn",
"prettier/prettier": "error",
"no-console": "off",
"no-var": "warn",
"prefer-const": "warn",
"no-constant-condition": "off",
"no-inner-declarations": "off",
"no-dupe-class-members": "off",
"require-atomic-updates": "off", // until https://github.com/eslint/eslint/issues/11899
"no-throw-literal": "error",
"no-mixed-spaces-and-tabs": ["warn", "smart-tabs"],
//"prettier/prettier": "warn",
"no-restricted-imports": ["error"],
},
};