postcss-autocorrect

1.3.2 • Public • Published
logo

PostCSS autocorrect Build Status

Correct your everyday typos. Check for typos in both properties and values.

.foogee {
    heigth: 120px;
    colour: blakc;
}
.foogee {
    height: 120px;
    color: black;
}

Usage

postcss([ require('postcss-autocorrect') ])

By default, the plugin only checks for certain typos. Pass your own like this :

postcss([ require('postcss-autocorrect') ])
        ({
            providedList: [
              {absolute: ['asbolute']},
              {background: ['backrgound', 'backgrund']}
            ]
        }),

You can also set the following, in order to exclude plugin's defaults corrections :

useDefaultList: false,

Installation

npm install postcss-autocorrect --save-dev

or

yarn add postcss-autocorrect --dev

See PostCSS docs for examples for your environment.

Package Sidebar

Install

npm i postcss-autocorrect

Weekly Downloads

4

Version

1.3.2

License

MIT

Unpacked Size

200 kB

Total Files

9

Last publish

Collaborators

  • dnlytras