0.1.6 • Published 8 months ago
@red-to-blue/lint-config-angular v0.1.6
lint-config-angular
Collection of config files for frontend angular apps
Getting started
eslint + prettier config
- all neccessary packages are added as dependencies to this package you can remove all eslint/prettier packages from your project's package.json files
- install package
npm i @red-to-blue/lint-config-angularcreate
.prettierrc.cjsfile with :
const packagePrettierConfig = require('@red-to-blue/lint-config-angular/prettier');
module.exports = packagePrettierConfig- add
eslint.config.jsfile in your project root with the following code
import redToBlueEslintConfig from "@red-to-blue/lint-config-angular/eslint-config";
export default [
...redToBlueEslintConfig,
// here you can add more plugins and/or rules
];