ESLint shareable config based on for XO
npm install --save-dev eslint-config-touch4it
Built for ES2019+
Add some ESLint config to your package.json
:
{
"name": "my-awesome-project",
"eslintConfig": {
"extends": "touch4it"
}
}
Or to .eslintrc
:
{
"extends": "touch4it"
}
touch4it/node
for Node.js projects:
{
"extends": "touch4it/node"
}
touch4it/mocha
for Mocha-tested projects:
{
"extends": [
"touch4it/node",
"touch4it/mocha"
]
}
touch4it/jsdoc
for JSDoc-documented projects:
{
"extends": [
"touch4it/node",
"touch4it/jsdoc"
]
}
touch4it/sails
for Sails.js projects:
{
"extends": "touch4it/sails"
}
Default Node configuration is written for ESM, however you can still use touch4it/commonjs
for CommonJS projects:
{
"extends": [
"touch4it/node",
"touch4it/commonjs"
]
}
And touch4it/browser
for browser:
{
"extends": "touch4it/browser"
}