This config is supposed to work with XO or eslint-config-xo.
- 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
yarn add -D eslint-config-lab
# OR: npm install -D eslint eslint-config-lab
In ESLint:
/* package.json */
{
"eslintConfig": {
"extends": ["xo/esnext", "lab"]
}
}
Or in XO:
/* package.json */
{
"xo": {
"extends": "lab"
}
}
It uses eslint-plugin-markdown:
{
"xo": {
"extensions": ["md"]
}
}
Copyright (c) 2018-present, ULIVZ & SHERRY