Skip to content

Commit

Permalink
use separate ignore files for prettier and eslint (#5009)
Browse files Browse the repository at this point in the history
  • Loading branch information
brian14708 authored May 21, 2022
1 parent f8d4cf3 commit cb3c5ec
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-fishes-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Use separate ignore files for prettier and eslint
4 changes: 2 additions & 2 deletions packages/create-svelte/shared/+eslint+prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"eslint-config-prettier": "^8.3.0"
},
"scripts": {
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
"format": "prettier --write --plugin-search-dir=. ."
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"lint": "eslint --ignore-path .gitignore ."
"lint": "eslint ."
}
}
14 changes: 14 additions & 0 deletions packages/create-svelte/shared/+eslint/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
package.json
pnpm-lock.yaml
package-lock.json
yarn.lock
14 changes: 14 additions & 0 deletions packages/create-svelte/shared/+prettier/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
package.json
pnpm-lock.yaml
package-lock.json
yarn.lock
4 changes: 2 additions & 2 deletions packages/create-svelte/shared/-eslint+prettier/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scripts": {
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. .",
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
"lint": "prettier --check --plugin-search-dir=. .",
"format": "prettier --write --plugin-search-dir=. ."
}
}

0 comments on commit cb3c5ec

Please sign in to comment.