4.0.2 • Published 3 years ago

@showbie/eslint-config v4.0.2

Weekly downloads
176
License
ISC
Repository
github
Last release
3 years ago

showbie-eslint-config

npm version

ESLint configuration for Showbie projects.

Usage

Install the conventions by running:

# Ember projects
yarn add -D eslint prettier @showbie/eslint-config eslint-plugin-{ember,hbs}

# React projects
npm i -D eslint prettier @showbie/eslint-config @typescript-eslint/{eslint-plugin,parser} eslint-plugin-{react,react-hooks}

Then add the extends to your .eslintrc.js:

{
  // Ember projects
  extends: ['@showbie', '@showbie/eslint-config/ember'],

  // React projects
  extends: ['@showbie', '@showbie/eslint-config/react'],

  rules: { /* … */ }
}

If Ember or React conventions aren’t required, don’t install the plugins and don’t include the extra extends item.

You’ll probably want to ensure you have a couple of Prettier’s options set as well.

"prettier": {
  "singleQuote": true
}
4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.0.0

3 years ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago