-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
54 lines (54 loc) · 1.25 KB
/
.eslintrc.yml
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
---
root: true
parser: '@typescript-eslint/parser'
parserOptions:
sourceType: 'module'
project: './tsconfig.json'
env:
es2022: true
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
- 'prettier'
plugins:
- 'import'
- '@typescript-eslint'
rules:
valid-jsdoc: 'error'
import/no-extraneous-dependencies:
- 'error'
- peerDependencies: true
devDependencies: true
class-methods-use-this: 0
import/extensions:
- 'error'
- 'always'
- ignorePackages: true
prefer-const: 0
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true }]
overrides:
- files:
- 'packages/**/src/**/*@(.mjs|.js|.ts|.cjs|.jsx|.tsx)'
rules:
import/no-extraneous-dependencies:
- 'error'
- peerDependencies: true
devDependencies: false
no-console: 'error'
- files:
- '*.cjs'
parserOptions:
sourceType: 'script'
env:
node: true
- files:
- '*@(.ts|.tsx)'
rules:
valid-jsdoc:
['error', { requireReturnType: false, requireParamType: false }]
- files:
- 'packages/**/bin/**/*@(.mjs|.js|.ts|.cjs)'
- 'scripts/**/*@(.mjs|.js|.ts|.cjs)'
- 'packages/**/scripts/**/*@(.mjs|.js|.ts|.cjs)'
env:
node: true