# @klaudia-z/common-js-config

> Package containing configuration files for various libraries I use in my private projects.

Latest version **2.0.0** (published 2019-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @klaudia-z/common-js-config
pnpm add @klaudia-z/common-js-config
yarn add @klaudia-z/common-js-config
bun add @klaudia-z/common-js-config
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2019-10-19 |
| First published | 2019-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 17 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | KlaudiaZ |
| Maintainers | klaudia-z |

## Links

- npm: https://www.npmjs.com/package/@klaudia-z/common-js-config
- Repository: https://github.com/KlaudiaZ/common-js-config
- Homepage: https://github.com/KlaudiaZ/common-js-config#readme
- Issues: https://github.com/KlaudiaZ/common-js-config/issues
- npm.io page: https://npm.io/package/@klaudia-z/common-js-config

## Dependencies (17)

- [eslint](https://npm.io/package/eslint.md) 6.3.0
- [webpack](https://npm.io/package/webpack.md) 4.39.3
- [sass-loader](https://npm.io/package/sass-loader.md) 7.1.0
- [babel-eslint](https://npm.io/package/babel-eslint.md) 10.0.3
- [style-loader](https://npm.io/package/style-loader.md) 0.23.1
- [webpack-merge](https://npm.io/package/webpack-merge.md) 4.2.2
- [copy-webpack-plugin](https://npm.io/package/copy-webpack-plugin.md) 5.0.4
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) 7.14.3
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) 3.2.0
- [eslint-config-airbnb](https://npm.io/package/eslint-config-airbnb.md) 18.0.1
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) 2.18.2
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) 6.2.3
- [mini-css-extract-plugin](https://npm.io/package/mini-css-extract-plugin.md) 0.8.0
- [eslint-config-airbnb-base](https://npm.io/package/eslint-config-airbnb-base.md) 14.0.0
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) 2.0.1
- [webpack-visualizer-plugin](https://npm.io/package/webpack-visualizer-plugin.md) 0.1.11
- [optimize-css-assets-webpack-plugin](https://npm.io/package/optimize-css-assets-webpack-plugin.md) 5.0.3

## Recent versions

- 2.0.0 (latest) — 2019-10-19
- 1.0.1 — 2019-06-02
- 1.0.0 — 2019-06-02

## README

# Vanilla JavaScript & ReactJS config package

## Usage:

### Babel:
Require the config file in babel.rc file in your project.

### Eslint:
1. Require either eslintBase.config or eslintReact.config in eslint.rc file in your project. 
2. 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:
1. Import desired config file as a function
2. Specify your app directory
3. Create an Aliases file containing a map of aliases, if you wish so
3. 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

---
_Source: https://npm.io/package/@klaudia-z/common-js-config · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
