ricardofbarros / linter-js-standard

Atom linter plugin for JavaScript, using JavaScript Standard Style
https://atom.io/packages/linter-js-standard
MIT License
99 stars 48 forks source link

doesn't work #224

Open yf287 opened 6 years ago

yf287 commented 6 years ago

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 commented 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?

yf287 commented 6 years ago

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

sonicdoe commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

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?