Skip to content

Commit a801fde

Browse files
v2.2.1
1 parent 03ca5c8 commit a801fde

File tree

5 files changed

+2390
-1755
lines changed

5 files changed

+2390
-1755
lines changed

.eslintrc.json

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

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
| 2024-11-03 | 2.0.3 | Fix inlined script/comment tags (#102) |
6363
| 2024-12-08 | 2.1.0 | Allow for Vite 6 |
6464
| | | Note that as of the release date, you'll need vitest 3.0.0-beta.1 to test with vite 6, and |
65-
| | | part of it has a depenency on vite 5 still, so you may have to force vite 6. |
65+
| | | part of it has a dependency on vite 5 still, so you may have to force vite 6. |
6666
| 2025-03-09 | 2.2.0 | Respect Vite logging level (#107) |
6767
| | | Respect Vite base option (#103) |
68+
| 2025-07-01 | 2.2.1 | Allow for Vite 7, bump other dependencies. |

eslint.config.mjs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import { defineConfig } from "eslint/config";
2+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
3+
import globals from "globals";
4+
import path from "node:path";
5+
import { fileURLToPath } from "node:url";
6+
import js from "@eslint/js";
7+
import { FlatCompat } from "@eslint/eslintrc";
8+
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = path.dirname(__filename);
11+
const compat = new FlatCompat({
12+
baseDirectory: __dirname,
13+
recommendedConfig: js.configs.recommended,
14+
allConfig: js.configs.all
15+
});
16+
17+
export default defineConfig([{
18+
extends: compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
19+
20+
plugins: {
21+
"@typescript-eslint": typescriptEslint,
22+
},
23+
24+
languageOptions: {
25+
globals: {
26+
...globals.browser,
27+
},
28+
29+
ecmaVersion: 12,
30+
sourceType: "module",
31+
32+
parserOptions: {
33+
parser: "@typescript-eslint/parser",
34+
},
35+
},
36+
37+
rules: {},
38+
}, {
39+
files: ["**/*.cjs"],
40+
41+
languageOptions: {
42+
ecmaVersion: 5,
43+
sourceType: "script",
44+
},
45+
46+
rules: {
47+
"@typescript-eslint/no-var-requires": "off",
48+
"import/no-commonjs": "off",
49+
},
50+
}]);

0 commit comments

Comments
 (0)