Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 2e1aff8

Browse files
authored
fix(lint): use double quotes for glob syntax (#684)
1 parent 27b9304 commit 2e1aff8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
},
1111
"scripts": {
1212
"lint": "yarn lint:js && yarn lint:style",
13-
"lint:js": "eslint --ext .js,.mjs,.vue .",
14-
"lint:style": "stylelint **/*.{vue,css}",
13+
"lint:js": "eslint --ext \".js,.mjs,.vue\" .",
14+
"lint:style": "stylelint \"**/*.{vue,css}\"",
1515
"test": "ava --verbose",
1616
"test:snapshot": "ava --verbose --update-snapshots"
1717
},

packages/cna-template/template/nuxt/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"build": "nuxt build",
55
"start": "nuxt start",
66
"generate": "nuxt generate",
7-
"lint:js": "eslint --ext .js,.vue --ignore-path .gitignore .",
8-
"lint:style": "stylelint **/*.{vue,css} --ignore-path .gitignore"
7+
"lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .",
8+
"lint:style": "stylelint \"**/*.{vue,css}\" --ignore-path .gitignore"
99
},
1010
"lint-staged": {
1111
"*.{js,vue}": "eslint",

packages/create-nuxt-app/test/snapshots/index.test.js.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ Generated by [AVA](https://avajs.dev).
12981298
dev: 'nuxt',
12991299
generate: 'nuxt generate',
13001300
lint: 'yarn lint:js',
1301-
'lint:js': 'eslint --ext .js,.vue --ignore-path .gitignore .',
1301+
'lint:js': 'eslint --ext ".js,.vue" --ignore-path .gitignore .',
13021302
start: 'nuxt start',
13031303
},
13041304
}
@@ -1418,8 +1418,8 @@ Generated by [AVA](https://avajs.dev).
14181418
dev: 'nuxt',
14191419
generate: 'nuxt generate',
14201420
lint: 'yarn lint:js && yarn lint:style',
1421-
'lint:js': 'eslint --ext .js,.vue --ignore-path .gitignore .',
1422-
'lint:style': 'stylelint **/*.{vue,css} --ignore-path .gitignore',
1421+
'lint:js': 'eslint --ext ".js,.vue" --ignore-path .gitignore .',
1422+
'lint:style': 'stylelint "**/*.{vue,css}" --ignore-path .gitignore',
14231423
start: 'nuxt start',
14241424
},
14251425
}
@@ -1690,7 +1690,7 @@ Generated by [AVA](https://avajs.dev).
16901690
dev: 'nuxt',
16911691
generate: 'nuxt generate',
16921692
lint: 'yarn lint:style',
1693-
'lint:style': 'stylelint **/*.{vue,css} --ignore-path .gitignore',
1693+
'lint:style': 'stylelint "**/*.{vue,css}" --ignore-path .gitignore',
16941694
start: 'nuxt start',
16951695
},
16961696
}
Binary file not shown.

0 commit comments

Comments
 (0)