1.5.1 • Published 4 years ago

@rektangel/eslint-config v1.5.1

Weekly downloads
21
License
MIT
Repository
github
Last release
4 years ago

ESLint Config

This is for projects with TypeScript, Prettier and React.

Installation

To be able to use this config we need to install prettier and eslint together with plugins and rules sets. We can do that with one command.

npx install-peerdeps @rektangel/eslint-config --dev --yarn

This will install all required dependencies as devDependencies in your project. At the moment everything is included here and if you know what you are doing you can install just the ones you need manually. For example if you are not using React you can skip the eslint-plugin-react.

The above command will install all peer-deps together with the actual package (this package, you are reading about). If you want to install it yourself you can do that with:

yarn add --dev @rektangel/eslint-config

When the config is installed we need to enable it. Add this property to your package.json:

{
  "eslintConfig": {
    "extends": "@rektangel/eslint-config"
  }
}

You also need to set some prettier rules. Create a .prettierrc file in the root directory and add this:

{
  "singleQuote": true
}

Usage

Enable eslint linting in your IDE and/or run yarn run eslint ./ --ext .ts,.tsx,.js in the terminal.

1.5.1

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.0

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago