Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/atom-linter-xo
Linter for XO
https://github.com/sindresorhus/atom-linter-xo
atom atom-editor atom-linter editor-plugin xo
Last synced: about 2 months ago
JSON representation
Linter for XO
- Host: GitHub
- URL: https://github.com/sindresorhus/atom-linter-xo
- Owner: sindresorhus
- License: mit
- Archived: true
- Created: 2015-08-01T17:55:08.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2021-05-17T06:47:24.000Z (over 3 years ago)
- Last Synced: 2024-05-22T18:24:01.110Z (6 months ago)
- Topics: atom, atom-editor, atom-linter, editor-plugin, xo
- Language: JavaScript
- Homepage: https://github.com/xojs/xo
- Size: 161 KB
- Stars: 89
- Watchers: 10
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# linter-xo
> [Linter](https://github.com/atom-community/linter) for [XO](https://github.com/xojs/xo)
![](screenshot.png)
## Install
```
$ apm install linter-xo
```Or, Settings → Install → Search for `linter-xo`.
## Usage
Just write some code.
Settings can be found in the `Linter` package settings. XO [config](https://github.com/xojs/xo#config) should be defined in package.json.
**Note that it will only lint when XO is a dependency/devDependency in package.json.**\
This is to ensure it doesn't activate and conflict on projects using another linter, like ESLint.\
[We're considering a way to manually enable XO.](https://github.com/xojs/atom-linter-xo/issues/21)### Fix
Automagically fix many of the linter issues by running `XO: Fix` in the Command Palette.
#### Fix on save
You can also have it fix the code when you save the file. *(Only when XO is used in the project)*
Enable it by going to; Settings → Packages → linter-xo → Settings, and then checking `Fix On Save`.