# @karatechops/project-scripts

> Project scripts

Latest version **1.0.1** (published 2019-08-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install @karatechops/project-scripts
pnpm add @karatechops/project-scripts
yarn add @karatechops/project-scripts
bun add @karatechops/project-scripts
```

## 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 | 1.0.1 |
| Published | 2019-08-07 |
| First published | 2019-08-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alex Mejias |
| Maintainers | karatechops |

## Links

- npm: https://www.npmjs.com/package/@karatechops/project-scripts
- Repository: https://github.com/karatechops/project-scripts
- Homepage: https://github.com/karatechops/project-scripts#readme
- Issues: https://github.com/karatechops/project-scripts/issues
- npm.io page: https://npm.io/package/@karatechops/project-scripts

## Dependencies (9)

- [eslint](https://npm.io/package/eslint.md) ^5.3.0
- [prettier](https://npm.io/package/prettier.md) ^1.18.2
- [babel-eslint](https://npm.io/package/babel-eslint.md) ^10.0.2
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.14.3
- [eslint-config-airbnb](https://npm.io/package/eslint-config-airbnb.md) ^17.1.1
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.18.2
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^6.0.0
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.2.3
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^3.1.0

## Recent versions

- 1.0.1 (latest) — 2019-08-07
- 1.0.0 — 2019-08-07

## README

# Project Scripts

Commonly used scripts to bootstrap your project. This package currently supports eslint and prettier. Jest support is currently on the roadmap.

### To setup eslint

1. create a `.eslintrc.js` in your project's root folder
2. Add the following snippet to your eslintrc file

```javascript
const scripts = require('@karatechops/project-scripts');
module.exports = scripts.eslint;
```

3. Create a .eslintignore file. This file will vary depending on your project structure, here is a good starting point

```
node_modules/
coverage/
dist/
build/
prod/
out/
.next/
.cache/
public/
yarn.lock
package-lock.json
```

### To setup prettier

Prettier requires some setup on your IDE's end. The following instructions are for VS Code users.

1. Install the [Prettier extension](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) from the marketplace.

2. In your VS Code settings (Preferences -> Settings) click the curly brackets icon in the top right to enable the plain text settings view and add the following:

```
// Set the default
"editor.formatOnSave": false,
// Enable per-language
"[javascript]": {
    "editor.formatOnSave": true
}
```

3. Create a `.prettierrc.js` in your project's root folder.

4. Add the following to your prettierrc:

```
const scripts = require('@karatechops/project-scripts');
module.exports = scripts.prettier;
```

5. Create a `.prettierignore` in your root folder.

6. Similarly to eslint's ignore, the contents of this file will depend on your project's structure. Here's a good starting point:

```
package-lock.json
yarn.lock
.cache
public/
node_modules/
build/
dist/
```

---
_Source: https://npm.io/package/@karatechops/project-scripts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
