sublimetext-codeformatter icon indicating copy to clipboard operation
sublimetext-codeformatter copied to clipboard

Formatter for this file type (javascript (babel)) not found.

Open SplicePHP opened this issue 8 years ago • 4 comments

I am currently using the javascript (babel) interprater on my javascript docs. I get this error when trying to format text: Formatter for this file type (javascript (babel)) not found.

Is there a workaround for this?

SplicePHP avatar Apr 17 '16 16:04 SplicePHP

If you go into your user settings and add "javascript (babel)" to the array of languages under the javascript options it should no longer complain about this.

RevanProdigalKnight avatar Apr 17 '16 17:04 RevanProdigalKnight

Thanks, got this working now.

SplicePHP avatar Apr 17 '16 19:04 SplicePHP

good jod! But in react jsx miserable. How do I configure it.

ghost avatar Dec 02 '16 17:12 ghost

It doesn't really understand JSX though

IE:

class App extends Component {
  render() {
    return (
      <div className="App">
        <header className="App-header">
          <img src={logo} className="App-logo" alt="logo" />
          <h1 className="App-title">Welcome to React</h1>
        </header>
        <p className="App-intro">
          To get started, edit <code>src/App.js</code> and save to reload.
        </p>
        <Screen />
      </div>
    );
  }
}

after

class App extends Component {
    render() {
        return ( <
            div className = "App" >
            <
            header className = "App-header" >
            <
            img src = {
                logo
            }
            className = "App-logo"
            alt = "logo" / >
            <
            h1 className = "App-title" > Welcome to React < /h1> <
            /header> <
            p className = "App-intro" >
            To get started, edit < code > src / App.js < /code> and save to reload. <
            /p> <
            Screen / >
            <
            /div>
        );
    }
}

ericjames avatar Mar 06 '18 21:03 ericjames