MCPcopy Index your code
hub / github.com/addyosmani/sublime-fixmyjs

github.com/addyosmani/sublime-fixmyjs @v0.3.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.4 ↗ · + Follow
9 symbols 32 edges 5 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

sublime-fixmyjs

Sublime plugin to correct JS linting issues

You shouldn't have to care about linting issues. Now you don't have to using fixmyjs.

Preview

Install

Package Control

Install FixMyJS with Package Control and restart Sublime.

You need to have Node.js installed.
Make sure it's in your $PATH by running node -v in your command-line.

Note: On OS X it's expected that Node resides in the /usr/local/bin/ folder, which it does when installed with the default installer. If this is not the case, symlink your Node binary to this location:
ln -s /full/path/to/your/node /usr/local/bin/node

Install from GitHub

1) Open the Command Palette (Cmd+Shift+P)

2) Select Package Control > Add Repository

3) Paste in https://github.com/addyosmani/sublime-fixmyjs

4) BOOM.

Getting started

In a js file, open the Command Palette (Cmd+Shift+P) and choose FixMyJS. You can alternatively create one or more selections before running the command to only fix those parts.

Options

(Preferences > Package Settings > FixMyJS > Settings - User)

Default

{
        "legacy": true,
        "fixOnSave": false
}

Legacy mode

By default, this plugin uses the FixMyJS legacy mode. This option uses the last stable version of the module which uses JSHint to detect errors in your code and fix them.

It does not include all of the fixes the current version of FixMyJS exposes, but does do a much better job of preserving source formatting. To disable legacy mode, set legacy to false in your user settings for the package.

{
        "legacy": false
}

Keyboard shortcut

You can also set up a keyboard shortcut to run the command by opening up "Preferences > Key Bindings - User" and adding your shortcut with the fix command.

Example:

[
    { "keys": ["alt+super+j"], "command": "fix" }
]

Project settings

You can override the default and user settings for individual projects. Just add an "FixMyJS" object to the "settings" object in the project's .sublime-project file containing your project specific settings.

Example:

{
    "settings": {
        "FixMyJS": {

        }
    }
}

Kudos

This plugin is based on the excellent Autoprefixer plugin by Sindre Sorhus.

License

MIT © Addy Osmani

Core symbols most depended-on inside this repo

fix
called by 3
FixMyJS.py
get_setting
called by 2
FixMyJS.py
is_javascript
called by 1
FixMyJS.py
run
called by 1
FixMyJS.py
has_selection
called by 1
FixMyJS.py
node_bridge
called by 1
node_bridge.py
on_pre_save
called by 0
FixMyJS.py

Shape

Method 4
Function 3
Class 2

Languages

Python100%

Modules by API surface

FixMyJS.py8 symbols
node_bridge.py1 symbols

For agents

$ claude mcp add sublime-fixmyjs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page