|
| 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 | +} |
0 commit comments