1.0.1 • Published 1 year ago

@tokilabs/eslint-config v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Shared Prettier configuration

This is Toki Labs shared ESLint configuration and it changes some of the default behavior.

Integrate into new project

1. Install this package as devDependency

# with Yarn
$ yarn add -D @tokilabs/eslint-config

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

# with pnpm
$ pnpm add -D @tokilabs/eslint-config

2. Install peer dependencies

The configuration requires some packages (including eslint) to work. You should install them in your project as devDependencies.

To do that, you can make use of the tool install-peerdeps:

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

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

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

3. Configure your project

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

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