open-index/open-npm huggingface dataset:
npm package: @fuelrats/babel-plugin-classnames
Description: Our fork of babel-plugin-classnames. Never import classnames again! Converts arrays of classnames to a call of a function of your choice.
Author: Giuseppe Gurgone
Latest version: 0.3.0

# babel-plugin-classnames for JSX

[![Build Status](https://travis-ci.org/giuseppeg/babel-plugin-classnames.svg?branch=master)](https://travis-ci.org/giuseppeg/babel-plugin-classnames)

Never import classnames again! Converts arrays of classnames to a call of a function of your choice.

```js
<div className={['btn', props.large && 'large']} />
```

💫

```js
import _classNames from 'classnames'

<div className={_classNames('btn', props.large && 'large')} />
```

By default imports from `classnames`. However the package name is configurable.

## Installation

```
npm i --save-dev babel-plugin-classnames
```

Then add the plugin to your `.babelrc` file:

```JSON
{
  "plugins": [
    "@babel/plugin-syntax-jsx",
    "babel-plugin-classnames"
  ]
}
```

## Configuring the package and import name

You can set the package name by defining the `packageName` option:

```JSON
{
  "plugins": [
    ["babel-plugin-classnames", { "packageName": "dss-classnames" }]
  ]
}
```

If the function you want to use is not the default package export you can use the `importName` option:

```JSON
{
  "plugins": [
    ["babel-plugin-classnames", {
      "packageName": "emotion",
      "importName": "cx"
    }]
  ]
}
```

If you want objects to be transformed, you can opt into it with the `transformObjects` option:

```JSON
{
  "plugins": [
    ["babel-plugin-classnames", { "transformObjects": true }]
  ]
}
```

With this option enabled this:

```js
<div className={{ btn: true, large: props.large }} />
```

becomes:

```js
import _classNames from 'classnames'

<div className={_classNames({ btn: true, large: props.large })} />
```
npm package: @fuelrats/stylelint-config
Description: Shareable stylelint config for FuelRats SCSS files
Author: Cameron Welter
Latest version: 2.0.0

# @fuelrats/stylelint-config

* Base Stylelint ruleset with various other helpful plugins.
  * Assumes project uses SCSS.
  * Includes [`stylelint-scss`][stylelint-scss] for additional SCSS linting.
  * Includes [`stylelint-order`][stylelint-order] for enforcing properly strucutred declarations.

## Setup

1. There are 2 recommended ways to install this config.
    * `npx install-peerdeps --dev @fuelrats/stylelint-config`
    * or `yarn add --dev stylelint postcss postcss-scss stylelint-scss stylelint-order @fuelrats/stylelint-config`
2. Add `"extends": ["@fuelrats/stylelint-config"],` to your `.stylelintrc` file.

[stylelint-scss]: https://www.npmjs.com/package/stylelint-scss
[stylelint-order]: https://www.npmjs.com/package/stylelint-order