commit | 0797149b04529ec4544208b09aef403c70445a96 | [log] [tgz] |
---|---|---|
author | Raphael von der GrĂ¼n <raphinesse@gmail.com> | Sat Nov 09 11:42:10 2019 +0100 |
committer | GitHub <noreply@github.com> | Sat Nov 09 11:42:10 2019 +0100 |
tree | 0e3976130a980dc53c07314d1a986be96f90dde1 | |
parent | 7411a1a500f876017a2c9fa1c1a41ab67fbff6a1 [diff] |
chore: update dependencies (#8) Updates all ESLint related dependencies to their latest compatible versions. `eslint-config-standard` has to stay at v13 to formally fulfill a peer dependency specified by `eslint-config-semistandard`. There is standard/eslint-config-semistandard#30 to allow later versions of this peer dependency, but it has been open for some time now.
This repository centralizes the ESLint configuration used for Cordova's development.
@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
# 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.