commit | 6972a0c61b14bce514225d60c463368f1683c422 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Wed Oct 23 10:26:49 2019 +0200 |
committer | Erisu <ellis.bryan@gmail.com> | Tue Nov 05 18:34:22 2019 +0900 |
tree | d7af12463b2a8d3a74aa4d4c10e62564953eaddd | |
parent | cbae969a7664fb3d35bbad03d60e22a274cc9b06 [diff] |
Release candidate * Lint the config using...itself 😱 * Add self-linting as test script * Implement Cordova's four main ESLint configs - node - node-tests - browser - browser-tests * Transform to scoped package * Add coarse node engine restriction * feat: commit package-lock.json
This repository centralizes the ESLint configuration used for Cordova's development.
eslint-config-cordova
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
# In package.json { "scripts": { "eslint": "eslint ." } }
# In .eslintrc.yml root: true extends: '@cordova/eslint-config/node'
# In spec/.eslintrc.yml extends: '@cordova/eslint-config/node-tests'
# In cordova-js-src/.eslintrc.yml extends: '@cordova/eslint-config/browser'
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.