https://github.com/parro-it/babelplugin-to-eslintrule
Map babel plugins to corresponding eslint ecmaFeatures
https://github.com/parro-it/babelplugin-to-eslintrule
Last synced: about 1 year ago
JSON representation
Map babel plugins to corresponding eslint ecmaFeatures
- Host: GitHub
- URL: https://github.com/parro-it/babelplugin-to-eslintrule
- Owner: parro-it
- License: mit
- Created: 2016-01-21T21:19:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-01T22:34:01.000Z (over 10 years ago)
- Last Synced: 2024-09-19T00:44:42.781Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# babelplugin-to-eslintrule
> Map babel plugins to corresponding eslint ecmaFeatures
[](http://travis-ci.org/parro-it/babelplugin-to-eslintrule)
[](https://npmjs.org/package/babelplugin-to-eslintrule)
[](https://npmjs.org/package/babelplugin-to-eslintrule)
## Installation
```bash
npm install --save babelplugin-to-eslintrule
```
## Usage
```javascript
const eslintFeature = require('babelplugin-to-eslintrule');
console.log(eslintFeature('es2015-parameters'));
```
> ['defaultParams']
return an array containing eslint's ecmaFeatures corresponding to
the es2015 feature provided by the babel plugin.
Return an empty array if no corresponding ecmaFeature exists.
## License
The MIT License (MIT)
Copyright (c) 2015 parro-it