Skip to content

Commit b3756b2

Browse files
chore: use JS config file for ESLint (#45)
1 parent 5a0fabe commit b3756b2

File tree

3 files changed

+68
-40
lines changed

3 files changed

+68
-40
lines changed

.eslintrc.js

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
"use strict"
2+
3+
/** @type {import('eslint').Linter.Config} */
4+
module.exports = {
5+
root: true,
6+
extends: "plugin:@eslint-community/mysticatea/es2018",
7+
parserOptions: {
8+
project: "./tsconfig.eslint.json",
9+
},
10+
settings: {
11+
node: {
12+
tryExtensions: [
13+
".js",
14+
".json",
15+
".mjs",
16+
".node",
17+
".ts",
18+
".tsx",
19+
".vue",
20+
],
21+
},
22+
},
23+
rules: {
24+
// TSC does this
25+
"no-redeclare": "off",
26+
// https://github.com/typescript-eslint/typescript-eslint/issues/743
27+
"@eslint-community/mysticatea/ts/unbound-method": "off",
28+
29+
// Temporary disabled rules
30+
"@eslint-community/mysticatea/ts/naming-convention": "off",
31+
"@eslint-community/mysticatea/ts/prefer-readonly-parameter-types":
32+
"off",
33+
// Should be fixed by `@eslint-community/eslint-plugin-mysticatea`
34+
"no-duplicate-imports": "off",
35+
"@eslint-community/mysticatea/ts/no-duplicate-imports": [
36+
"error",
37+
{ includeExports: true },
38+
],
39+
},
40+
overrides: [
41+
{
42+
files: "./scripts/clone-without-circular.ts",
43+
// Temporarily disable these rules until we fix the `any` usage
44+
rules: {
45+
"@eslint-community/mysticatea/eslint-comments/no-use": "off",
46+
"@eslint-community/mysticatea/ts/no-unsafe-argument": "off",
47+
"@eslint-community/mysticatea/ts/no-unsafe-assignment": "off",
48+
"@eslint-community/mysticatea/ts/no-unsafe-member-access":
49+
"off",
50+
"@eslint-community/mysticatea/ts/no-unsafe-return": "off",
51+
},
52+
},
53+
54+
{
55+
files: "./src/unicode/ids.ts",
56+
rules: {
57+
curly: "off",
58+
"no-misleading-character-class": "off",
59+
},
60+
},
61+
{
62+
files: "./src/unicode/property-data.ts",
63+
rules: {
64+
"@eslint-community/mysticatea/ts/camelcase": "off",
65+
},
66+
},
67+
],
68+
}

.eslintrc.yml

-31
This file was deleted.

scripts/clone-without-circular.ts

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
/* Temporarily disable these rules until we fix the `any` usage */
2-
/* eslint
3-
"@eslint-community/mysticatea/eslint-comments/no-use": "off",
4-
"@eslint-community/mysticatea/ts/no-unsafe-argument": "off",
5-
"@eslint-community/mysticatea/ts/no-unsafe-assignment": "off",
6-
"@eslint-community/mysticatea/ts/no-unsafe-member-access": "off",
7-
"@eslint-community/mysticatea/ts/no-unsafe-return": "off",
8-
*/
9-
101
import { posix } from "path"
112

123
function resolveLocation(

0 commit comments

Comments
 (0)