Skip to content

Commit 7367567

Browse files
committed
chore: update
1 parent 94d42ef commit 7367567

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
/.nyc_output
21
/.temp
3-
/coverage
42
node_modules
53
/test/temp
64
/index.*

eslint.config.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ const compat = new FlatCompat({
2222
export default [
2323
{
2424
ignores: [
25-
".nyc_output",
2625
".temp",
27-
"coverage",
2826
"**/node_modules",
2927
"src/html/util/alternative-cr.ts",
3028
"src/html/util/attribute-names.ts",

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
"fs-extra": "^10.0.0",
5151
"jsonc-eslint-parser": "^2.0.3",
5252
"npm-run-all": "^4.1.5",
53-
"nyc": "^15.1.0",
54-
"opener": "^1.5.2",
5553
"prettier": "^3.4.2",
5654
"rimraf": "^3.0.2",
5755
"rollup": "^2.60.0",
@@ -81,8 +79,7 @@
8179
"watch": "run-p watch:*",
8280
"watch:tsc": "tsc --module es2015 --watch",
8381
"watch:rollup": "wait-on .temp/index.js && rollup -c -o index.js --watch",
84-
"watch:update-ast": "wait-on index.js && warun index.js \"test/fixtures/ast/*/*.vue\" -- ts-node scripts/update-fixtures-ast.js",
85-
"watch:coverage-report": "wait-on coverage/lcov-report/index.html && opener coverage/lcov-report/index.html"
82+
"watch:update-ast": "wait-on index.js && warun index.js \"test/fixtures/ast/*/*.vue\" -- ts-node scripts/update-fixtures-ast.js"
8683
},
8784
"repository": {
8885
"type": "git",

test/index.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import type { Rule } from "eslint"
1212
import path from "node:path"
1313
import { describe, it, assert, beforeEach, afterEach } from "vitest"
14+
// @ts-expect-error -- ignore
1415
import * as tsParser from "@typescript-eslint/parser"
1516
import fs from "fs-extra"
1617
import * as eslint from "eslint"
@@ -49,6 +50,7 @@ const BABEL_PARSER_OPTIONS = {
4950
describe("Basic tests", async () => {
5051
const ESLint = await eslint.loadESLint({ useFlatConfig: true })
5152
const Linter = class extends eslint.Linter {
53+
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
5254
constructor() {
5355
super({ configType: "flat" })
5456
}

test/parser-options.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55

66
import { describe, it, assert } from "vitest"
77
import { parseForESLint } from "../src"
8+
import type { ESLint } from "eslint"
89
import { Linter } from "eslint"
910

1011
describe("parserOptions", () => {
1112
describe("parser", () => {
1213
const linter = new Linter({ configType: "flat" })
13-
const parser = { parseForESLint }
14-
const plugin = {
14+
const parser: Linter.Parser = { parseForESLint }
15+
const plugin: ESLint.Plugin = {
1516
rules: {
1617
"template-test": {
1718
create(context) {

0 commit comments

Comments
 (0)