Skip to content

Commit 24a137e

Browse files
chore: use JS config file (mysticatea#18)
1 parent a9a417e commit 24a137e

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

.eslintrc.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
"use strict"
2+
3+
/** @type {import('eslint').Linter.Config} */
4+
module.exports = {
5+
root: true,
6+
extends: ["plugin:@eslint-community/mysticatea/es2020"],
7+
rules: {
8+
"@eslint-community/mysticatea/prettier": "off",
9+
},
10+
overrides: [
11+
{
12+
files: ["src/**/*.js", "test/**/*.js"],
13+
extends: ["plugin:@eslint-community/mysticatea/+modules"],
14+
rules: {
15+
"init-declarations": "off",
16+
17+
"@eslint-community/mysticatea/node/no-unsupported-features/es-syntax":
18+
["error", { ignores: ["modules"] }],
19+
},
20+
},
21+
],
22+
}

.eslintrc.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)