-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.eslintrc.yml
More file actions
46 lines (40 loc) · 1.24 KB
/
.eslintrc.yml
File metadata and controls
46 lines (40 loc) · 1.24 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
40
41
42
43
44
45
46
---
root: true
ignorePatterns:
- 'node_modules/**/*'
- 'dist'
- 'site'
env:
node: true
es6: true
jest: true
plugins:
- 'jsdoc'
- '@typescript-eslint/eslint-plugin'
extends:
- 'xo-space'
- 'plugin:jsdoc/recommended'
rules:
array-element-newline: off
capitalized-comments: off
curly: ['error', 'multi-line']
comma-dangle: ['error', 'never']
object-curly-spacing: ['error', 'always']
operator-linebreak: ['error', 'after']
no-multiple-empty-lines: ['error', { max: 2, maxEOF: 1, maxBOF: 0 }]
no-negated-condition: off
keyword-spacing: ['error', { overrides: { if: { after: false }, for: { after: false }, while: { after: false }, catch: { after: false } } }]
jsdoc/newline-after-description: off
overrides:
- files: ['*.ts']
parserOptions:
project:
- './tsconfig.eslint.json'
- './tsconfig.spec.json'
extends:
- 'xo-typescript/space'
rules:
'@typescript-eslint/keyword-spacing': ['error', { overrides: { if: { after: false }, for: { after: false }, while: { after: false }, catch: { after: false } } }]
'@typescript-eslint/object-curly-spacing': ['error', 'always']
'@typescript-eslint/comma-dangle': ['error', 'never']
'@typescript-eslint/naming-convention': off