-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
40 lines (39 loc) · 918 Bytes
/
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
import js from '@eslint/js';
import globals from 'globals';
import ts from 'typescript-eslint';
export default ts.config(
{
ignores: ['.pnp.*', '.yarn', 'dist', 'coverage']
},
{
languageOptions: { globals: globals.node },
linterOptions: {
reportUnusedDisableDirectives: 'error'
}
},
{
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', 'npm/ring/bin/ring'],
extends: [
js.configs.recommended
],
rules: {
quotes: ['error', 'single'],
semi: ['error', 'always'],
}
},
{
files: ['**/*.ts', '**/*.tsx'],
extends: [...ts.configs.recommendedTypeChecked],
languageOptions: {
parserOptions: {
project: ['./scripts/tsconfig.json'],
tsconfigRootDir: import.meta.dirname,
}
},
rules: {
'@typescript-eslint/no-unused-expressions': ['error', {
allowTaggedTemplates: true
}]
}
}
);