eslint-config-udes
ESLint shareable config for the UdeS JavaScript style guide
Last updated 3 months ago by ranb2002 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-config-udes 
SYNC missed versions from official npm registry.

eslint-config-udes

CircleCI Greenkeeper badge npm

ESLint shareable config for the UdeS JavaScript style guide.

Installation

$ npm install eslint-config-udes --save-dev

Our default export use some plugins that you need to install as well:

$ npm install prettier eslint-plugin-prettier eslint-plugin-json-format eslint-plugin-markdown --save-dev

Usage (by default)

  • Add the extends attribute to your .eslintrc.js:
module.exports = {
  // Extends the UdeS ESLint config
  extends: 'eslint-config-udes',

  // Limit ESLint to a specific project
  root: true,
};

Scripts

  • Add the wanted scripts to your package.json:
{ 
  "scripts": {
    "format": "eslint . --ext js,json,md --fix",
    "lint": "eslint . --ext js,json,md"
  }
}

Supported languages/frameworks

  • If you use one of the supported language/framework, you should use the corresponding extends in your .eslintrc.js:
module.exports = {
  // Extends the UdeS ESLint config for lit-html application
  extends: 'eslint-config-udes/lit-html',

  // Extends the UdeS ESLint config for Polymer 2 application
  extends: 'eslint-config-udes/polymer-2',

  // Extends the UdeS ESLint config for Node.js 12 application
  extends: 'eslint-config-udes/node-12',

  // Extends the UdeS ESLint config for React application and element
  extends: 'eslint-config-udes/react',
};

Installation

As these extends use other plugins, you may need to install additionnal devDependencies:

  # lit-html
  $ npm install babel-eslint eslint-plugin-html eslint-plugin-lit --save-dev
  
  # Polymer 2
  $ npm install eslint-plugin-html --save-dev

  # React
  $ npm install eslint-plugin-react --save-dev

License

The MIT License (MIT)

Current Tags

  • 0.3.0                                ...           latest (3 months ago)

10 Versions

  • 0.3.0                                ...           3 months ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 1
This Month 3
Last Day 1
Last Week 2
Last Month 18
Dependencies (2)
Dev Dependencies (6)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |