2.0.0 • Published 5 years ago
@klaudia-z/common-js-config v2.0.0
Vanilla JavaScript & ReactJS config package
Usage:
Babel:
Require the config file in babel.rc file in your project.
Eslint:
- Require either eslintBase.config or eslintReact.config in eslint.rc file in your project.
- Call the config function (optionally pass config parameters) and assign to module.exports.
Options:
eslintBase:
- (number) ecmaVersion (default: 6)
- (object) env: { browser: boolean (default: true), node: boolean (default: false) }
eslintReact:
- (number) ecmaVersion (default: 6)
- (boolean) jsx (default: true)
- (object) env: { browser: boolean (default: true), node: boolean (default: false) }
Webpack:
- Import desired config file as a function
- Specify your app directory
- Create an Aliases file containing a map of aliases, if you wish so
- Call the imported config passing environtmental variables, the APP_DIR, and, optionally, aliases.
Example usage:
https://github.com/KlaudiaZ/webpack-react-starter
Planned features:
- Adding style linter