Package detail

eslint-plugin-no-extension-in-require

pdubroy29.8kMIT0.2.0

A plugin for ESLint that ensures that the path argument to require does not include the '.js' extension

eslint, plugin, node, require

readme

Usage

To use this plugin with ESLint:

  1. Ensure the plugin is loaded, e.g. by adding the following to your .eslintrc file:
"plugins": [
  "no-extension-in-require"
]
  1. Enable the rule in your ESLint configuration, e.g.:
"rules": {
  "no-extension-in-require/main": 2
}

See the ESLint documentation for more information.

changelog

!/bin/bash

set -e

npm run prepublish npm version "$@" -m "v%s" read -p "Press [Enter] to publish this release..." git push --tags npm publish