Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 767 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 767 Bytes

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-dev

Next, install eslint-plugin-qml-js:

$ npm install eslint-plugin-qml-js --save-dev

Note: 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"
    ]
}