1.0.1 • Published 4 years ago

@coralic/eslint-config v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

@coralic/eslint-config

ESLint configuration for typescript projects.

If you don't need Typescript & React, see @coralic/eslint-config-base.

Usage

Install packages

Install the correct versions of each package, which are listed by the command:

yarn info "@coralic/eslint-config@latest" peerDependencies

Then run yarn add --dev <dependency>@<version> for each listed peer dependency.

If using npm 5+, use also this shortcut

npx install-peerdeps --dev @coralic/eslint-config

If using yarn, you can also use the shortcut described above if you have npm 5+ installed on your machine, as the command will detect that you are using yarn and will act accordingly.

Configure ESLint

Create a .eslintrc file in the root of your project's directory (it should live where package.json does). Your .eslintrc file should look like this:

{
  "extends": ["@coralic/eslint-config"]
}

Configure Prettier

Create .prettierrc.js and add the following:

module.exports = require("@coralic/eslint-config-base/lib/prettier-config");