-
Notifications
You must be signed in to change notification settings - Fork 48
/
.eslintrc.yml
60 lines (60 loc) · 1.73 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
55
56
57
58
59
60
root: true
env:
browser: true
es6: true
parserOptions:
ecmaVersion: 6
sourceType: module
extends:
- eslint:recommended
rules:
array-bracket-spacing: [ warn, always ]
arrow-parens: [ warn, as-needed ]
arrow-spacing: warn
brace-style: [ warn, 1tbs, { allowSingleLine: true } ]
block-spacing: [ warn, always ]
comma-spacing: warn
comma-dangle: [ warn, never ]
computed-property-spacing: [ warn, always ]
eol-last: [ warn, always ]
eqeqeq: [ warn, always ]
func-call-spacing: [ warn, never ]
indent: [ warn, tab, { SwitchCase: 1 } ]
key-spacing: [ warn, { mode: minimum } ]
keyword-spacing: warn
linebreak-style: [ warn, unix ]
max-len: [ warn, { code: 120 } ]
new-parens: warn
no-empty: warn
no-extra-semi: warn
no-multi-spaces: warn
no-multiple-empty-lines: [ warn, { max: 1, maxBOF: 0, maxEOF: 1 } ]
no-trailing-spaces: warn
no-unused-vars: warn
no-var: warn
no-whitespace-before-property: warn
object-curly-spacing: [ warn, always ]
quotes: [ warn, single, { avoidEscape: true } ]
semi-spacing: warn
semi: [ warn, always ]
space-before-blocks: [ warn, always ]
space-before-function-paren: [ warn, never ]
space-in-parens: [ warn, always, { exceptions: [ empty ] } ]
space-infix-ops: warn
overrides:
- files: [ src/**/*.js ]
plugins:
- jsdoc
rules:
jsdoc/require-description-complete-sentence: warn
jsdoc/require-description: warn
# forbid newlines after description
jsdoc/tag-lines: [ warn, any, { tags: { description: { lines: never } } } ]
- files: [ rollup.config.js, scripts/**/*.js, tests/**/*.js ]
env:
node: true
parserOptions:
ecmaVersion: 2022
- files: [ src/**/*.js, tests/*.test.js ]
rules:
no-console: warn