forked from Real-Dev-Squad/website-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
34 lines (32 loc) · 764 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
/**
* Eslint config file.
*/
module.exports = {
env: {
commonjs: true,
es2021: true,
node: true,
mocha: true,
},
extends: ["standard", "plugin:mocha/recommended", "plugin:security/recommended", "plugin:prettier/recommended"],
plugins: ["mocha", "security", "prettier"],
parserOptions: {
ecmaVersion: 13,
},
globals: {
config: "readonly",
logger: "readonly",
},
rules: {
// Custom eslint rules
"no-trailing-spaces": "error",
"consistent-return": "error",
"no-console": "error",
// Custom mocha rules
"mocha/no-skipped-tests": "error",
"mocha/no-exclusive-tests": "error",
// Prettier for formatting
"prettier/prettier": "error",
},
ignorePatterns: ["public/*", "dist/*"],
};