Open yf287 opened 6 years ago
Could you be a little bit more specific? Does it not lint for any files? Does standard
on the command line work?
standard will work on the command line, but won't lint in files, like this: and here is my setting:
Could you post the output of Linter: Debug
? Can you reproduce this issue in a new project or does it only happen in your mis-helper
project?
I create a new project and code some mistake, linter-js-standard perform like this: although standard lint:
standard: Use JavaScript Standard Style (https://standardjs.com)
standard: Run standard --fix
to automatically fix some problems.
/Users/lianjia/Documents/my_code/vue-router-test/src/components/jstest.js:1:5: 'test' is assigned a value but never used.
/Users/lianjia/Documents/my_code/vue-router-test/src/components/jstest.js:1:9: Infix operators must be spaced.
/Users/lianjia/Documents/my_code/vue-router-test/src/components/jstest.js:1:10: Strings must use singlequote.
/Users/lianjia/Documents/my_code/vue-router-test/src/components/jstest.js:1:15: Extra semicolon.
/Users/lianjia/Documents/my_code/vue-router-test/src/components/jstest.js:1:16: Newline required at end of file but not found.
should I install some other dependencies?I‘ve installed standard & eslint & eslint-plugin-html global.
I’ve just reset Atom (rm -r ~/.atom
), installed linter-js-standard (apm install linter-js-standard
), opened Atom to install all dependencies (such as linter), and configured all settings as shown in your screenshot. I then created a new project using vue create --default hello-world
, opened it in Atom, and created a new file src/components/Test.js
with offending code. The linter worked fine.
Could you post the output of Linter: Debug
? You can run this in the Command Palette.
I‘ve installed standard & eslint & eslint-plugin-html global.
You probably don’t want to install both the JavaScript Standard Style (standard
) and ESLint (eslint
). Nevertheless, linter-js-standard should work as long as you have the “Skip if ESLint is installed locally” setting is unchecked (which seems to be fine from looking at your screenshot).
I am experiencing this same issue, Linter: Debug
in the command palette (cmd + shift + p) doesn't bring anything up
after running standard
as a command line tool, I see plenty of offending code, but when I open up those files I see nothing, I recently did a clean install of atom and reinstalled linter-js-standard, it seems not to be working
atom 1.38.0 x64
At the moment, I have a similar problem that it's failing silently. With no hint or error message as to what's going on, it's VERY difficult to debug.
Is "standard" included in the package, or is it a dependency. If it's the latter could you consider stating this explicitly in the docs?
linter-js-standard 6.0.0 linter 2.2.0 standard 12.0.1
I've already installed 'linter-js-standard' & 'linter',but it doesn't work