Skip to content

imjoshdean/eslint-plugin-done-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
  }
}

About

An ESLint plugin to extract and lint scripts from .component files

Resources

Stars

Watchers

Forks

Packages

No packages published