Package Exports
- eslint-config-lab
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-lab) 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 for 🍷Lab🍷
This config is supposed to work with XO or eslint-config-xo.
Features
- Indent with 2 spaces and no semicolon
- Lint code blocks in Markdown!
- Enforce consistent spacing inside
- Require Following Curly Brace Conventions with
multi
option - Disallow unused expressions
Install
yarn add -D eslint-config-lab
# OR: npm install -D eslint eslint-config-lab
Usage
In ESLint:
/* package.json */
{
"eslintConfig": {
"extends": ["xo/esnext", "lab"]
}
}
Or in XO:
/* package.json */
{
"xo": {
"extends": "lab"
}
}
Lint code blocks in markdown
It uses eslint-plugin-markdown:
{
"xo": {
"extensions": ["md"]
}
}
License
Copyright (c) 2018-present, ULIVZ & SHERRY