@arco-cloud/eslint-config-arco
Shared lint configurations
Last updated 2 years ago by martinratinaud .
UNLICENSED · Original npm · Tarball · package.json
$ cnpm install @arco-cloud/eslint-config-arco 
SYNC missed versions from official npm registry.

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"
}

Current Tags

  • 0.0.6                                ...           latest (2 years ago)

6 Versions

  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |