@totominc/eslint-config-javascript v0.1.4
@totominc/eslint-config-javascript
Personal ESLint config for JavaScript projects: AirBnB and Prettier pre-configured.
About this configuration
- Add 
eslint-commentsplugin for better// eslintcomments control. - Add 
airbnb-base(no React/JSX support). - Add Prettier with pre-defined configuration (you can easily edit it in your own 
.eslintrc). 
Installation
Local/per-project installation
Install all peer-dependencies from this package, this includes modules that are required by the
@totominc/eslint-config-javascript:npx install-peerdeps --dev @totominc/eslint-config-javascript@latest --yarnCheck your
package.jsonfor a list of dev-dependencies.Create an
.eslintrc.jsfile configuration for ESLint in the root of your project. Then you can extend the ESLint configuration@totominc/eslint-config-javascript:module.exports = { extends: ['@totominc/javascript'], };
Note: you may want to configure your IDE to automatically fix on save. For VSCode, you can use the
vscode-eslint extension and configure
your settings.json like this:
{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact"
  ]
}Global installation
Install all peer-dependencies from this package, this includes modules that are required by the
@totominc/eslint-config-javascript:npx install-peerdeps --global @totominc/eslint-config-javascript@latest --yarnCreate a global
.eslintrc.jsfile configuration for ESLint in your home folder (e.g.~/.eslintrc.js). Then you can extend one of the provided configurations from@totominc/eslint-config-javascript:module.exports = { extends: ['@totominc/javascript'], };