0.15.5 • Published 4 years ago
eslint-config-berry v0.15.5
eslint-config-berry
An ESLint preset named berry!
PS If you feel like it, you can add the following to your README:
Usage:
First, installed the required packages:
npm i -D eslint eslint-config-berryNormal CJS/ES5
Then, use the following in your .eslintrc file:
{
"extends": "berry"
}For a looser version with less errors and more warnings:
{
"extends": "berry/loose"
}Berry loose indeed.
ECMA Modules
For ESM, use:
{
"extends": "berry/module"
}This requires @babel/eslint-parser and @babel/core to be installed for the latest ESM syntax, so go on and install it:
npm i @babel/core @babel/eslint-parser --save-devNote: @babel/eslint-parser requires @babel/core@>=7.2.0 and a valid Babel configuration file to run. If you do not have this already set up, please see the Babel Usage Guide.
If you're the lazy kind, here's a .babelrc.json to get you started:
{
"presets": [
"@babel/env",
]
}NOTE:
IT MUST BE .babelrc.json, and nothing else (not even .babelrc!).
Otherwise, it would break.
License
MIT