-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
🎉 Hacktoberfest 🍻Hacktoberfest-friendly issues, great for newcomers.Hacktoberfest-friendly issues, great for newcomers.
Description
Brief
Currently, cryptid-js has absolutely no linting or formatting rules: you can freely write code any way you want, commit it and push it. No restrictions, no checks. You can use tabs in one file and spaces in another (the horror! 😢).
To improve upon this situation, we should set up a linting and formatting toolchain using eslint (https://eslint.org/) and prettier (https://prettier.io/).
Task
- Create the
lintandlint:fixscripts in the package.json.- Obviously,
lint:fixshould run the linter with the--fixflag.
- Obviously,
- Configure eslint and prettier.
- Please use separeate files, do not pollute the package.json with this configuration.
- Please be aware, that cryptid-js is isomorphic: clients can use it on both the client-side and the server-side. The linting configuration should be aware of this scenario.
Settings for Prettier
Please use the following settings for prettier:
{
"singleQuote": true,
"printWidth": 120,
"semi": false
}Metadata
Metadata
Assignees
Labels
🎉 Hacktoberfest 🍻Hacktoberfest-friendly issues, great for newcomers.Hacktoberfest-friendly issues, great for newcomers.