Skip to content
This repository has been archived by the owner on Jul 18, 2019. It is now read-only.

Some globals are being ignored from .jshintrc #46

Open
joeljeske opened this issue Aug 23, 2017 · 0 comments
Open

Some globals are being ignored from .jshintrc #46

joeljeske opened this issue Aug 23, 2017 · 0 comments

Comments

@joeljeske
Copy link

joeljeske commented Aug 23, 2017

Bug Report

I have a project using ES Modules and do not want to support AMD / CommonJS. I can turn this off in the parser settings in Webpack but I want to have JSHint throw an error. If I set the option in my .jshintrc it is ignored.

Example:

// .jshintrc

{
  ...
  "globals": {
    "require": false,
    "define": false,
    "module": false,
    "exports": false
  }
}

// Source file: './index.js'

var myModule = require('my-module');

module.exports = ...

This does not emit an error or warning in the webpack build and I would expect it to.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant