@sincronia/eslint-plugin

ESLint plugin for Sincronia

Usage no npm install needed!

<script type="module">
  import sincroniaEslintPlugin from 'https://cdn.skypack.dev/@sincronia/eslint-plugin';
</script>

README

@sincronia/eslint-plugin

Overview

This plugin allows you to run the ESLint checker on files.

Installation

npm i -D @sincronia/eslint-plugin

Order of Configurations

  1. Load from sinc.config.js options.
  2. Check for .eslintrc file or generate one.

Example Usage

This example takes .ts files and runs eslint on them. The output with errors and warnings is printed on the console. If there are any errors the code is not pushed.

//sinc.config.js
module.exports={
  rules:{
    match:/\.ts$/,
    plugins:[
      name:"@sincronia/eslint-plugin",
    ]
  }
};