Skip to content

touch4it/eslint-config-touch4it

Repository files navigation

eslint-config-touch4it

npm peer dependency version (scoped) GitHub license npm version node version vulnerabilities last commit

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"
}

License

ISC © Touch4IT