-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy path.eslintrc.yml
119 lines (119 loc) · 2.75 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
env:
browser: true
es6: true
node: true
plugins:
- prettier
- '@typescript-eslint'
extends:
- 'eslint:recommended'
- 'plugin:prettier/recommended'
- 'plugin:@typescript-eslint/recommended'
parser: '@typescript-eslint/parser' # for index.d.ts
globals:
Atomics: readonly
BigInt: readonly
SharedArrayBuffer: readonly
globalThis: readonly
parserOptions:
ecmaVersion: 2020
sourceType: module
ignorePatterns:
- node_modules/
- /out/
- /polyfill/dist/
- /polyfill/test262/
- /polyfill/venv/
- /polyfill/coverage/
# Specific generated files
- /polyfill/script.js
rules:
array-element-newline:
- error
- consistent
arrow-parens: error
arrow-spacing: error
brace-style:
- error
- 1tbs
comma-dangle: error
comma-spacing: error
curly:
- error
- multi-line
func-call-spacing: error
function-call-argument-newline:
- error
- consistent
indent:
- error
- 2
- SwitchCase: 1
keyword-spacing: error
max-len:
- error
- code: 120
ignoreRegExpLiterals: true
no-alert: error
no-console: error
no-multiple-empty-lines:
- error
- max: 1
no-trailing-spaces: error
object-curly-spacing:
- error
- always
object-property-newline:
- error
- allowAllPropertiesOnSameLine: true
quote-props:
- error
- as-needed
quotes:
- error
- single
- avoidEscape: true
semi: error
space-infix-ops: error
'@typescript-eslint/explicit-module-boundary-types': off
'@typescript-eslint/no-empty-function': off
'@typescript-eslint/no-var-requires': off
'@typescript-eslint/ban-ts-comment': off
overrides:
- files:
- polyfill/test/Calendar/**/*.js
- polyfill/test/PlainDate/**/*.js
- polyfill/test/PlainDateTime/**/*.js
- polyfill/test/Duration/**/*.js
- polyfill/test/Instant/**/*.js
- polyfill/test/ISO8601Calendar/**/*.js
- polyfill/test/PlainMonthDay/**/*.js
- polyfill/test/Temporal/**/*.js
- polyfill/test/PlainTime/**/*.js
- polyfill/test/TimeZone/**/*.js
- polyfill/test/PlainYearMonth/**/*.js
- polyfill/test/ZonedDateTime/**/*.js
- polyfill/test/now/**/*.js
globals:
Temporal: readonly
Test262Error: readonly
assert: readonly
verifyProperty: readonly
# test262 code complies to a different coding style
extends: 'eslint:recommended'
rules:
brace-style: 'off'
comma-dangle: 'off'
function-call-argument-newline: 'off'
max-len: 'off'
prettier/prettier: 'off'
quotes: 'off'
- files:
- docs/buildDocs.js
- polyfill/lib/duration.mjs
- polyfill/lib/init.js
- polyfill/test/all.mjs
- polyfill/test/exhaust.mjs
- polyfill/test/validStrings.mjs
rules:
no-console: off