Skip to content

Commit f8c041a

Browse files
authored
Support esx from eslint-config-frontier-react (#32)
esx is applied to src files since that is what end users use and that is what we need to restrict. See https://icseng.atlassian.net/browse/FRONTIER-2569 esx is a way to restrict from using specific new es features so that users on older browsers do not get errors as much. See https://github.com/fs-webdev/eslint-config-frontier-react/pull/62/files for the eslint-config-frontier-react pr.
1 parent 455e94e commit f8c041a

File tree

5 files changed

+314
-176
lines changed

5 files changed

+314
-176
lines changed

demo/test/snapshots/linting-config.test.js.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Generated by [AVA](https://ava.li).
1212
"env": {␊
1313
"cypress/globals": true,␊
1414
"jest/globals": true,␊
15-
"es2021": true,␊
15+
"es2022": true,␊
1616
"es6": true,␊
1717
"node": true,␊
1818
"browser": true␊
@@ -4121,7 +4121,7 @@ Generated by [AVA](https://ava.li).
41214121
"env": {␊
41224122
"cypress/globals": true,␊
41234123
"jest/globals": true,␊
4124-
"es2021": true,␊
4124+
"es2022": true,␊
41254125
"es6": true,␊
41264126
"node": true,␊
41274127
"browser": true␊
-44 Bytes
Binary file not shown.

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
22
extends: ['@fs/eslint-config-frontier-react/react', './es6', './qa'],
3+
overrides: [{ files: ['src/**'], extends: ['@fs/eslint-config-frontier-react/esx'] }],
34
}

0 commit comments

Comments
 (0)