Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@crossroads-loyalty-solutions/eslint-config-xo

crossroads-loyalty-solutions24MITdeprecated0.2.8

Moved to @awardit/eslint-config-xo

ESLint shareable config for CLS base code style, to be used with eslint-config-xo

eslint, xo

readme

Crossroads Loyalty Solutions JavaScript Code Style

Installation

npm i -DE xo @crossroads-loyalty-solutions/eslint-config-xo

Add the following to your package.json:

{
  "scripts": {
    "test:xo": "xo"
  },
  "xo": {
    "extends": [
      "@crossroads-loyalty-solutions/eslint-config-xo"
    ]
  }
}

React and GraphQL lints

React and GraphQL will only their lints if react and graphql modules are installed, respectively. This will avoid unnecessary depenencies or errors.

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[0.2.8] - 2019-09-27

Changed

  • Set ignoreRestSiblings on no-unused-vars

[0.2.7] - 2019-09-27

Removed

  • no-nested-ternary

[0.2.6] - 2019-09-27

Removed

  • no-negated-condition

[0.2.5] - 2019-09-26

Added

  • The lint will now autodetect if react and graphql are installed and load their lints.

    Changed

  • Changed eqeqeq and no-eq-null to allow comparisons with null. Flow should catch any faulty comparisons.

[0.2.4] - 2019-09-26

Changed

  • Changed max-len rule to allow long strings, template literals and RegExps.

[0.2.3] - 2019-09-26

Removed

  • Disabled react/require-default-props rule.

[0.2.2] - 2019-09-26

Added

  • import/extensions rule forbidding extensions for JavaScript files.

[0.2.1] - 2019-09-26

Fixed

  • Parse error

[0.2.0] - 2019-09-26

Added

  • Added GraphQL lints.

Changed

  • Enforce dangling commas in Flowtypes.
  • Warn on non-capitalized comments, likely code
  • Moved back to XO standard of indenting case inside switch.

Removed

  • Relaxed some JSX lints.
  • Removed ava/use-test