Skip to content

chore: move prettier and eslint configs under package.json#7145

Merged
balazsorban44 merged 3 commits intonextauthjs:mainfrom
SauravMaheshkar:main
Apr 4, 2023
Merged

chore: move prettier and eslint configs under package.json#7145
balazsorban44 merged 3 commits intonextauthjs:mainfrom
SauravMaheshkar:main

Conversation

@SauravMaheshkar
Copy link
Copy Markdown
Contributor

☕️ Reasoning

Changes proposed by this PR can be summarised as follows :-

  • Move the content from .prettierrc under the prettier key in package.json. Source(prettier docs)
  • Move the content from .eslintrc.js under the eslintConfig key in package.json. Source(eslint docs)
  • Move the content from .eslintignore under the eslintIgnore key in package.json. Source(eslint docs)

Doing so, would lead to a more minimal project structure without any functional change.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ❌ Failed (Inspect) Apr 4, 2023 11:38am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Apr 4, 2023 11:38am

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 4, 2023

@SauravMaheshkar is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

@balazsorban44 balazsorban44 changed the title chore: move prettier and eslint configuration under package.json chore: move prettier and eslint configs under package.json Apr 4, 2023
@balazsorban44 balazsorban44 merged commit ff48050 into nextauthjs:main Apr 4, 2023
@balazsorban44
Copy link
Copy Markdown
Member

Thanks, @SauravMaheshkar! Do you know if https://github.com/nextauthjs/next-auth/blob/main/.prettierignore could also be moved for completeness? 🤔

This is picked up correctly by VSCode, right? I did merge it in good faith. If it breaks though, we might have to revert...

@SauravMaheshkar
Copy link
Copy Markdown
Contributor Author

Sadly there isn't. I really would've liked that though. I think we could raise a issue over at Prettier. Eslint supports, why not prettier 🤷🏽‍♂️ .

Source: Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants