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

Package Sidebar

Install

npm i eslint-plugin-strudel

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

12.5 kB

Total Files

13

Last publish

Collaborators

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