AtomLinter / linter-eslint

ESLint plugin for Atom Linter
https://atom.io/packages/linter-eslint
584 stars 141 forks source link

Using yarn pnp - invalid .eslintrc.js #1439

Closed tommydmcdonald closed 2 years ago

tommydmcdonald commented 3 years ago

Issue Type

Bug

Issue Description

Using yarn version 2.4.0 with yarn pnp, so no installed node_modules.

Getting this error message Error while running ESLint: ESLint configuration in /Users/TMcd11/dev/shop-ux-modules/.eslintrc.js is invalid:.

Content's of .eslintrc.js

module.exports = require('@internal-library/js-tools/eslint');

Bug Checklist

Linter Eslint: Debug output here

Atom version: 1.55.0
linter-eslint version: 8.6.6
ESLint version: 4.19.1
Hours since last Atom restart: 2
Platform: darwin
Using bundled fallback ESLint from: /Users/TMcd11/.atom/packages/linter-eslint/node_modules/eslint
Current file's scopes: [
  "source.js.jsx",
  "variable.other.readwrite.js"
]
linter-eslint configuration: {
  "autofix": {
    "ignoreFixableRulesWhileTyping": true,
    "fixOnSave": false,
    "rulesToDisableWhileFixing": []
  },
  "disabling": {
    "disableWhenNoEslintConfig": false,
    "rulesToSilenceWhileTyping": []
  },
  "global": {
    "eslintrcPath": ".eslintrc.js",
    "globalNodePath": "/Users/tmcd11/.nvm/versions/node/v13.5.0",
    "useGlobalEslint": false
  },
  "scopes": [
    "source.js",
    "source.jsx",
    "source.js.jsx",
    "source.flow",
    "source.babel",
    "source.js-semantic",
    "source.ts"
  ],
  "advanced": {
    "localNodeModules": ".yarn",
    "disableEslintIgnore": false,
    "disableFSCache": false,
    "showRuleIdInMessage": true,
    "eslintRulesDirs": []
  },
  "lintHtmlFiles": false
}
UziTech commented 3 years ago

What is returned by @internal-library/js-tools/eslint?

UziTech commented 2 years ago

closing as stale. If you are using eslint v8 you should use linter-eslint-node.