sublimelinter

Auto-run a command on saving in Sublime Text

别说谁变了你拦得住时间么 提交于 2021-01-28 05:42:34
问题 Is it possible to run eslint automatically when I save either a .js or .jsx file in Sublime Text? I'm using the ESLint sublime package right now but I have to manually run it each time using Cmd + Option + e . Thanks! 回答1: Yes this can be done with a simple event driven plugin like the one I've written below. The plugin has been tested but not with the eslint command since I did not want to install that package. Clearly any command could be run instead of eslint in the plugin's run_command(

SublimeLinter ESLint couldn't find the plugin

≡放荡痞女 提交于 2020-01-24 15:59:49
问题 When editing javascript files in Sublime Text Editor 3.x, I get the error: Oops! Something went wrong! :( ESLint: 6.0.1. ESLint couldn't find the plugin "eslint-plugin-chai-expect". (The package "eslint-plugin-chai-expect" was not found when loaded as a Node module from the directory "C:\workspace\flltools".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following: npm install eslint-plugin-chai-expect@latest --save-dev The plugin "eslint-plugin-chai

JSHint and skipping lines with custom non-JS templating code

為{幸葍}努か 提交于 2020-01-06 15:32:15
问题 I am using SublimeLinter3 in SublimeText3 with the SublimeLinter-jshint linter. I have server side JavaScript that is processed by a custom CGI. It imports other server side JS files with a import statement that is formatted as follows (the :ssjs just tells the interpreter to process the import as server side JavaScript): %import /foo/bar.js:ssjs Needless to say, this is causing all sorts of problems with JSHint, such as: Expected an identifier and instead saw '%' Expected an assignment or

Sublimelinter 4.0.2 new update can no longer find any of my linters

谁说胖子不能爱 提交于 2020-01-05 05:54:43
问题 So after opening up sublime sublimelinter updated and now none of my linters work. I have looked around online and had no luck. when I updated it said that I can manually install the old version but I much rather use the newer version. I am not sure as to how to change the path to my linters. I am sure its something simple. I am new to coding so any and all help will be appreciated. thanks DPI scale: 1.25 startup, version: 3143 windows x64 channel: stable executable: /C/Program Files/Sublime

Sublime does not see env variables

南笙酒味 提交于 2019-12-25 05:32:13
问题 When running sublime from desctop it does not see my PERL5LIB environment variable. When running it from terminal - everithing is OK. I set my variables in .bashrc and .bash_profile. import os >>> os.environ['SHELL'] '/bin/bash' >>> os.environ['PERL5LIB'] Traceback (most recent call last): File "<string>", line 1, in <module> File "./os.py", line 676, in __getitem__ KeyError: 'PERL5LIB' this makes trouble with linting and build system - I can not link and build becase of perl does not see

Sublime does not see env variables

依然范特西╮ 提交于 2019-12-25 05:32:10
问题 When running sublime from desctop it does not see my PERL5LIB environment variable. When running it from terminal - everithing is OK. I set my variables in .bashrc and .bash_profile. import os >>> os.environ['SHELL'] '/bin/bash' >>> os.environ['PERL5LIB'] Traceback (most recent call last): File "<string>", line 1, in <module> File "./os.py", line 676, in __getitem__ KeyError: 'PERL5LIB' this makes trouble with linting and build system - I can not link and build becase of perl does not see

How do I modify jshint sublimelinter settings?

倾然丶 夕夏残阳落幕 提交于 2019-12-25 04:26:18
问题 I am sorrry if this is a duplicate question. I want to turn off warnings for semi-colon, and change appearance of warning cursors in jshint sublimelinter. What file or menu do I need to access to change these settings? 回答1: See this duplicate answer, among the many questions. Create a .jshintrc file in the directory you want to lint (a simple JSON file like this, and drop your options in there. You'll be looking for the asi option for semicolons. To set it globally you can place it in a top

npm install -g <package> error EADDRINUSE

爷,独闯天下 提交于 2019-12-24 17:36:46
问题 I have been trying to install jshint through npm that is required for SublimeLinter-jshint. I am running windows 7 (64bit). It seems to keep failing with the error message: `C:\Users\Ephekz>npm install -g jshint npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files (x86)\nodejs\\node.exe" "C:\Program Files ( x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "jshint" npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! code EADDRINUSE npm ERR! errno EADDRINUSE npm ERR! syscall

SublimeLinter-javac not recognising other packages

纵然是瞬间 提交于 2019-12-24 07:07:06
问题 I have a Spring Product That I'm trying the use sublimLinter-javac with, and there are a few packages scattered around the project. The problem is that sublimeLinter-javac is not recognising these packages or the classes within. So I end up with 200+ errors per file making the listing pointless. How do I tell sublimeLinter where to look for these classes? 回答1: I am guessing your classpath is not pointing to the right place. You can find here an explanation on how to set project settings.

Configuring SublimeLinter to ignore trailing whitespace

两盒软妹~` 提交于 2019-12-24 02:13:10
问题 When I use SublimeLinter for Sublime Text 2 with javascript it shows the red exclamation icon whenever there is a trailing whitespace, which shouldn't be a problem with javascript. I did a bit of research and found that I could add the code below to the package user settings (SublimeLinter.sublime-settings) per the error codes found here: https://github.com/jcrocholl/pep8/blob/master/pep8.py { "pep8_ignore": [ "E200", "W200", "200" ] } But for some reason the error icons still show. 回答1: You