Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-no-extension-in-require

pdubroy3.7kMIT0.2.0

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

eslint, plugin, node, require, path, extension

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