Shareable style-guide
Package to lint and prettify them all
Overview
This configuration includes eslint
, prettier
for the all projects who need them ;)
Usage
yarn add -D @inelo/eslint-config-angular
npx ng add @angular-eslint/schematics
or when we'll developing package without publish to npm
yarn link "@inelo/eslint-config-angular"
- Create or modify an
.eslintrc.json
file in your project root and add:
{
"extends": ["@inelo/eslint-config-angular"],
"root": true,
...
}
- Create a
.prettierrc.js
file in your project root and add:
const prettier = require("@inelo/eslint-config-angular/prettier");
module.exports = prettier;
- Add Fix Lint and Prettier errors command in package.json
{
"scripts": {
"lint": "ng lint",
"lint:fix": "ng lint --fix"
}
}
Settings screen for editors
Intelij/Webstorm

VSCode
...