0.1.11 • Published 3 years ago
@inelo/eslint-config-angular v0.1.11
Shareable style-guide
Package to lint and prettify them all
Overview
This configuration includes eslint, prettier for the all projects who need them ;)
Usage
- Install:
yarn add -D @inelo/eslint-config-angular
npx ng add @angular-eslint/schematicsor when we'll developing package without publish to npm
yarn link "@inelo/eslint-config-angular"- Create or modify an
.eslintrc.jsonfile in your project root and add:
{
"extends": ["@inelo/eslint-config-angular"],
"root": true,
...
}- Create a
.prettierrc.jsfile 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
...