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 f458209 commit b728a6aCopy full SHA for b728a6a
eslint.config.js
@@ -1,9 +1,22 @@
1
+import { dirname } from 'path'
2
+import { fileURLToPath } from 'url'
3
import defaultConfig from '@epic-web/config/eslint'
4
5
+const __filename = fileURLToPath(import.meta.url)
6
+const __dirname = dirname(__filename)
7
+
8
/** @type {import("eslint").Linter.Config} */
9
export default [
10
...defaultConfig,
11
{
12
+ files: ['**/*.ts', '**/*.tsx'],
13
+ languageOptions: {
14
+ parserOptions: {
15
+ projectService: true,
16
+ tsconfigRootDir: __dirname,
17
+ allowDefaultProject: true,
18
+ },
19
20
rules: {
21
// we leave unused vars around for the exercises
22
'no-unused-vars': 'off',
0 commit comments