File tree 9 files changed +15
-32
lines changed
9 files changed +15
-32
lines changed Original file line number Diff line number Diff line change @@ -17,22 +17,6 @@ all: lint test build
17
17
# Used for pre-publishing.
18
18
dist : clean lint test build html
19
19
20
- _lint :
21
- @eslint --config $(ROOT ) /eslint_src.json --max-warnings 0 src/
22
- @eslint --config $(ROOT ) /eslint_test.json --max-warnings 0 test/
23
- @echo -e " $( OK) lint"
24
-
25
- _html :
26
- ifneq (,$(wildcard ./.esdoc.json) )
27
- @esdoc
28
- @echo -e " $(OK) html built"
29
- endif
30
-
31
- _clean :
32
- @rm -f index.js compat.js
33
- @rm -rf .nyc_output coverage
34
- @echo -e " $( OK) clean"
35
-
36
20
deps :
37
21
@npm install
38
22
@echo -e " $( OK) deps installed"
Original file line number Diff line number Diff line change 1
1
{
2
- "parser" : " babel-eslint" ,
3
2
"parserOptions" : {
4
3
"ecmaVersion" : 9 ,
5
4
"sourceType" : " module"
Original file line number Diff line number Diff line change 1
1
{
2
- "parser" : " babel-eslint" ,
3
2
"parserOptions" : {
4
3
"ecmaVersion" : 9 ,
5
4
"sourceType" : " module" ,
Original file line number Diff line number Diff line change 13
13
" plugin:@typescript-eslint/eslint-recommended" ,
14
14
" plugin:@typescript-eslint/recommended" ,
15
15
" plugin:@typescript-eslint/recommended-requiring-type-checking" ,
16
- " ./eslint_src .json"
16
+ " ./eslint_js .json"
17
17
],
18
18
"rules" : {
19
19
"complexity" : " off" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ DEPS := cached-iterable:CachedIterable
5
5
include ../common.mk
6
6
7
7
lint :
8
- @eslint --config $(ROOT ) /eslint_src .json --max-warnings 0 src/
8
+ @eslint --config $(ROOT ) /eslint_js .json --max-warnings 0 src/
9
9
@eslint --config $(ROOT ) /eslint_test.json --max-warnings 0 test/
10
10
@echo -e " $( OK) lint"
11
11
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ include ../common.mk
6
6
version = $(1 ) @$(shell node -e "\
7
7
console.log(require('../$(1 ) /package.json') .version)")
8
8
9
+ lint :
10
+ @eslint --config $(ROOT ) /eslint_js.json --max-warnings 0 src/
11
+ @eslint --config $(ROOT ) /eslint_test.json --max-warnings 0 test/
12
+ @echo -e " $( OK) lint"
13
+
9
14
test :
10
15
@nyc --reporter=text --reporter=html mocha \
11
16
--recursive --ui tdd \
66
71
@rm -rf .nyc_output coverage
67
72
@echo -e " $( OK) clean"
68
73
69
- lint : _lint
70
- html : _html
74
+ html : ;
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ const regionMatchingLangs = [
52
52
] ;
53
53
54
54
export function getLikelySubtagsMin ( loc : string ) : Locale | null {
55
- if ( likelySubtagsMin . hasOwnProperty ( loc ) ) {
55
+ if ( Object . prototype . hasOwnProperty . call ( likelySubtagsMin , loc ) ) {
56
56
return new Locale ( likelySubtagsMin [ loc ] ) ;
57
57
}
58
58
const locale = new Locale ( loc ) ;
Original file line number Diff line number Diff line change @@ -155,7 +155,10 @@ export function Localized(props: LocalizedProps): ReactElement {
155
155
const childName = childNode . nodeName . toLowerCase ( ) ;
156
156
157
157
// 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
+ ) {
159
162
return childNode . textContent ;
160
163
}
161
164
Original file line number Diff line number Diff line change 10
10
"@babel/preset-env" : " ^7.4.3" ,
11
11
"@typescript-eslint/eslint-plugin" : " ^2.10.0" ,
12
12
"@typescript-eslint/parser" : " ^2.10.0" ,
13
- "babel-eslint" : " ^10.0.1" ,
14
13
"colors" : " ^1.3.3" ,
15
14
"commander" : " ^2.20" ,
16
- "esdoc" : " ^1.1.0" ,
17
- "esdoc-ecmascript-proposal-plugin" : " ^1.0.0" ,
18
- "esdoc-jsx-plugin" : " ^1.0.0" ,
19
- "esdoc-standard-plugin" : " ^1.0.0" ,
20
- "eslint" : " ^5.16.0" ,
21
- "eslint-plugin-mocha" : " ^5.3.0" ,
15
+ "eslint" : " 6.8.x" ,
16
+ "eslint-plugin-mocha" : " 6.3.x" ,
22
17
"esm" : " ^3.2.22" ,
23
18
"fuzzer" : " ^0.2.1" ,
24
19
"gh-pages" : " ^2.0.1" ,
25
20
"intl-pluralrules" : " ^1.0.0" ,
26
- "jsdoc" : " ^3.5.5" ,
27
21
"mocha" : " ^6.1.2" ,
28
22
"nyc" : " ^13.3.0" ,
29
23
"prettyjson" : " ^1.2.1" ,
You can’t perform that action at this time.
0 commit comments