@kopanowebapp/eslint-config
v1.1.2
Published
ESlint configuration for Kopano WebApp core and plugins
Downloads
4
Maintainers
Readme
@kopanowebapp/eslint-config
This package contains the eslint configuration for development on Kopano WebApp and its plugins.
Installation
Note: This documentation assumes that you have created a package.json file in your plugin's root directory, and that you have node and npm installed
Install this package in your plugin by running the following command in your plugin's root folder:
npm install --save-dev @kopanowebapp/eslint-config
After installing the package, you should run
npx eslint-config init
A file called .eslintrc will be copied to the root directory of your plugin. It will be used to lint the javascript files of your plugin.
A script called kwp:eslint
will be added to the package.json file of your plugin. Your source code can now be linted running npm run kwp:eslint
.
create-webapp-plugin
We strongly encourage you to not use this package directly but instead bootstrap your plugin by installing @kopanowebapp/create-webapp-plugin.