-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
eslint.config.js
44 lines (41 loc) · 1.02 KB
/
eslint.config.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
40
41
42
43
44
"use strict";
const eslintConfigESLint = require("eslint-config-eslint/cjs");
const globals = require("globals");
module.exports = [
...eslintConfigESLint,
{
ignores: ["coverage/"]
},
{
rules: {
camelcase: ["error", { properties: "never" }],
// Remove after https://github.com/eslint/eslint/pull/17900 is included in new release
"jsdoc/no-multi-asterisks": ["error", { allowWhitespace: true }]
}
},
{
files: ["eslint.config.js"],
rules: {
"n/no-unpublished-require": "off"
}
},
{
files: ["tests/**/*.js"],
languageOptions: {
globals: {
...globals.jest
}
},
rules: {
"n/no-unpublished-require": "off",
"n/no-extraneous-require": [
"error",
{
allowModules: [
"@octokit/rest"
]
}
]
}
}
];