refactor: eslint setup (#54)

* replace dependencies with @cordova/eslint-config
* update eslint config
* eslint corrections
7 files changed
tree: 07f64de17184fd04fd919b72c5669d05fb6140fa
  1. .github/
  2. spec/
  3. .eslintignore
  4. .eslintrc.yml
  5. .gitignore
  6. .npmignore
  7. .ratignore
  8. .travis.yml
  9. appveyor.yml
  10. index.js
  11. LICENSE
  12. package-lock.json
  13. package.json
  14. README.md
  15. RELEASENOTES.md
README.md

Build status Build Status

cordova-create

This module is used for creating cordova style projects. It also incudes support for cordova templates. It can fetch templates from npm and git.

Usage:

const create = require('cordova-create');
await create(dest, opts);

Parameters

dest

Required. Path to the destination where the project will be created. Must be an empty dir if it exists.

opts

Optional. Supports following properties.

{
    // Attributes to be set in package.json & config.xml
    id: String,
    name: String,
    version: String,

    // The path/url/package-name to the template that should be used
    template: String,

    // An EventEmitter instance that will be used for logging purposes
    // (actually it only needs to implement a compatible `emit` method)
    events: EventEmitter
}