Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 930 Bytes

readme.md

File metadata and controls

30 lines (21 loc) · 930 Bytes

How to install

Requires typescript to be setup for ESlint and your project. Check quick start instructions from here to install: https://www.npmjs.com/package/@typescript-eslint/eslint-plugin

Only warns about Realm.Object Typescript type. If your Realm.Object has any other type this will not work.

After that install plugin by:

$ yarn add -D @waltari/eslint-plugin-ban-realm-spread
$ npm i --save-dev @waltari/eslint-plugin-ban-realm-spread

Usage

Add @waltari/ban-realm-spread to the plugins in .eslintrc configuration file, then add the ban-realm-spread rule to rules section.

{
  "parser": "@typescript-eslint/parser",
  "plugins": ["@waltari/ban-realm-spread"],
  "rules": {
    "@waltari/ban-realm-spread/ban-realm-spread": "error"
  }
}

This package only has "@waltari/ban-realm-spread/ban-realm-spread" rule.

Feel free to post any issues or improvement ideas in Github issues <3