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

Commit

Permalink
fix(lint): use double quotes for glob syntax (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored Jan 8, 2021
1 parent 27b9304 commit 2e1aff8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"scripts": {
"lint": "yarn lint:js && yarn lint:style",
"lint:js": "eslint --ext .js,.mjs,.vue .",
"lint:style": "stylelint **/*.{vue,css}",
"lint:js": "eslint --ext \".js,.mjs,.vue\" .",
"lint:style": "stylelint \"**/*.{vue,css}\"",
"test": "ava --verbose",
"test:snapshot": "ava --verbose --update-snapshots"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/cna-template/template/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate",
"lint:js": "eslint --ext .js,.vue --ignore-path .gitignore .",
"lint:style": "stylelint **/*.{vue,css} --ignore-path .gitignore"
"lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .",
"lint:style": "stylelint \"**/*.{vue,css}\" --ignore-path .gitignore"
},
"lint-staged": {
"*.{js,vue}": "eslint",
Expand Down
8 changes: 4 additions & 4 deletions packages/create-nuxt-app/test/snapshots/index.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ Generated by [AVA](https://avajs.dev).
dev: 'nuxt',
generate: 'nuxt generate',
lint: 'yarn lint:js',
'lint:js': 'eslint --ext .js,.vue --ignore-path .gitignore .',
'lint:js': 'eslint --ext ".js,.vue" --ignore-path .gitignore .',
start: 'nuxt start',
},
}
Expand Down Expand Up @@ -1418,8 +1418,8 @@ Generated by [AVA](https://avajs.dev).
dev: 'nuxt',
generate: 'nuxt generate',
lint: 'yarn lint:js && yarn lint:style',
'lint:js': 'eslint --ext .js,.vue --ignore-path .gitignore .',
'lint:style': 'stylelint **/*.{vue,css} --ignore-path .gitignore',
'lint:js': 'eslint --ext ".js,.vue" --ignore-path .gitignore .',
'lint:style': 'stylelint "**/*.{vue,css}" --ignore-path .gitignore',
start: 'nuxt start',
},
}
Expand Down Expand Up @@ -1690,7 +1690,7 @@ Generated by [AVA](https://avajs.dev).
dev: 'nuxt',
generate: 'nuxt generate',
lint: 'yarn lint:style',
'lint:style': 'stylelint **/*.{vue,css} --ignore-path .gitignore',
'lint:style': 'stylelint "**/*.{vue,css}" --ignore-path .gitignore',
start: 'nuxt start',
},
}
Expand Down
Binary file modified packages/create-nuxt-app/test/snapshots/index.test.js.snap
Binary file not shown.

0 comments on commit 2e1aff8

Please sign in to comment.