linter-eslint
linter-eslint copied to clipboard
re-enable package will cause lint error message report more than once
trafficstars
Issue Type
Bug
Issue Description
- Open atom with new profile
- install
linter linter-eslint linter-ui-default bust-signal intensions - init a empty folder, and install eslint
- create
.eslintrc.jswith following content
module.exports = {
'rules': {
'semi': ['error', 'never'],
},
}
- create a index.js and type in
console.log('hi');from now you will get lint result about unnecessary semicolon - go to setting page, disable
linter-eslintand re-enable it - you might check that extra semi was reported twice
- repeat 6 and 7, and you might get several extra semi report after re-enable the package

it looks like the previous eslint instance wasn't get closed, and re-enable the package creates a new one that they both provide linting message
Atom version: 1.28.2
linter-eslint version: 8.4.1
ESLint version: 5.2.0
Hours since last Atom restart: 0.1
Platform: win32
Using local project ESLint from: C:\Users\noe\src\etest\node_modules\eslint
Current file's scopes: [
"source.js",
"punctuation.terminator.statement.js"
]
linter-eslint configuration: {
"lintHtmlFiles": false,
"useGlobalEslint": false,
"showRuleIdInMessage": true,
"disableWhenNoEslintConfig": true,
"eslintrcPath": "",
"globalNodePath": "",
"advancedLocalNodeModules": "",
"eslintRulesDirs": [],
"disableEslintIgnore": false,
"disableFSCache": false,
"fixOnSave": false,
"scopes": [
"source.js",
"source.jsx",
"source.js.jsx",
"source.babel",
"source.js-semantic"
],
"rulesToSilenceWhileTyping": [],
"rulesToDisableWhileFixing": [],
"ignoreFixableRulesWhileTyping": false
}
@Arcanemagus Seems like we should force clear any existing messages as part of deactivate.