@hidoo/eslint-config
v1.3.1
Published
Shareable config for ESlint.
Downloads
187
Readme
@hidoo/eslint-config
Shareable config for ESlint.
Installation
$ npm install --save-dev eslint @hidoo/eslint-config
Usage
basic
module.exports = {
extends: ['@hidoo/eslint-config']
};
with @babel/eslint-parser
module.exports = {
extends: ['@hidoo/eslint-config', '@hidoo/eslint-config/+babel']
};
with ESLint Stylistic
module.exports = {
extends: ['@hidoo/eslint-config', '@hidoo/eslint-config/+stylistic']
};
with Prettier
module.exports = {
extends: ['@hidoo/eslint-config', '@hidoo/eslint-config/+prettier']
};
with compatibility check
module.exports = {
extends: ['@hidoo/eslint-config', '@hidoo/eslint-config/+compatibility']
};
for Mocha
module.exports = {
extends: ['@hidoo/eslint-config'],
overrides: [
{
files: ['**/*.test.js'],
extends: ['@hidoo/eslint-config/+mocha']
}
]
};
for Node
module.exports = {
extends: ['@hidoo/eslint-config'],
overrides: [
{
files: ['path/to/**/*.js'],
extends: ['@hidoo/eslint-config/+node']
}
]
};
Test
$ pnpm test
License
MIT