1.0.0 • Published 8 years ago

jsx-autocorrect v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

jsx-autocorrect

A babel plugin that enables you to use class, for, and enable-background as jsx attributes. Go nuts!

Example

<input class="camouflage" name="cuttlefish" ... />
<label for="cuttlefish">
    <svg viewBox="0 0 25 25" enable-background="new 0 0 25 25">
        ...

Transpiled:

<input className="camouflage" name="cuttlefish" ... />
<label htmlFor="cuttlefish">
    <svg viewBox="0 0 25 25" enableBackground="new 0 0 25 25">
        ...

Install

npm install --save-dev jsx-autocorrect

with .babelrc:

{
  "presets": ["es2015", "react"],
  "plugins": ["jsx-autocorrect"]
}

with webpack

module.exports = { 
  module: {
    loaders: [
      {
        test: /\.jsx$/,
        loader: 'babel',
        query: {
          plugins: ['jsx-autocorrect'],
        },
      },
    ],
  },
  ...
}

Feel free to suggest any additions!

1.0.0

8 years ago

0.1.6-a

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago