项目作者: touch4it

项目描述 :
ESLint configuration for ES6+ projects based on XO
高级语言: JavaScript
项目地址: git://github.com/touch4it/eslint-config-touch4it.git
创建时间: 2019-11-12T11:23:40Z
项目社区:https://github.com/touch4it/eslint-config-touch4it

开源协议:

下载


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

  1. npm install --save-dev eslint-config-touch4it

Usage

Built for ES2019+

Add some ESLint config to your package.json:

  1. {
  2. "name": "my-awesome-project",
  3. "eslintConfig": {
  4. "extends": "touch4it"
  5. }
  6. }

Or to .eslintrc:

  1. {
  2. "extends": "touch4it"
  3. }

touch4it/node for Node.js projects:

  1. {
  2. "extends": "touch4it/node"
  3. }

touch4it/mocha for Mocha-tested projects:

  1. {
  2. "extends": [
  3. "touch4it/node",
  4. "touch4it/mocha"
  5. ]
  6. }

touch4it/jsdoc for JSDoc-documented projects:

  1. {
  2. "extends": [
  3. "touch4it/node",
  4. "touch4it/jsdoc"
  5. ]
  6. }

touch4it/sails for Sails.js projects:

  1. {
  2. "extends": "touch4it/sails"
  3. }

Default Node configuration is written for ESM, however you can still use touch4it/commonjs for CommonJS projects:

  1. {
  2. "extends": [
  3. "touch4it/node",
  4. "touch4it/commonjs"
  5. ]
  6. }

And touch4it/browser for browser:

  1. {
  2. "extends": "touch4it/browser"
  3. }

License

ISC © Touch4IT