0.1.0 • Published 6 years ago
eslint-plugin-qml-js v0.1.0
eslint-plugin-qml-js
Parse JS files with ESLint in a QtQML project.
With this plugin, you can't parse QML files ! It only remove QML specific import statements in JS files and transform JS import statements in commonJS ones to avoid parse error.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-qml-js:
$ npm install eslint-plugin-qml-js --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-qml-js globally.
Usage
Add qml-js to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"qml-js"
]
}