eslint-config-space-single
Sharable ESLint config, based on xo-space, but with single quotes + some additional settings.
Install
$npm install --save-dev eslint-config-space-single
Usage
Add some ESLint config to your package.json
:
Or to .eslintrc
:
Supports parsing ES6+, but this is not the default.
This package also exposes eslint-config-space-single/esnext
if you want ES6+ rules:
And eslint-config-space-single/browser
if you're in the browser:
Some Helpers
package.json scripts
Here are some package.json snippets I use to harmonize handling of eslinting across projects:
"scripts":
Then just run e.g. yarn lint:src:fix
or npm run lint:src:fix
.
Related Projects
- eslint-config-xo-space: ESLint shareable config for XO with 2-space indent | homepage
- eslint: An AST-based pattern checker for JavaScript. | homepage
About
Author
Stefan Walther
License
MIT