forked from serverless-dns/serverless-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
47 lines (40 loc) · 1.21 KB
/
.eslintrc.cjs
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
40
41
42
43
44
45
46
47
module.exports = {
env: {
// Which globals variables are allowed.
es2021: true,
node: true,
worker: true,
},
extends: [
// Google JS Style Guide Rules
// See: https://github.com/google/eslint-config-google
"google",
],
parserOptions: {
ecmaVersion: 13,
sourceType: "module",
},
ignorePatterns: ["node_modules/", "dist/", "worker/", "test/data/cache/"],
plugins: ["prettier"],
rules: {
// Google JS rules, missing in "eslint-config-google" package
"eqeqeq": ["error", "smart"],
// Rules disabled to avoid conflicts with prettier
// See: https://github.com/prettier/eslint-config-prettier
"indent": 0,
"object-curly-spacing": 0,
"operator-linebreak": 0,
"space-before-function-paren": 0,
// Our rules overrides.
"comma-dangle": 0,
"require-jsdoc": 0,
"valid-jsdoc": 0,
"quotes": ["error", "double", { allowTemplateLiterals: true }],
"no-unused-vars": "warn",
"new-cap": ["error", { "properties": false }],
// Enforces rules from .prettierrc file.
// These should be fixed automatically with formatting.
// See: https://github.com/prettier/eslint-plugin-prettier
"prettier/prettier": "error",
},
};