Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/old-course-wp/ucudal-eslint-config

JavaScript style guide
https://github.com/old-course-wp/ucudal-eslint-config

eslint eslintconfig javascript styleguide

Last synced: about 1 month ago
JSON representation

JavaScript style guide

Awesome Lists containing this project

README

        

# @ucudal/eslint-config

This package provides UCUDAL's base JavaScript `.eslintrc` as an extensible
shared config.

## Usage

1. Install the correct versions of each peer dependency, which are listed by the
command:

```sh
npm info "@ucudal/eslint-config@latest" peerDependencies
```

Linux/OSX users can run:

```sh
(
export PKG=@ucudal/eslint-config;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
```

Which produces and runs a command like:

```sh
npm install --save-dev @ucudal/eslint-config@latest eslint@^x.y.z eslint-plugin-import@^x.y.z
```

Windows users can install the `@ucudal/eslint-config` and all its peer
dependencies manually.

2. Add `"extends": "@ucudal"` to your `.eslintrc` file.