Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-jameslnewell

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-jameslnewell

ESLint config for common gotch'yas for different JS environments.

  • 3.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43
decreased by-43.42%
Maintainers
2
Weekly downloads
 
Created
Source

eslint-config-jameslnewell

ESLint config for common gotch'yas for different JS environments.

Note: I think formatting code is important (find out why here) but nowdays I'm using prettier to take care of formatting code for me.

Installation

npm install --save eslint-config-jameslnewell

Usage

In the root of your project, create a .eslintrc file with the following contents:

{
  "extends": "jameslnewell/<env>"
}

Now run eslint on your script files:

eslint **/*.js

Configurations

jameslnewell/es5

Linting rules for ES5.

jameslnewell/es6

Linting rules for ES6.

jameslnewell/es

Linting rules for latest language features.

jameslnewell/react

Linting rules for ES6 and react.

jameslnewell/node

Linting rules for node v4.

Partial configurations

jameslnewell/test

Relax rules with useful behaviour for testing.

jameslnewell/debug

Relax rules with useful behaviour for debugging.

Change log

3.0.0-preview.*

  • break: removed all rules that enforced formatting
  • break: switch jameslnewell/test from mocha to jest
  • break: removed rules already configured in eslint:recommended

I bumped the major version because lots of people were using the preview.

2.0.0-preview.*

  • break: use webpack config for resolution of imports
  • break: moved mocha rules to the test configuration
  • break: turned on a whole heap of new import, reactandmocha` rules
  • break: using babel-eslint to support class properties

I bumped the major version because lots of people were using the preview.

1.0.0-preview.*

  • break: migrate to eslint v2

0.5.1

  • fix: moved eslint-plugin-mocha from devDependencies to dependencies

0.5.0

  • add: added eslint-plugin-mocha to prevent .only() slipping through

Keywords

FAQs

Package last updated on 04 Jan 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

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