1.0.1 • Published 3 years ago

@magniandtude/eslint-config v1.0.1

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

@magniandtude/eslint-config

ESLint configuration for typescript projects.

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

Usage

Install packages

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

yarn info "@magniandtude/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 @magniandtude/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": ["@magniandtude/eslint-config"]
}

Configure Prettier

Create .prettierrc.js and add the following:

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

3 years ago

1.0.1

3 years ago