Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't work #224

Open
yf287 opened this issue Nov 12, 2018 · 7 comments
Open

doesn't work #224

yf287 opened this issue Nov 12, 2018 · 7 comments

Comments

@yf287
Copy link

yf287 commented Nov 12, 2018

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

@sonicdoe
Copy link
Collaborator

Could you be a little bit more specific? Does it not lint for any files? Does standard on the command line work?

@yf287
Copy link
Author

yf287 commented Nov 13, 2018

standard will work on the command line, but won't lint in files, like this:
image
image
and here is my setting:
image

@sonicdoe
Copy link
Collaborator

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?

@yf287
Copy link
Author

yf287 commented Nov 16, 2018

I create a new project and code some mistake, linter-js-standard perform like this:
image
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.

@sonicdoe
Copy link
Collaborator

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).

@alilland
Copy link

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

@andy-preston
Copy link

andy-preston commented Oct 16, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants