All Projects → xojs → Sublimelinter Contrib Xo

xojs / Sublimelinter Contrib Xo

Licence: mit
SublimeLinter plugin for XO

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Sublimelinter Contrib Xo

zephir-sublime
Sublime Text syntax highlighting for for Zephir
Stars: ✭ 41 (-22.64%)
Mutual labels:  sublime-text, sublime-package, editor-plugin
Sublime-Pretty-Shell
🐚 Shell Script Formatter / Syntax Checker (Powered by shfmt)
Stars: ✭ 28 (-47.17%)
Mutual labels:  sublime-text, sublime-package
Assembly-Syntax-Definition
This is the greatest syntax definition of All Time
Stars: ✭ 23 (-56.6%)
Mutual labels:  sublime-text, sublime-package
sublime-text
Subime Text 相关资源收集整理
Stars: ✭ 62 (+16.98%)
Mutual labels:  sublime-text, sublime-package
sublime-text-theme-switcher-menu
Painless theme selection in Sublime Text ⚡
Stars: ✭ 18 (-66.04%)
Mutual labels:  sublime-text, sublime-package
elm-syntax-highlighting
Syntax Highlighting for Elm in Sublime Text
Stars: ✭ 27 (-49.06%)
Mutual labels:  sublime-text, editor-plugin
sublime-profiles
Profile Switcher for Sublime Text
Stars: ✭ 59 (+11.32%)
Mutual labels:  sublime-text, sublime-package
Sublime Jekyll
A Sublime Text package for Jekyll static sites.
Stars: ✭ 160 (+201.89%)
Mutual labels:  sublime-text, sublime-package
Chromerepl
A Sublime Text plugin to execute JavaScript in Google Chrome
Stars: ✭ 347 (+554.72%)
Mutual labels:  sublime-text, sublime-package
Sublime Rails Snippets
Sublime Text snippets for the latest Ruby and Rails versions
Stars: ✭ 406 (+666.04%)
Mutual labels:  editor-plugin, sublime-text
Sublime zk
A SublimeText3 package featuring ID based wiki style links, and #tags, intended for zettelkasten method users. Loaded with tons of features like inline image display, sophisticated tag search, note transclusion features, support for note templates, bibliography support, support for multiple panes, etc. to make working in your Zettelkasten a joy 😄.
Stars: ✭ 408 (+669.81%)
Mutual labels:  sublime-text, sublime-package
sublime-commands
Adds all default commands to the command pallet
Stars: ✭ 18 (-66.04%)
Mutual labels:  sublime-text, sublime-package
elm-format-on-save
Sublime Text plugin to run elm-format on save
Stars: ✭ 18 (-66.04%)
Mutual labels:  sublime-text, editor-plugin
Sublimeallautocomplete
Extend Sublime autocompletion to find matches in all open files of the current window
Stars: ✭ 906 (+1609.43%)
Mutual labels:  sublime-text, sublime-package
sublime-import-helper
A Sublime Text Plugin that helps you to import your modules.
Stars: ✭ 69 (+30.19%)
Mutual labels:  sublime-text, sublime-package
sublime-live-server
🌍️ Launch a Development Server directly from Sublime Text
Stars: ✭ 49 (-7.55%)
Mutual labels:  sublime-text, sublime-package
Schemr
A color scheme selector for Sublime Text.
Stars: ✭ 140 (+164.15%)
Mutual labels:  sublime-text, sublime-package
Editorconfig Sublime
Sublime Text plugin for EditorConfig - Helps developers maintain consistent coding styles between different editors
Stars: ✭ 1,749 (+3200%)
Mutual labels:  sublime-text, sublime-package
CSSFontFamily
CSSFontFamily is a Sublime Text plugin with a collection of font stacks autocomplete.
Stars: ✭ 15 (-71.7%)
Mutual labels:  sublime-text, sublime-package
Processing Sublime
A Sublime Text package for the programming language Processing
Stars: ✭ 447 (+743.4%)
Mutual labels:  sublime-text, sublime-package

SublimeLinter-contrib-xo

This linter plugin for SublimeLinter provides an interface to XO. It will be used with files that have the “JavaScript” syntax.

Installation

SublimeLinter must be installed in order to use this plugin.

Please use Package Control to install the linter plugin.

Before installing this plugin, you must ensure that xo is installed on your system:

$ npm install --global xo

In order for xo to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. The docs cover troubleshooting PATH configuration.

Settings

Also, you can change general plugin setting from: “Preferences › Package Settings › SublimeLinter XO”.

Auto-fix

To run the auto-fixer, press the ctrl+alt+f shortcut or use the menu entry “Tools › SublimeLinter XO › Fix current file”.

The shortcut can be changed in “Preferences › Key Bindings” by adding the following to the array:

{
	"keys": [
		"ctrl+alt+f"
	],
	"command": "xo_fix"
}

If you want to run the auto-fixer when saving a file, you can enable the fix_on_save setting:

{
	"fix_on_save": true
}

Tips

Using non-JS syntax

Typical plugins for ESLint, for example, for TypeScript or Vue, should just work automatically if they're installed locally in your project (defined in the same package.json).

For plugins not supported out-of-the-box, you may need to change the SublimeLinter selector setting to include the correct syntax scope. For Vue, that could be:

{
	"linters": {
		"xo": {
			"selector": "text.html.vue, source.js - meta.attribute-with-value"
		}
	}
}

Help, xo doesn't lint my HTML files anymore!

xo will only lint *.js files for standard, vanilla config without further plugins. Either install the eslint-plugin-html or tweak the selector:

{
	"linters": {
		"xo": {
			"selector": "source.js - meta.attribute-with-value"
		}
	}
}

Note

XO linting is only enabled for projects with xo in devDependencies/dependencies in package.json.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].