I can't seem to get my installation of ESLint to actually complain (errors 
or warnings) about *anything*, in any of the files I tried, even in a test 
file I tried that has 'obvious' errors. The details of my setup
are below. Any ideas for troubleshooting this would be greatly appreciated! 
 Note: I also tried changing the configuration to specify sourceType: 
script, and also es6: false, but the results were the same (no errors or 
warnings reported).


bash (macOS) command line:

./node_modules/.bin/eslint --debug --no-ignore lint-test.js



Results in the following output on the console:

  *eslint:cli *Running on files +0ms

  *eslint:glob-util *Creating list of files to process. +33ms

  *eslint:cli-engine *Processing 
/Users/jimabbott/RubymineProjects/simple-project/lint-test.js +12ms

  *eslint:cli-engine *Linting 
/Users/jimabbott/RubymineProjects/simple-project/lint-test.js +2ms

  *eslint:config *Constructing config for 
/Users/jimabbott/RubymineProjects/simple-project/lint-test.js +0ms

  *eslint:config *Using .eslintrc and package.json files +0ms

  *eslint:config *Loading 
/Users/jimabbott/RubymineProjects/simple-project/.eslintrc.js +2ms

  *eslint:config-file *Loading JS config file: 
/Users/jimabbott/RubymineProjects/simple-project/.eslintrc.js +1ms

  *eslint:config *Using 
/Users/jimabbott/RubymineProjects/simple-project/.eslintrc.js +34ms

  *eslint:config *Merging command line environment settings +0ms

  *eslint:config-ops *Apply environment settings to config +0ms

  *eslint:cli-engine *Linting complete in: 376ms +323ms



Contents of the file under test (lint-test.js, at project root, NOT in 
/build, or /config):

var foo = bar;
var x;
if (x = y) {}



My project's .eslintrc.json:

{
    "env": {
        "browser": true,
        "es6": true
    },
    "extends": "eslint:recommended",
    "parserOptions": {
        "sourceType": "module"
    },
    "rules": {
        "indent": [
            "error",
            "tab"
        ],
        "linebreak-style": [
            "error",
            "unix"
        ],
        "quotes": [
            "error",
            "single"
        ],
        "semi": [
            "error",
            "always"
        ]
    }
}



My project's .eslintrc.js:

module.exports = {
  root: true,
  parser: 'babel-eslint',
  parserOptions: {
    sourceType: 'module'
  },
  // required to lint *.vue files
  plugins: [
    'html'
  ],
  // add your custom rules here
  'rules': {
    // allow debugger during development
    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
  }
}


.eslintignore:

build/*.js
config/*.js


-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to