eslint-plugin-strudel

1.0.2 • Public • Published

eslint-plugin-strudel

Version License

Official ESLint plugin for Strudel.js

Requirements

  • ESLint ^5.0.0
  • Node.js >=6.10.0

Installation

Install ESLint either locally or globally.

$ npm i eslint eslint-plugin-strudel -D

Usage

Create .eslintrc.* file to configure rules. See: http://eslint.org/docs/user-guide/configuring

Example .eslintrc.js:

{
  "extends": [
    "plugin:strudel/recommended"
  ]
}

Configs

This plugin provides two predefined configs:

  • plugin:strudel/base: Settings and rules to enable correct ESLint parsing
  • plugin:strudel/recommended: Above, plus rules to prevent errors and ensure consistency

Rules

Contribution

Before you start writing new rule, please read the official ESLint guide.

Next you need to get an idea how the AST looks like - use astexplorer.net to inspect ASTs.

When writing tests for rules Debugging Mocha guide for Visual Studio Code may become helpful.

License

MIT

Copyright (c) 2017-present, Mateusz Łuczak

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    8
  • 1.0.1
    1
  • 0.0.1
    3
  • 1.0.0
    2

Package Sidebar

Install

npm i eslint-plugin-strudel

Weekly Downloads

14

Version

1.0.2

License

MIT

Unpacked Size

12.5 kB

Total Files

13

Last publish

Collaborators

  • rogemus
  • jakub.lamprecht
  • xolir
  • mateusz.luczak