Socket
Book a DemoInstallSign in
Socket

eslint-config-seasoned

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-seasoned

Eslint configuration for our company

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Installation

yarn add -D eslint-config-seasoned

You may also need to install aditions dependencies if yarn complains, such as:

yarn add -D eslint-config-airbnb-base eslint-config-universe

Setup

create a .eslintrc.js file to the root of the app with the following content:

module.exports = {
    extends: 'eslint-config-seasoned',
}

To avoid conflicts, delete your own .prettierrc. You can still overwrite your eslint rules if you want to change the way prettier behaves by it to .eslintrc.js like so:

rules: {
  'global-require': 2,
  'prettier/prettier': ['error', { jsxBracketSameLine: false }],
}

You can still overwrite the env, globals and parser in your local .eslintrc.js. But if you keep doing so, consider opening an issue or Pull Request at eslint-config-seasoned with your proposal.

ESLint and Prettier

  • This ESLint configuration should work together with prettier, thanks to eslint-plugin-prettier

  • For better development experience, use it with prettier-atom plugin.

Keywords

eslint

FAQs

Package last updated on 05 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts