forked from mysticatea/eslint-utils
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
31 lines (29 loc) · 993 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
"use strict"
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: ["plugin:@eslint-community/mysticatea/es2020"],
rules: {
"@eslint-community/mysticatea/prettier": "off",
"no-restricted-properties": [
"error",
{
object: "context",
property: "getScope",
message:
"If you are using it in a test case, use test/test-lib/get-scope.mjs instead. Other than that, the API should also be compatible with ESLint v9.",
},
],
},
overrides: [
{
files: ["src/**/*.mjs", "test/**/*.mjs"],
extends: ["plugin:@eslint-community/mysticatea/+modules"],
rules: {
"init-declarations": "off",
"@eslint-community/mysticatea/node/no-unsupported-features/es-syntax":
["error", { ignores: ["modules"] }],
},
},
],
}