Socket
Book a DemoInstallSign in
Socket

eslint-config-space-single

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-space-single

Sharable ESLint config, based on xo-space, but with single quotes + some additional settings.

latest
Source
npmnpm
Version
0.3.11
Version published
Weekly downloads
380
-35.7%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-space-single

Sharable ESLint config, based on xo-space, but with single quotes + some additional settings.

NPM version David CircleCI codecov XO code style

Install

$npm install --save-dev eslint-config-space-single

Usage

Add some ESLint config to your package.json:

{
  "name": "my-awesome-project",
  "eslintConfig": {
    "extends": "eslint-config-space-single"
  }
}

Or to .eslintrc:

{
  "extends": "eslint-config-space-single"
}

Supports parsing ES6+, but this is not the default.

This package also exposes eslint-config-space-single/esnext if you want ES6+ rules:

{
  "extends": "eslint-config-space-single/esnext"
}

And eslint-config-space-single/browser if you're in the browser:

{
  "extends": "eslint-config-space-single/browser"
}

Test configuration:

{
  "extends": "eslint-config-space-single/test"
}

Some Helpers

package.json scripts

Here are some package.json snippets I use to harmonize handling of eslinting across projects:

"scripts": {
  "lint": "eslint src && eslint test",
  "lint:fix": "eslint src --fix && eslint test --fix",
  "lint:src": "eslint src",
  "lint:src:fix": "eslint src --fix",
  "lint:test": "eslint test",
  "lint:text:fix": "eslint test --fix"
}

Then just run e.g. yarn lint:src:fix or npm run lint:src:fix.

About

Author

Stefan Walther

License

MIT

Keywords

eslint

FAQs

Package last updated on 21 Dec 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