This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
/
eslint.config.js
60 lines (59 loc) · 1.54 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import js from '@eslint/js';
import eslintPrettier from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default tseslint.config(
js.configs.recommended,
...tseslint.configs.strictTypeChecked,
// ...tseslint.configs.stylisticTypeChecked,
eslintPrettier,
{
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.node,
},
parserOptions: {
project: ['./tsconfig.json', './packages/website/tsconfig.json'],
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
'@typescript-eslint/no-unnecessary-condition': 'off',
'@typescript-eslint/no-dynamic-delete': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
caughtErrors: 'none',
},
],
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
},
},
{
ignores: [
'**/node_modules/*',
'**/build/*',
'adders/*/build',
'packages/ast-manipulation/build',
'packages/ast-tooling/build',
'packages/cli/build',
'packages/core/build',
'packages/dev-utils/build',
'packages/testing-library/build',
'packages/tests/.outputs',
'packages/tests/build',
'packages/website/.svelte-kit',
'packages/website/build',
'packages/website',
'packages/clack-core',
'packages/clack-prompts',
'temp',
],
},
);