New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-iamturns

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-iamturns

ESLint rules for my projects

  • 1.6.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-config-iamturns

ESLint rules for my projects.

Combination of Airbnb JavaScript Style Guide for linting, and Prettier for automatic code formatting.

Supports modern JavaScript: es2018, modules, jsx, jest, etc.

Table of Contents

Installation

Install eslint-config-iamturns and required peer dependencies:

npx install-peerdeps --dev eslint-config-iamturns

Within your ESLint config file:

module.exports = {
  extends: ["iamturns"],
  rules: {},
}

See generator-iamturns-js for example setup.

Prettier

This project assumes you are using Prettier, which automatically handles most of the style-based linting rules.

Plugins

The following ESLint plugins may also be installed. They will be automatically detected and configured for you.

FAQ

Why do I need to install ESLint plugins myself?

ESLint only loads plugins relative to your project (see eslint/eslint#10643). Unfortunately this means you must install all ESLint plugins as dependencies within your project.

I do not require all the enabled features (es2018, jest, etc)

Many ESLint features have been enabled to reduce the need for any additional configuration within projects extending this ESLint config.

This may come at a very small speed penalty. If this becomes a problem, you can disable the features within eslintrc.js.

Why use Prettier? Why not just use ESLint alone?

  1. ESLint will complain your line is too long, but Prettier will format your code and fix it.
  2. Prettier will automatically format other files too (CSS, SCS, Markdown, JSON, YAML, etc).

Roadmap

Contributing

See CONTRIBUTING.md.

Maintaining

See MAINTAINING.md.

Author

Matt Turnbull <matt@iamturns.com>

License

Open source software licensed as MIT.

FAQs

Package last updated on 17 Sep 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc