Skip to content

Commit 9fbf427

Browse files
Configure ESLint with allowed syntax
1 parent dd6a5d2 commit 9fbf427

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

packages/.eslintrc.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,25 @@ module.exports = {
1616
},
1717
plugins: ['es-x'],
1818
rules: {
19+
// Babel transpiles ES2020 class fields
20+
'es-x/no-class-fields': 'off',
21+
22+
// Babel transpiles ES2022 class static fields
23+
'es-x/no-class-static-fields': 'off',
24+
1925
// ES modules include ES2016 '[].includes()' coverage
2026
// https://browsersl.ist/#q=supports+es6-module+and+not+supports+array-includes
21-
'es-x/no-array-prototype-includes': 'off'
27+
'es-x/no-array-prototype-includes': 'off',
28+
29+
// Babel transpiles ES2020 `??` nullish coalescing
30+
'es-x/no-nullish-coalescing-operators': 'off',
31+
32+
// ES modules include ES2017 'Object.entries()' coverage
33+
// https://browsersl.ist/#q=supports+es6-module+and+not+supports+object-entries
34+
'es-x/no-object-entries': 'off',
35+
36+
// Babel transpiles ES2020 optional chaining
37+
'es-x/no-optional-chaining': 'off'
2238
}
2339
}
2440
]

0 commit comments

Comments
 (0)