Skip to content
Permalink
Branch: master
Commits on Feb 24, 2019
  1. [guide] [react] add more context about arrow functions, as props and …

    Ensive authored and ljharb committed Feb 24, 2019
    …in class fields
Commits on Feb 17, 2019
  1. [Tests] on `node` `v11`

    ljharb committed Feb 17, 2019
  2. [eslint config] [*] [deps] update `eslint-plugin-import`, `eslint-plu…

    ljharb committed Feb 17, 2019
    …gin-jsx-a11y`, `tape`
Commits on Feb 14, 2019
  1. [eslint config] [react] [patch] Turn off `react/no-multi-comp`

    jamiebuilds authored and ljharb committed Feb 14, 2019
    Splitting up a component into multiple components can be useful for many reasons, including making important performance optimizations.
    
    This lint rule discourages splitting up components because it forces you to: create a new file, copy over all the relevant imports, move over any local functions/values (or move them into yet another shared module), export the component (which makes your split off component now a public export), and re-import it into the new module.
    
    Having multiple components per file shouldn't be much different from having multiple functions per file. And you shouldn't be forced to make a component a public export if it's really just an internal implementation detail of another component.
    
    There's an argument to be made about _exporting_ multiple components, but mostly just in the context of React.lazy because it can only import default exports and you don't want something else in that file being statically imported (because that will prevent it from being code-split).
Commits on Feb 13, 2019
  1. [guide] fix example 4.7 for arrays method callbacks

    mapb authored and ljharb committed Feb 13, 2019
Commits on Feb 7, 2019
  1. [eslint config] [*] [readme] Improve eslint config setup instructions…

    plbrault authored and ljharb committed Feb 7, 2019
    … for yarn
Commits on Feb 6, 2019
  1. [guide] make "good" example match "bad" example more closely

    ziishaned authored and ljharb committed Feb 6, 2019
Commits on Feb 5, 2019
  1. Merge branch 'master' into translation-proposal

    sharmilajesupaul committed Feb 5, 2019
Commits on Jan 30, 2019
  1. [eslint config] [base] [patch] `no-extraneous-dependencies`: Add jest…

    tclindner authored and ljharb committed Jan 30, 2019
    ….setup.js to devDeps
Commits on Jan 28, 2019
  1. Merge pull request #1996 from remcohaszing/redux-devtools-extension-c…

    ljharb committed Jan 28, 2019
    …ompose
    
    [eslint config] [base] [patch] Allow use of `__REDUX_DEVTOOLS_EXTENSION_COMPOSE__`
Commits on Jan 27, 2019
  1. [eslint config] [*] [deps] update `object.entries`, `eslint-plugin-im…

    ljharb committed Jan 27, 2019
    …port`, `eslint-plugin-jsx-a11y`, `eslint-plugin-react`
Commits on Jan 26, 2019
  1. [eslint config] [patch] extend `no-underscore-dangle` to allow for re…

    ljharb committed Jan 26, 2019
    …dux dev tools in the main config instead
  2. [editorial] [react] fix typo

    telmen authored and ljharb committed Jan 26, 2019
Commits on Jan 21, 2019
  1. [eslint config] [base] [patch] Allow use of `__REDUX_DEVTOOLS_EXTENSI…

    remcohaszing authored and ljharb committed Jan 21, 2019
    …ON_COMPOSE__`
    
    This style guide disallows the use of underscores in properties. However, the
    Redux browser extension requires the use of a variable named
    `__REDUX_DEVTOOLS_EXTENSION_COMPOSE__`. Since Redux is so popular with React,
    it makes sense to allow this.
Commits on Jan 13, 2019
  1. Vietnamese translation

    dangkyokhoang committed Jan 13, 2019
Commits on Jan 7, 2019
  1. [guide] [react] add note about `forbid-prop-types` rule

    Rahil Vora authored and ljharb committed Jan 7, 2019
Commits on Dec 28, 2018
  1. [Dev Deps] update `markdownlint-cli`

    ljharb committed Dec 28, 2018
  2. [eslint config] [base] [fix] disable `no-var` in legacy entry point

    ljharb committed Dec 28, 2018
    Fixes #1935.
Commits on Dec 19, 2018
  1. Add Terra to README list

    emilyrohrbough committed Dec 19, 2018
Commits on Dec 18, 2018
  1. capitalize means first letter uppercase, the rest lowercase

    honzajavorek committed Dec 18, 2018
    The examples and the reasoning indicates the author of the rule meant uppercase instead of capitalization. According to Wikipedia, capitalization is "writing a word with its first letter as a capital letter (uppercase letter) and the remaining letters in lower case", while the rule apparently tries to prevent exactly that.
Commits on Nov 27, 2018
  1. :) conflicting with rule 8.2 :D

    michaelKaefer committed Nov 27, 2018
Commits on Nov 21, 2018
  1. Added NullDev

    NLDev authored and ljharb committed Nov 21, 2018
    because why not
  2. [17.2] Added second anchor #1960

    NLDev authored and ljharb committed Nov 21, 2018
    See requested changes here: #1960 (review)
Commits on Nov 20, 2018
  1. [eslint config] [base] [deps] Switch to confusing-browser-globals

    edmorley authored and ljharb committed Nov 20, 2018
    The `eslint-restricted-globals` package author created an equivalent
    package `confusing-browser-globals` that now resides within the
    create-react-app monorepo. In sidoshi/eslint-restricted-globals#2
    @sidoshi suggested that we change eslint-config-airbnb-base to depend
    on the CRA package instead, in an effort to consolidate the two.
    
    Currently the two global lists are identical, so this does not change
    the generated eslint config:
    https://unpkg.com/eslint-restricted-globals@0.2.0/index.js
    https://unpkg.com/confusing-browser-globals@1.0.5/index.js
Commits on Nov 13, 2018
  1. [editorial] Improve conciseness of README.md

    KY3LxD authored and ljharb committed Nov 13, 2018
Commits on Oct 30, 2018
  1. [19.16] changed Enforce to avoid

    theBstar committed Oct 30, 2018
    Good practice is to avoid spaces between functions and their invocations. But by mistake (I think so) you used the word Enforce instead of Avoid
Commits on Oct 16, 2018
  1. Add UrbanSim to organizations list

    martjanz committed Oct 16, 2018
Commits on Oct 4, 2018
  1. [doc] add eslint rule references in react guide

    1pete committed Oct 4, 2018
    * react/jsx-filename-extension
    * react/no-array-index-key
Commits on Oct 3, 2018
  1. [doc] add eslint rule reference for `no-prototype-builtins`

    1pete committed Oct 3, 2018
Commits on Oct 2, 2018
  1. Updated wording of variable--one-const rule

    parulgupta26 committed Oct 2, 2018
Commits on Sep 14, 2018
  1. Examples more consistent with the guidline

    ernestodebesto authored and ljharb committed Sep 14, 2018
    comparison operator <= shows better the confusion when using arrow function, than just operator <
Commits on Sep 12, 2018
  1. ✏️ fix docs for whitespace config

    A-Tokyo committed Sep 12, 2018
Commits on Aug 26, 2018
  1. [guide] Clarify wording

    kevinweber authored and ljharb committed Aug 26, 2018
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.