Skip to content

Commit 94dab62

Browse files
committed
Upgrade ESLint
1 parent 856ce8e commit 94dab62

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

eslint_src.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"parser": "babel-eslint",
32
"parserOptions": {
43
"ecmaVersion": 9,
54
"sourceType": "module"

eslint_test.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"parser": "babel-eslint",
32
"parserOptions": {
43
"ecmaVersion": 9,
54
"sourceType": "module",

fluent-langneg/src/subtags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const regionMatchingLangs = [
5252
];
5353

5454
export function getLikelySubtagsMin(loc: string): Locale | null {
55-
if (likelySubtagsMin.hasOwnProperty(loc)) {
55+
if (Object.prototype.hasOwnProperty.call(likelySubtagsMin, loc)) {
5656
return new Locale(likelySubtagsMin[loc]);
5757
}
5858
const locale = new Locale(loc);

fluent-react/src/localized.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ export function Localized(props: LocalizedProps): ReactElement {
155155
const childName = childNode.nodeName.toLowerCase();
156156

157157
// If the child is not expected just take its textContent.
158-
if (!elemsLower || !elemsLower.hasOwnProperty(childName)) {
158+
if (
159+
!elemsLower ||
160+
!Object.prototype.hasOwnProperty.call(elemsLower, childName)
161+
) {
159162
return childNode.textContent;
160163
}
161164

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010
"@babel/preset-env": "^7.4.3",
1111
"@typescript-eslint/eslint-plugin": "^2.10.0",
1212
"@typescript-eslint/parser": "^2.10.0",
13-
"babel-eslint": "^10.0.1",
1413
"colors": "^1.3.3",
1514
"commander": "^2.20",
16-
"eslint": "^5.16.0",
17-
"eslint-plugin-mocha": "^5.3.0",
15+
"eslint": "6.8.x",
16+
"eslint-plugin-mocha": "6.3.x",
1817
"esm": "^3.2.22",
1918
"fuzzer": "^0.2.1",
2019
"gh-pages": "^2.0.1",

0 commit comments

Comments
 (0)