eslint-plugin-qml-js

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-qml-js

Weekly Downloads

16

Version

0.1.0

License

MIT

Unpacked Size

3.36 kB

Total Files

5

Last publish

Collaborators

  • fdubost
  • flepretre
  • agory
  • valotvince
  • jpoissonnet
  • doubleyo
  • tetsu9901
  • etiennedoyon