@cordova/eslint-config
Cordova ESLint Config
Last updated 2 months ago by erisu .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @cordova/eslint-config 
SYNC missed versions from official npm registry.

@cordova/eslint-config

This repository centralizes the ESLint configuration used for Cordova's development.

Installation

@cordova/eslint-config comes with all plugins configs and even eslint itself. So all you need to do to get started is:

npm i -D @cordova/eslint-config

Usage

# In package.json
{
  "scripts": {
    "lint": "eslint ."
  }
}
# In .eslintrc.yml
root: true

extends: '@cordova/eslint-config/node'

overrides:

- files: [spec/**/*.js]
  extends: '@cordova/eslint-config/node-tests'

- files: [cordova-js-src/**/*.js]
  extends: '@cordova/eslint-config/browser'

Reference

This package exposes the following shareable ESLint configurations:

@cordova/eslint-config/node (or simply @cordova)

For linting scripts intended to be run with Node.js.

@cordova/eslint-config/node-tests

For linting Jasmine tests of Cordova's Node.js scripts.

@cordova/eslint-config/browser

For linting cordova-style CommonJS modules intended to be run in the browser (before they are bundled).

@cordova/eslint-config/browser-tests

For linting Jasmine tests of Cordova's browser code.

Current Tags

  • 3.0.0                                ...           latest (2 months ago)

3 Versions

  • 3.0.0                                ...           2 months ago
  • 2.0.0                                ...           7 months ago
  • 1.0.0                                ...           7 months ago
Downloads
Today 0
This Week 0
This Month 14
Last Day 0
Last Week 7
Last Month 13
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |