0.1.6 • Published 8 months ago

@red-to-blue/lint-config-angular v0.1.6

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

lint-config-angular

Collection of config files for frontend angular apps

Getting started

eslint + prettier config

  1. all neccessary packages are added as dependencies to this package you can remove all eslint/prettier packages from your project's package.json files
  2. install package
   npm i @red-to-blue/lint-config-angular
  1. create .prettierrc.cjs file with :

const packagePrettierConfig = require('@red-to-blue/lint-config-angular/prettier');

module.exports = packagePrettierConfig
  1. add eslint.config.js file 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 
];