eslint-config-athom

ESLint config for Athom B.V.


License
ISC
Install
npm install eslint-config-athom@2.0.1

Documentation

eslint-config-athom

ESLint config for Athom B.V. JavaScript projects.

Usage

In your JavaScript project:

$ npm install --save-dev eslint eslint-config-athom

Then create a file /.eslintrc.json in your project's root:

{
  "extends": "athom"
}

Now, edit your project's /package.json file to contain the following:

"engines": {
  "node": ">=12.16.1"
}

Homey App config

This package also contains a ESLint config for Homey Apps, you can extend it like this:

{
  "extends": "athom/homey-app"
}

This config includes some rules that depend on TypeScript typechecking so you need to make sure to have a tsconfig.json file in the root of your Homey App. To make this work as intended you should also have the node-homey-apps-sdk-v3-types installed by running:

$ npm install --save-dev @types/homey@npm:homey-apps-sdk-v3-types