9.1.0 • Published 20 days ago

@clickbar/eslint-config v9.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
20 days ago

eslint-config-clickbar

Opinionated eslint set of rules with support for Vue and PHP. This also includes prettier.

Usage

Install dependencies.

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

Add these keys to your package.json:

"scripts": {
  "lint": "eslint .",
  "lint:fix": "eslint . --fix"
},
"eslintConfig": {
  "extends": ["@clickbar"]
}

With VS Code (courtesy of Wes Bos)

You should read this entire thing. Serious!

Once you have done one, or both, of the above installs. You probably want your editor to lint and fix for you. Here are the instructions for VS Code:

  1. Install the ESLint package
  2. Now we need to setup some VS Code settings via Code/FilePreferencesSettings. It's easier to enter these settings while editing the settings.json file, so click the {} icon in the top right corner:
  // These are all my auto-save configs
"editor.formatOnSave": true,
// turn it off for JS and JSX, we will do this via eslint
"[javascript]": {
  "editor.formatOnSave": false
},
"[javascriptreact]": {
  "editor.formatOnSave": false
},
// tell the ESLint plugin to run on save
"eslint.autoFixOnSave": true,
// Optional BUT IMPORTANT: If you have the prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already
"prettier.disableLanguages": ["javascript", "javascriptreact"],

License

MIT

9.1.0

20 days ago

9.0.3

1 month ago

9.0.2

2 months ago

9.0.1

3 months ago

9.0.0

3 months ago

8.0.15

3 months ago

8.0.14

4 months ago

8.0.13

4 months ago

8.0.12

4 months ago

8.0.11

4 months ago

8.0.10

4 months ago

8.0.9

5 months ago

8.0.8

5 months ago

8.0.7

5 months ago

8.0.6

6 months ago

8.0.5

6 months ago

8.0.4

6 months ago

7.1.1

8 months ago

7.1.0

8 months ago

7.0.5

10 months ago

5.0.4

11 months ago

6.0.1

11 months ago

6.0.0

11 months ago

6.0.2

11 months ago

6.0.4

11 months ago

7.0.0

10 months ago

7.0.4

10 months ago

7.0.3

10 months ago

7.0.2

10 months ago

7.0.1

10 months ago

8.0.1

8 months ago

8.0.0

8 months ago

8.0.3

7 months ago

8.0.2

8 months ago

5.0.3

11 months ago

5.0.2

11 months ago

5.0.1

11 months ago

5.0.0

12 months ago

4.2.0

1 year ago

4.1.4

1 year ago

4.1.3

1 year ago

4.1.5

1 year ago

4.1.2

1 year ago

4.0.16

2 years ago

4.0.15

2 years ago

4.0.14

2 years ago

4.0.10

2 years ago

4.0.12

2 years ago

4.0.11

2 years ago

4.0.13

2 years ago

4.0.9

2 years ago

4.0.8

2 years ago

4.0.0-beta.1

2 years ago

4.0.5

2 years ago

4.0.4

2 years ago

4.0.6

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

4.0.3

2 years ago

4.0.2

2 years ago

3.0.0

4 years ago

2.1.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago