Yoctol/eslint-config-yoctol

Name: eslint-config-yoctol

Owner: YOCTOL INFO INC.

Description: Yoctol specific linting rules for ESLint

Created: 2016-02-27 07:34:41.0

Updated: 2017-02-15 07:26:23.0

Pushed: 2018-01-07 03:58:00.0

Homepage:

Size: 55

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

eslint-config-yoctol

NPM version Build Status Greenkeeper badge Dependency Status

Yoctol Info. ESLint config, fork from eslint-config-airbnb

Usage
eslint-config-yoctol

Our default export contains all of our ESLint rules, including EcmaScript 6+ and React. It requires eslint, eslint-plugin-import, eslint-plugin-react, eslint-plugin-jsx-a11y and eslint-plugin-prettier.

  1. Install the correct versions of each package, which are listed by the command:
info "eslint-config-yoctol@latest" peerDependencies

Linux/OSX users can simply run


port PKG=eslint-config-yoctol;
m 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:

install --save-dev eslint-config-yoctol eslint@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-react@^#.#.# eslint-plugin-prettier@^#.#.#

Windows users can either install all the peer dependencies manually, or use the install-peerdeps cli tool.

install -g install-peerdeps
all-peerdeps --dev eslint-config-yoctol

The cli will produce and run a command like:

install --save-dev eslint-config-yoctol eslint@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-react@^#.#.# eslint-plugin-prettier@^#.#.#
  1. Add "extends": "yoctol" to your .eslintrc
eslint-config-yoctol/base

This entry point is deprecated. See eslint-config-yoctol-base.

eslint-config-yoctol/legacy

This entry point is deprecated. See eslint-config-yoctol-base.

See Airbnb's Javascript styleguide and the ESlint config docs for more information.

Rules be overwritted
react
act/sort-prop-types: ['error', {
llbacksLast: true,
noreCase: false,
quiredFirst: false,

act/no-deprecated: ['warn']
act/prefer-stateless-function: 'off'
act/jsx-filename-extension: ['error', { extensions: ['.js'] }]

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.