27
loading...
This website collects cookies to deliver better user experience
.editorconfig
file comes into the picture. The settings that you have added to this file will ultimately be used by all the other code editors. So if you have this in your project, and someone then clones your project, they will also get a copy of this file that has all the editor settings, and if they have set indent style to spaces and you have set it to tabs then for this project, tabs will be used for indentation. root = true
[*]
indent_style = tab
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
git status
in your terminal. 🥂node_modules/
/node_modules/
**.DS_Store*
ehthumbs.db
package.json
file:{
"scripts": {
"format": "prettier --write \"./**/*.{js,json}\"",
},
}
npm run format
. If you carefully look at the script, you will notice that it actually contains a regular expression. You can modify it to include all the different file types you want to format..prettierrc.json
file, you define all the Prettier-related configurations. So if you run npm run format
now, Prettier is going to follow this configs. ⚡️{
"trailingComma": "none",
"singleQuote": true,
"printWidth": 60,
"useTabs": true,
"tabWidth": 4,
"semi": true
}
package-lock.json
file. Well, because I don’t need it in production.package-lock=false
npx license [license_name]
# for instance, npx license MIT
npx conduct
changelog.md
file. So if anyone is using your tool, they can read this file and know instantly what exactly changed across a version. 💻### v1.1.0
Fixed bug _____
Improve code of ____
Implemented feature ____
### v1.0.0
Implemented feature x that does ___
Implemented feature y that does ___
Implemented feature z that does ___