Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@arco-cloud/eslint-config-arco

0.0.6 • Public • Published

ESLint config

ESLint config for JavaScript code.

Table of Contents

  1. Overview
  2. License
  3. Dependencies
  4. Usage

Overview

In order to standardize and enforce's JavaScript coding style across multiple codebases, you can adopt ESLint and this shared ESLint config. This document describes the JavaScript style and its inspirations.

Dependencies

ESLint is required to use this package, as it is an ESLint shareable config.

Usage

As this package is held on a private repo, you may want to install it through link, so in this folder, run

npm link
# or
yarn link

To begin using the ESLint config in a codebase, first install ESLint and the config:

# peerdependencies are not installed anymore since npm 3
yarn add @arco-cloud/eslint-config-arco babel-eslint eslint eslint-config-airbnb-base eslint-plugin-import --dev

Then, configure your project's ESLint config to extend eslint-config-arco (see the ESLint docs on Using a Shareable Config)

Basically, create a .eslintrc file with this inside

{
  "extends": "@arco-cloud/eslint-config-arco"
}

or a.eslintrc.js javascript file

module.exports = {
  extends: "@arco-cloud/eslint-config-arco"
}

Keywords

none

Install

npm i @arco-cloud/eslint-config-arco

DownloadsWeekly Downloads

4

Version

0.0.6

License

UNLICENSED

Unpacked Size

40.8 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar