Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
"use strict"

/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: "plugin:@eslint-community/mysticatea/es2018",
parserOptions: {
project: "./tsconfig.eslint.json",
},
settings: {
node: {
tryExtensions: [
".js",
".json",
".mjs",
".node",
".ts",
".tsx",
".vue",
],
},
},
rules: {
// TSC does this
"no-redeclare": "off",
// https://github.com/typescript-eslint/typescript-eslint/issues/743
"@eslint-community/mysticatea/ts/unbound-method": "off",

// Temporary disabled rules
"@eslint-community/mysticatea/ts/naming-convention": "off",
"@eslint-community/mysticatea/ts/prefer-readonly-parameter-types":
"off",
// Should be fixed by `@eslint-community/eslint-plugin-mysticatea`
"no-duplicate-imports": "off",
"@eslint-community/mysticatea/ts/no-duplicate-imports": [
"error",
{ includeExports: true },
],
},
overrides: [
{
files: "./scripts/clone-without-circular.ts",
// Temporarily disable these rules until we fix the `any` usage
rules: {
"@eslint-community/mysticatea/eslint-comments/no-use": "off",
"@eslint-community/mysticatea/ts/no-unsafe-argument": "off",
"@eslint-community/mysticatea/ts/no-unsafe-assignment": "off",
"@eslint-community/mysticatea/ts/no-unsafe-member-access":
"off",
"@eslint-community/mysticatea/ts/no-unsafe-return": "off",
},
},

{
files: "./src/unicode/ids.ts",
rules: {
curly: "off",
"no-misleading-character-class": "off",
},
},
{
files: "./src/unicode/property-data.ts",
rules: {
"@eslint-community/mysticatea/ts/camelcase": "off",
},
},
],
}
31 changes: 0 additions & 31 deletions .eslintrc.yml

This file was deleted.

9 changes: 0 additions & 9 deletions scripts/clone-without-circular.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/* Temporarily disable these rules until we fix the `any` usage */
/* eslint
"@eslint-community/mysticatea/eslint-comments/no-use": "off",
"@eslint-community/mysticatea/ts/no-unsafe-argument": "off",
"@eslint-community/mysticatea/ts/no-unsafe-assignment": "off",
"@eslint-community/mysticatea/ts/no-unsafe-member-access": "off",
"@eslint-community/mysticatea/ts/no-unsafe-return": "off",
*/

import { posix } from "path"

function resolveLocation(
Expand Down