2017-04-07 20:21:12 +00:00
|
|
|
{
|
2018-09-14 05:30:46 +00:00
|
|
|
"root": true,
|
2022-04-18 21:06:41 +00:00
|
|
|
"env": {
|
Limit RelatedArticles feature to ES6 browsers
We currently require support for IntersectionObserver.
which is supported on Edge >= 15 (15 has partial support),
Firefox >55, Chrome >58, Safari 12.1, Opera >=38,
iOS Safari >=12.2, Android 100
Full ES6 is supported in Edge >=15, Firefox >=54, Chrome >=51,
Safari >=10, Opera >=38, iOS Safari >=10, so such a change
would only drop support for Edge 15 and Firefox 54.
CSS.escape is guaranteed in all these browsers according to
caniuse, with the only discrepancy being the Edge browser (versions
16-18) so it is also suggested we remove support for those browsers.
Firefox 54 accounts for 0.0026% of page views
Edge 15-18 accounts for 0.069% of page views
Bug: T306355
Change-Id: Id2987e3456607b610c38da9ee157a026d1d00ada
2022-04-18 22:20:04 +00:00
|
|
|
"es6": true,
|
2022-04-18 21:06:41 +00:00
|
|
|
"browser": true,
|
|
|
|
"commonjs": true
|
|
|
|
},
|
2019-02-10 16:46:48 +00:00
|
|
|
"extends": [
|
Limit RelatedArticles feature to ES6 browsers
We currently require support for IntersectionObserver.
which is supported on Edge >= 15 (15 has partial support),
Firefox >55, Chrome >58, Safari 12.1, Opera >=38,
iOS Safari >=12.2, Android 100
Full ES6 is supported in Edge >=15, Firefox >=54, Chrome >=51,
Safari >=10, Opera >=38, iOS Safari >=10, so such a change
would only drop support for Edge 15 and Firefox 54.
CSS.escape is guaranteed in all these browsers according to
caniuse, with the only discrepancy being the Edge browser (versions
16-18) so it is also suggested we remove support for those browsers.
Firefox 54 accounts for 0.0026% of page views
Edge 15-18 accounts for 0.069% of page views
Bug: T306355
Change-Id: Id2987e3456607b610c38da9ee157a026d1d00ada
2022-04-18 22:20:04 +00:00
|
|
|
"wikimedia/client-es6",
|
2020-06-23 19:30:43 +00:00
|
|
|
"wikimedia/jquery",
|
|
|
|
"wikimedia/mediawiki"
|
2019-02-10 16:46:48 +00:00
|
|
|
],
|
Limit RelatedArticles feature to ES6 browsers
We currently require support for IntersectionObserver.
which is supported on Edge >= 15 (15 has partial support),
Firefox >55, Chrome >58, Safari 12.1, Opera >=38,
iOS Safari >=12.2, Android 100
Full ES6 is supported in Edge >=15, Firefox >=54, Chrome >=51,
Safari >=10, Opera >=38, iOS Safari >=10, so such a change
would only drop support for Edge 15 and Firefox 54.
CSS.escape is guaranteed in all these browsers according to
caniuse, with the only discrepancy being the Edge browser (versions
16-18) so it is also suggested we remove support for those browsers.
Firefox 54 accounts for 0.0026% of page views
Edge 15-18 accounts for 0.069% of page views
Bug: T306355
Change-Id: Id2987e3456607b610c38da9ee157a026d1d00ada
2022-04-18 22:20:04 +00:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 6
|
|
|
|
},
|
2018-11-12 19:13:43 +00:00
|
|
|
"rules": {
|
2022-04-15 15:59:54 +00:00
|
|
|
"jsdoc/no-undefined-types": "off",
|
2022-04-14 23:11:07 +00:00
|
|
|
"no-implicit-globals": "off",
|
2021-01-30 02:55:14 +00:00
|
|
|
"max-len": "off",
|
|
|
|
"compat/compat": "warn"
|
2017-04-07 20:21:12 +00:00
|
|
|
}
|
|
|
|
}
|