Skip to content

emmatown/eslint-plugin-fix-deps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-fix-deps

An ESLint plugin to add dependencies to packages in monorepos using Bolt or Yarn Workspaces with bolt-check

Installing

yarn add eslint-plugin-fix-deps

Getting started

Make your eslint config look kind of like this

module.exports = {
  plugins: ["fix-deps"],
  rules: {
    "fix-deps/no-extraneous-dependencies": ["error", { projectDir: __dirname }]
  }
};

Credit/Inspiration

@Noviny told me that @lukebatchelor was going to write a script to add dependencies to package.jsons in monorepos that apply Bolt's constraints and I wanted that behaviour as an ESLint rule so I wrote this.

Most of the code here is from eslint-plugin-import and some from get-workspaces

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published