forked from tc39/proposal-temporal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
104 lines (104 loc) · 2.1 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
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:
- docs/cookbook/fromLegacyDateOnly.mjs
rules:
prettier/prettier: 'off'
- files:
- docs/buildDocs.js
- polyfill/lib/duration.mjs
- polyfill/lib/init.js
- polyfill/test/all.mjs
- polyfill/test/validStrings.mjs
rules:
no-console: off
- files:
- polyfill/test262/**
rules:
quotes:
- error
- double
- avoidEscape: true
prettier/prettier:
- error
- singleQuote: false