eslint-plugin-done-component

0.2.4 • Public • Published

eslint-plugin-done-component

Build Status

Borrowed from the eslint-plugin-html plugin

This ESLint plugin extracts and lints JavaScript in DoneJS's *.component files.

Script tags with type events, view-model, and helpers will be linted.

Usage

Install via yarn as yarn add -D eslint-plugin-done-component or npm as npm i -D eslint-plugin-done-component and add the plugin to your configuration. If your ESLint instance is globally installed, you will need to install this plugin globally. See the ESLint documentation for configuring plugins.

Example:

{
  "plugins": ["done-component"]
}

Additionally, unless otherwise specified, when linting a folder, ESLint will only lint .js files. In order to have your .component files linted, you need to specify it with the --ext flag. Note that you need to also specify the .js extension if you do this.

Example:

{
  "scripts": {
    "lint": "eslint src --ext .js --ext .component"
  }
}

Dependents (0)

Package Sidebar

Install

npm i eslint-plugin-done-component

Weekly Downloads

1

Version

0.2.4

License

MIT

Last publish

Collaborators

  • imjoshdean