Skip to content

Commit ffe25ec

Browse files
chore: use JS config file (#47)
1 parent 9d60baa commit ffe25ec

File tree

2 files changed

+29
-19
lines changed

2 files changed

+29
-19
lines changed

.eslintrc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
"use strict"
2+
3+
/** @type {import('eslint').Linter.Config} */
4+
module.exports = {
5+
root: true,
6+
extends: [
7+
"plugin:@eslint-community/mysticatea/es2015",
8+
"plugin:@eslint-community/mysticatea/+eslint-plugin",
9+
],
10+
overrides: [
11+
{
12+
files: ["lib/utils.js", "scripts/*.js"],
13+
rules: {
14+
"@eslint-community/mysticatea/node/no-sync": "off",
15+
},
16+
},
17+
{
18+
files: [
19+
"lib/configs.js",
20+
"lib/foreign-rules/ts.js",
21+
"lib/processors.js",
22+
"lib/rules.js",
23+
],
24+
rules: {
25+
"@eslint-community/mysticatea/node/global-require": "off",
26+
},
27+
},
28+
],
29+
}

.eslintrc.yml

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

0 commit comments

Comments
 (0)