Skip to content

iden3/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shared ESLint configuration for js projects

This is shared iden3 ESLint configuration.

Integrate into new project

  1. Install this package as devDependency
# with Yarn
$ yarn add -D @iden3/eslint-config

# with npm
$ npm i -D @iden3/eslint-config

# with pnpm
$ pnpm add -D @iden3/eslint-config
  1. Install peer dependencies of this package in your project as devDependencies

Therefore, you can make use of the tool install-peerdeps:

# with Yarn
$ yarn dlx install-peerdeps --dev @iden3/eslint-config

# with npm
$ npx install-peerdeps --dev @iden3/eslint-config

#with pnpm
$ pnpm dlx install-peerdeps --dev @iden3/eslint-config

Instead, you can do this manually by adding all entries part of the peerDependencies property (see package.json).

  1. Use ESLint config in your project

Create a .eslintrc.js file in project root with the following content:

module.exports = {
  extends: ["@iden3/eslint-config"],
};

About

Shared ESLint and Prettier config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published