1.5.8 • Published 5 years ago

@rithmi/eslint-config-rithmi v1.5.8

Weekly downloads
22
License
MIT
Repository
-
Last release
5 years ago

ESLint and Prettier Config

npm version

Installing

Before installing this package, make sure the project has a package.json file.

You can install everything needed by this config by running the following command.

npx install-peerdeps --dev eslint-config-rithmi

Create a .eslintrc file in the root of the project's directory (where the package.json file is). The .eslintrc file should look like this:

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

Integrate with VS Code

If you are using VS Code, you can use follow these instructions to configure the editor to lint and fix the code automatically.

  1. Install de ESLint Package
  2. Add the following VS Code settings on the editor's settings.json file:
"editor.formatOnSave": true,
// turn it off for JS, we will do this via eslint
"[javascript]": {
  "editor.formatOnSave": false
},
"[typescript]": {
  "editor.formatOnSave": false
},
"[typescriptreact]": {
  "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": [
  "js"
],
1.5.8

5 years ago

1.5.7

5 years ago

1.4.7

6 years ago

1.4.6

6 years ago

1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago