-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.yml
More file actions
84 lines (74 loc) · 1.6 KB
/
.eslintrc.yml
File metadata and controls
84 lines (74 loc) · 1.6 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
plugins:
- 'jsdoc'
- 'sort-export-all'
- '@typescript-eslint/eslint-plugin'
ignorePatterns:
- 'node_modules/**/*'
- 'dist/**/*'
- 'build/**/*'
- 'coverage/**/*'
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:@shopify/esnext'
- 'plugin:@shopify/typescript'
- 'plugin:@shopify/typescript-type-checking'
- 'plugin:jsdoc/recommended-typescript-error'
- 'plugin:@shopify/prettier'
- 'prettier'
parser: '@typescript-eslint/parser'
parserOptions:
project: 'tsconfig.json'
ecmaVersion: latest
sourceType: 'module'
extraFileExtensions:
- .md
- .json
- .jsonc
rules:
# @shopify/typescript
'@shopify/typescript/prefer-pascal-case-enums': 0
# @typescript-eslint
'@typescript-eslint/consistent-type-imports':
- 'error'
- prefer: 'type-imports'
fixStyle: 'inline-type-imports'
# eslint
'id-length': 0
'line-comment-position': 0
'no-console': 0
'sort-imports':
- 'error'
- ignoreDeclarationSort: true
allowSeparatedGroups: true
#
# import
#
'import/order':
- 'error'
- groups:
- 'builtin'
- 'external'
- 'internal'
- 'parent'
- 'sibling'
alphabetize:
order: 'asc'
caseInsensitive: false
'newlines-between': 'always'
#
# jsdoc
#
'jsdoc/require-description-complete-sentence': 'error'
'jsdoc/require-hyphen-before-param-description':
- 'error'
- 'never'
'jsdoc/tag-lines':
- 'error'
- 'always'
- count: 0
startLines: 1
#
# sort-export-all
#
'sort-export-all/sort-export-all': 'error'