Skip to content

Commit 3fca74f

Browse files
committed
fix: always lint all js-ish extensions
1 parent 37e9e0e commit 3fca74f

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

lib/content/package-json.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "GitHub Inc.",
33
"files": {{{ json distPaths }}},
44
"scripts": {
5-
"lint": "{{#if eslint}}eslint \"**/*.js\"{{else}}echo linting disabled{{/if}}",
5+
"lint": "{{#if eslint}}eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"{{else}}echo linting disabled{{/if}}",
66
"postlint": "template-oss-check",
77
"template-oss-apply": "template-oss-apply --force",
88
"lintfix": "{{ localNpmPath }} run lint -- --fix",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"template-oss-release-manager": "bin/release-manager.js"
1111
},
1212
"scripts": {
13-
"lint": "eslint \"**/*.js\"",
13+
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
1414
"lintfix": "npm run lint -- --fix",
1515
"posttest": "npm run lint",
1616
"snap": "tap",

tap-snapshots/test/apply/source-snapshots.js.test.cjs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ package.json
16321632
"name": "testpkg",
16331633
"version": "1.0.0",
16341634
"scripts": {
1635-
"lint": "eslint /"**/*.js/"",
1635+
"lint": "eslint /"**/*.{js,cjs,ts,mjs,jsx,tsx}/"",
16361636
"postlint": "template-oss-check",
16371637
"template-oss-apply": "template-oss-apply --force",
16381638
"lintfix": "npm run lint -- --fix",
@@ -3716,7 +3716,7 @@ package.json
37163716
"workspaces/b"
37173717
],
37183718
"scripts": {
3719-
"lint": "eslint /"**/*.js/"",
3719+
"lint": "eslint /"**/*.{js,cjs,ts,mjs,jsx,tsx}/"",
37203720
"postlint": "template-oss-check",
37213721
"template-oss-apply": "template-oss-apply --force",
37223722
"lintfix": "npm run lint -- --fix",
@@ -3863,7 +3863,7 @@ workspaces/a/package.json
38633863
"name": "a",
38643864
"version": "1.0.0",
38653865
"scripts": {
3866-
"lint": "eslint /"**/*.js/"",
3866+
"lint": "eslint /"**/*.{js,cjs,ts,mjs,jsx,tsx}/"",
38673867
"postlint": "template-oss-check",
38683868
"template-oss-apply": "template-oss-apply --force",
38693869
"lintfix": "npm run lint -- --fix",
@@ -3943,7 +3943,7 @@ workspaces/b/package.json
39433943
"name": "b",
39443944
"version": "1.0.0",
39453945
"scripts": {
3946-
"lint": "eslint /"**/*.js/"",
3946+
"lint": "eslint /"**/*.{js,cjs,ts,mjs,jsx,tsx}/"",
39473947
"postlint": "template-oss-check",
39483948
"template-oss-apply": "template-oss-apply --force",
39493949
"lintfix": "npm run lint -- --fix",
@@ -5555,7 +5555,7 @@ workspaces/a/package.json
55555555
"name": "a",
55565556
"version": "1.0.0",
55575557
"scripts": {
5558-
"lint": "eslint /"**/*.js/"",
5558+
"lint": "eslint /"**/*.{js,cjs,ts,mjs,jsx,tsx}/"",
55595559
"postlint": "template-oss-check",
55605560
"template-oss-apply": "template-oss-apply --force",
55615561
"lintfix": "npm run lint -- --fix",
@@ -5635,7 +5635,7 @@ workspaces/b/package.json
56355635
"name": "b",
56365636
"version": "1.0.0",
56375637
"scripts": {
5638-
"lint": "eslint /"**/*.js/"",
5638+
"lint": "eslint /"**/*.{js,cjs,ts,mjs,jsx,tsx}/"",
56395639
"postlint": "template-oss-check",
56405640
"template-oss-apply": "template-oss-apply --force",
56415641
"lintfix": "npm run lint -- --fix",

tap-snapshots/test/check/snapshots.js.test.cjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The module file package.json needs to be updated:
7373
"lib/"
7474
]
7575
"scripts" is missing, expected {
76-
"lint": "eslint /"**/*.js/"",
76+
"lint": "eslint /"**/*.{js,cjs,ts,mjs,jsx,tsx}/"",
7777
"postlint": "template-oss-check",
7878
"template-oss-apply": "template-oss-apply --force",
7979
"lintfix": "npm run lint -- --fix",
@@ -325,7 +325,7 @@ The module file package.json needs to be updated:
325325
"lib/"
326326
]
327327
"scripts" is missing, expected {
328-
"lint": "eslint /"**/*.js/"",
328+
"lint": "eslint /"**/*.{js,cjs,ts,mjs,jsx,tsx}/"",
329329
"postlint": "template-oss-check",
330330
"template-oss-apply": "template-oss-apply --force",
331331
"lintfix": "npm run lint -- --fix",
@@ -401,7 +401,7 @@ The module file package.json needs to be updated:
401401
"lib/"
402402
]
403403
"scripts" is missing, expected {
404-
"lint": "eslint /"**/*.js/"",
404+
"lint": "eslint /"**/*.{js,cjs,ts,mjs,jsx,tsx}/"",
405405
"postlint": "template-oss-check",
406406
"template-oss-apply": "template-oss-apply --force",
407407
"lintfix": "npm run lint -- --fix",
@@ -470,7 +470,7 @@ The module file package.json needs to be updated:
470470
"lib/"
471471
]
472472
"scripts" is missing, expected {
473-
"lint": "eslint /"**/*.js/"",
473+
"lint": "eslint /"**/*.{js,cjs,ts,mjs,jsx,tsx}/"",
474474
"postlint": "template-oss-check",
475475
"template-oss-apply": "template-oss-apply --force",
476476
"lintfix": "npm run lint -- --fix",

workspace/test-workspace/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"private": true,
77
"scripts": {
88
"test": "tap",
9-
"lint": "eslint \"**/*.js\"",
9+
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
1010
"postlint": "template-oss-check",
1111
"template-oss-apply": "template-oss-apply --force",
1212
"lintfix": "npm run lint -- --fix",

0 commit comments

Comments
 (0)