Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bchiang7/lint-me

A script to install Upstatement ESLint & Prettier linting configs to your project
https://github.com/bchiang7/lint-me

Last synced: 7 days ago
JSON representation

A script to install Upstatement ESLint & Prettier linting configs to your project

Awesome Lists containing this project

README

        

# Lint Me

> A script to install Upstatement linting configs ([ESLint](https://www.npmjs.com/package/@upstatement/eslint-config) & [Prettier](https://www.npmjs.com/package/@upstatement/prettier-config)) to your project

## Installation

1. Clone this repo

2. In your terminal config (i.e. `.zshrc`, `.bash_rc`, etc.) add an alias for running the install script

```sh
alias lintme="sh ~//install.sh"
```

3. Now you should be able to run `lintme` at the root of any project to automatically install Upstatement's ESLint & Prettier linting configs

## Usage

At the root of any project, simply run

```sh
lintme
```

### Default

```sh
lintme
```

### Four Spaces

```sh
lintme four
```

### React

```sh
lintme react
```

### Vue

```sh
lintme vue
```

You should end up with the following files at the root of your project

- `.editorconfig`
- `.eslintrc`
- `package-lock.json`
- `package.json`
- `prettier.config.js`