# cra-template-pretty-code

> Create React App with Typescript, ESLint, Prettier

Latest version **1.1.0** (published 2022-01-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install cra-template-pretty-code
pnpm add cra-template-pretty-code
yarn add cra-template-pretty-code
bun add cra-template-pretty-code
```

## 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.1.0 |
| Published | 2022-01-15 |
| First published | 2021-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 0 |
| Unpacked size | 33.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | lovelyhara |
| Keywords | react, create-react-app, template, typescript, eslint, airbnb-eslint, prettier |

## Links

- npm: https://www.npmjs.com/package/cra-template-pretty-code
- Repository: https://github.com/LovelyHaRa/cra-template
- Homepage: https://github.com/LovelyHaRa/cra-template/tree/main/packages/cra-template-pretty-code#readme
- Issues: https://github.com/LovelyHaRa/cra-template/issues
- npm.io page: https://npm.io/package/cra-template-pretty-code

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2022-01-15
- 1.0.2 — 2021-10-31
- 1.0.1 — 2021-09-27

## README

# cra-template-pretty-code

[![react-scripts](https://img.shields.io/npm/v/react-scripts?label=react-scripts)](https://github.com/facebook/create-react-app)

###### Create React App with Typescript, ESLint(Airbnb Styleguide), Prettier

## Get Started

```zsh
npx create-react-app my-app --template pretty-code

# or yarn
yarn create react-app my-app --template pretty-code
```

## Configuration Information

### ESLint

```json
// .eslintrc
{
  "env": {
    "browser": true,
    "es6": true,
    "jest": true
  },
  "extends": [
    "airbnb",
    "airbnb/hooks",
    "airbnb-typescript",
    "plugin:@typescript-eslint/recommended",
    "plugin:jest/recommended",
    "plugin:prettier/recommended"
  ],
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    },
    "ecmaVersion": 2018,
    "sourceType": "module",
    "project": "./tsconfig.json"
  },
  "plugins": ["@typescript-eslint", "jest", "react-hooks"],
  "ignorePatterns": ["setupTests.ts"],
  "rules": {
    "react/react-in-jsx-scope": "off",
    "react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
    "react/prop-types": "off",
    "react/jsx-props-no-spreading": "off",
    "react/no-array-index-key": "off",
    "react-hooks/rules-of-hooks": "error",
    "func-names": ["error", "as-needed"],
    "no-unused-vars": "warn",
    "@typescript-eslint/explicit-module-boundary-types": "off",
    "import/no-extraneous-dependencies": [
      "error",
      { "devDependencies": ["**/*.test.ts", "**/*.test.tsx"] }
    ]
  },
  "settings": {
    "react": {
      "version": "detect"
    }
  }
}
```

### Prettier

```json
// .prettierrc
{
  "singleQuote": true,
  "semi": true,
  "useTabs": false,
  "tabWidth": 2,
  "trailingComma": "all",
  "printWidth": 80
}
```

---
_Source: https://npm.io/package/cra-template-pretty-code · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
