0.3.11 • Published 5 years ago

eslint-config-space-single v0.3.11

Weekly downloads
28
License
MIT
Repository
github
Last release
5 years ago

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.

Related Projects

About

Author

Stefan Walther

License

MIT

0.3.11

5 years ago

0.3.10

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago