Package Exports
- eslint-config-space-single
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-space-single) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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-singleUsage
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"
}{
"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
- 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