We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2875f31 commit 278e13dCopy full SHA for 278e13d
files/empty-project/eslint.config.js
@@ -1,6 +1,18 @@
1
-import tsParticlesESLintConfig from "@tsparticles/eslint-config";
+import path from "path";
2
+import { fileURLToPath } from "url";
3
import { defineConfig } from "eslint/config";
4
+import tsParticlesESLintConfig from "@tsparticles/eslint-config";
5
+
6
+const __dirname = path.dirname(fileURLToPath(import.meta.url));
7
8
export default defineConfig([
9
tsParticlesESLintConfig,
10
+ {
11
+ languageOptions: {
12
+ parserOptions: {
13
+ project: "./tsconfig.json",
14
+ tsconfigRootDir: __dirname,
15
+ },
16
17
18
]);
0 commit comments