eslint-config-touch4it
v18.2.0
Published
ESLint configuration for ES6+ projects based on XO
Downloads
1,063
Maintainers
Readme
eslint-config-touch4it
ESLint shareable config based on for XO
Install
npm install --save-dev eslint-config-touch4it
Usage
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"
}