Skip to content

Instantly share code, notes, and snippets.

@MidnightLightning
Created March 14, 2017 18:39
Show Gist options
  • Save MidnightLightning/38ae806cea92d06296dfd2c6c62b8e5d to your computer and use it in GitHub Desktop.
Save MidnightLightning/38ae806cea92d06296dfd2c6c62b8e5d to your computer and use it in GitHub Desktop.
ESLint Atom issue
function hello () {
console.log("Hello World!");
}
hello()
{
"eslintConfig": {
"extends": "eslint:recommended",
"env": {
"browser": true
},
"rules": {
"semi": 1
}
},
"devDependencies": {
"eslint": "^3.17.1"
}
}
@MidnightLightning
Copy link
Author

MidnightLightning commented Mar 14, 2017

npm install
./node_modules/.bin/eslint --format codeframe app.js

That shows a warning (semicolon) and an error (don't use console). Atom with the ESLint module doesn't show anything.

Atom version: 1.15.0
linter-eslint version: 8.1.4
ESLint version: 3.17.1
Hours since last Atom restart: 0
Platform: darwin
Using local project ESLint from: /Users/brooks.boyd/Development/eslint-test/node_modules/eslint
Current file's scopes: [
  "source.js.jsx"
]
linter-eslint configuration: {
  "disableFSCache": true,
  "disableWhenNoEslintConfig": false,
  "eslintRulesDir": "~/Development/eslint-test",
  "globalNodePath": "/opt/local",
  "lintHtmlFiles": false,
  "useGlobalEslint": false,
  "showRuleIdInMessage": true,
  "eslintrcPath": "",
  "advancedLocalNodeModules": "",
  "disableEslintIgnore": false,
  "fixOnSave": false,
  "scopes": [
    "source.js",
    "source.jsx",
    "source.js.jsx",
    "source.babel",
    "source.js-semantic"
  ],
  "rulesToSilenceWhileTyping": [],
  "rulesToDisableWhileFixing": []
}

@IanVS
Copy link

IanVS commented Apr 6, 2017

I downloaded this zip, installed the dependencies, opened the file in Atom, and got an error/warning as expected. I have to think there's something else going on in your environment or settings that is the culprit here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment