JSPM

eslint-plugin-smartnica

1.0.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q10977F
  • License ISC

Module for eslint to validate js

Package Exports

  • eslint-plugin-smartnica
  • eslint-plugin-smartnica/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-smartnica) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Smartnica Eslint plugin

Eslint plugin to improve js code quality in Drupal

Installation

Install it globally:

npm install --global eslint-plugin-smartnica

You can install it locally:

npm install --save-dev eslint-plugin-smartnica

Configuration

Add plugins section to .eslintrc.* and specify "smartnica" as a plugin.

{
    "plugins": [
        "smartnica"
    ]
}

Finally, enable all of the rules that you would like to use.

"rules": {
    "smartnica/drupal-behaviors-namespaces": 2,
    "smartnica/jquery-event-namespaces": 2,
    "smartnica/constant-case": 2,
}