forked from lightning-tv/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
39 lines (37 loc) · 1.25 KB
/
eslint.config.js
File metadata and controls
39 lines (37 loc) · 1.25 KB
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
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
{
files: ['src/**/*.js'],
...eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
rules: {
// Allow us to write async functions that don't use await
// Intresting commentary on this: https://github.com/standard/eslint-config-standard-with-typescript/issues/217
'@typescript-eslint/require-await': 'off',
// Temporary relaxed rules while we tighten up our TypeScript code
// TODO: Remove these rules once we eliminate all of the unnecessary `any` types in the code
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unsafe-return': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
},
},
{
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
);