forked from RadicalImaging/Static-DICOMWeb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
34 lines (34 loc) · 937 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
module.exports = {
env: {
node: true,
commonjs: true,
es2021: true,
"jest/globals": true,
},
extends: ["airbnb-base", "prettier", "plugin:node/recommended"],
plugins: ["eslint-plugin-prettier", "jest"],
parserOptions: {
ecmaVersion: 2021,
},
ignorePatterns: [".eslintrc.js"],
rules: {
"import/no-named-as-default": 0,
"no-param-reassign": "warn",
"prettier/prettier": ["warn", {printWidth: 168}],
"no-console": 0,
eqeqeq: 0,
"max-len": [2, { code: 192, ignoreUrls: true }],
"no-await-in-loop": 0,
"import/extensions": 0,
"no-mixed-operators": 0,
"no-plusplus": ["error", { allowForLoopAfterthoughts: true }],
"no-continue": 0,
radix: 0,
"no-underscore-dangle": 0,
"no-restricted-syntax": 0,
"consistent-return": "warn",
"prefer-destructuring": 0,
"class-methods-use-this": 0,
"node/no-unsupported-features/es-syntax": 0,
},
};