Skip to content

BedrockStreaming/eslint-plugin-qml-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ESLint preprocessor for JS files in a Qt QML project

Resources

License

Stars

Watchers

Forks

Packages

No packages published