Skip to content

Commit 432dbb5

Browse files
authored
v7.6.5 (#381)
fix: add back eslint-plugin-prettier (still needed for prettier) - #369 fix: cleanup lint in ProjectsList (was not getting picked up since prettier plugin wasn't loading) - #369
1 parent 9c1af09 commit 432dbb5

6 files changed

Lines changed: 28 additions & 17 deletions

File tree

examples/react-firestore/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"eslint-plugin-jsdoc": "^32.2.0",
6969
"eslint-plugin-jsx-a11y": "^6.4.1",
7070
"eslint-plugin-node": "^11.1.0",
71+
"eslint-plugin-prettier": "^3.4.0",
7172
"eslint-plugin-promise": "^4.3.1",
7273
"eslint-plugin-react": "^7.22.0",
7374
"eslint-plugin-react-hooks": "^4.2.0",

examples/react-firestore/src/routes/Projects/components/ProjectsList/ProjectsList.jsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,9 @@ function useProjectsList() {
2424
.orderBy(FieldPath.documentId())
2525

2626
// Query for projects (loading handled by Suspense in ProjectsList)
27-
const {
28-
data: projects
29-
} = useFirestoreCollectionData(
30-
projectsRef,
31-
{
32-
idField: 'id'
33-
}
34-
)
27+
const { data: projects } = useFirestoreCollectionData(projectsRef, {
28+
idField: 'id'
29+
})
3530

3631
// New dialog
3732
const [newDialogOpen, changeDialogState] = useState(false)

examples/react-firestore/yarn.lock

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7244,6 +7244,13 @@ eslint-plugin-node@^11.1.0:
72447244
resolve "^1.10.1"
72457245
semver "^6.1.0"
72467246

7247+
eslint-plugin-prettier@^3.4.0:
7248+
version "3.4.0"
7249+
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.0.tgz#cdbad3bf1dbd2b177e9825737fe63b476a08f0c7"
7250+
integrity sha512-UDK6rJT6INSfcOo545jiaOwB701uAIt2/dR7WnFQoGCVl1/EMqdANBmwUaqqQ45aXprsTGzSa39LI1PyuRBxxw==
7251+
dependencies:
7252+
prettier-linter-helpers "^1.0.0"
7253+
72477254
eslint-plugin-promise@^4.3.1:
72487255
version "4.3.1"
72497256
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-4.3.1.tgz#61485df2a359e03149fdafc0a68b0e030ad2ac45"
@@ -7839,6 +7846,11 @@ fast-deep-equal@^3.1.1:
78397846
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz#545145077c501491e33b15ec408c294376e94ae4"
78407847
integrity sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==
78417848

7849+
fast-diff@^1.1.2:
7850+
version "1.2.0"
7851+
resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03"
7852+
integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==
7853+
78427854
fast-glob@^3.1.1:
78437855
version "3.2.4"
78447856
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.4.tgz#d20aefbf99579383e7f3cc66529158c9b98554d3"
@@ -13321,6 +13333,13 @@ prepend-http@^2.0.0:
1332113333
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
1332213334
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
1332313335

13336+
prettier-linter-helpers@^1.0.0:
13337+
version "1.0.0"
13338+
resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b"
13339+
integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==
13340+
dependencies:
13341+
fast-diff "^1.1.2"
13342+
1332413343
prettier@^2.2.1:
1332513344
version "2.2.1"
1332613345
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"

generators/app/templates/_package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"eslint-plugin-jsdoc": "^32.2.0",
7575
"eslint-plugin-jsx-a11y": "^6.4.1",
7676
"eslint-plugin-node": "^11.1.0",
77+
"eslint-plugin-prettier": "^3.4.0",
7778
"eslint-plugin-promise": "^4.3.1",
7879
"eslint-plugin-react": "^7.22.0",
7980
"eslint-plugin-react-hooks": "^4.2.0",

generators/app/templates/src/routes/Projects/components/ProjectsList/ProjectsList.jsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,9 @@ function useProjectsList() {
4040
.orderBy(FieldPath.documentId())
4141

4242
// Query for projects (loading handled by Suspense in ProjectsList)
43-
const {
44-
data: projects
45-
} = useFirestoreCollectionData(
46-
projectsRef,
47-
{
48-
idField: 'id'
49-
}
50-
)<% } %><% if (!includeRedux && !includeFirestore) { %>
43+
const { data: projects } = useFirestoreCollectionData(projectsRef, {
44+
idField: 'id'
45+
})<% } %><% if (!includeRedux && !includeFirestore) { %>
5146
// Create a ref for projects owned by the current user
5247
const database = useDatabase()
5348
const { ServerValue } = useDatabase

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-react-firebase",
3-
"version": "7.6.4",
3+
"version": "7.6.5",
44
"description": "React and Firebase project generator (with option for Redux).",
55
"main": "generators/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)