README
This module uses Prettier rules for code formatting. It helps to format the code in our project, using already defined rules, in a simple way that can be used in different projects.
See official documentation here.
Compatibility
- npm v7 or higher.
How to use it
To use the library you just need to follow the following steps:
- Install the library with npm
npm i @scastro37/prettier-config
- Create the file config # .prettierrc and import the library:
├── Example Proyect
├── node_modules
├── src
├── package-lock.json
├── package.json
└── .prettierrc
"@scastro37/prettier-config";
- And download prettier extension in vscode.
more information.
Rules contained in this librarymodule.exports = {
printWidth: 120,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: true,
quoteProps: "as-needed",
jsxSingleQuote: false,
trailingComma: "es5",
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: "always",
requirePragma: false,
insertPragma: false,
proseWrap: "preserve",
htmlWhitespaceSensitivity: "css",
endOfLine: "lf",
};
Contributors
The original author and current lead maintainer of this module is the @condor-labs development team.
More about Condorlabs Here.