Skip to content

Releases: FoxSportsAustralia/fs-default-project-config

Multiline operator placement, jsx-a11y/label adjusments

05 Jul 06:52
Compare
Choose a tag to compare
  • Require linebreaks be placed before operators. Change operator-linebreak from after to before to keep terms in multi-line expressions on the same line.
  • Turn off label-has-for, it’s been deprecated.
  • Turn off label-has-associated-control, because it is a nightmare to have to keep a list for styled-component names that output label or input/select/textarea.

v7 Update to comma dangle (enforce on multi-line)

02 Feb 02:37
888c37d
Compare
Choose a tag to compare

Change dangling comma policy

  • Always require comma dangle on multiline
  • Change version to 7, as the rule change will break existing builds

fixed version in package.json

30 Oct 23:10
Compare
Choose a tag to compare

Version 6.1.0: Update eslint-compat & eslint-import

30 Oct 23:03
5b347cd
Compare
Choose a tag to compare
  • Updated eslint-plugin-compat from 1.0.4 > 2.0.1
  • Updated eslint-plugin-import from 2.7.0 > 2.8.0
  • No new rules added, definition for "import/exports-last", added but disabled

Version 6

17 Oct 07:07
Compare
Choose a tag to compare
  • Turning off multiline-ternary rule. Going to rely on developer common sense instead. Use case:
{teamATable && teamBTable ? ( // eslint-disable-line multiline-ternary
    <PlayerStatsButtonRow
        key="row"
        teamAName={teamAName}
        teamBName={teamBName}
        teamAId={teamAId}
        teamBId={teamBId}
        showTeam={showTeam}
        onClickShowTeam={onClickShowTeam} />
    ) : (
        <PlayerStatsPlaceholder />
    )
)}
  • Added commonJS/node.js rules, however note they are NOT being imported into the base package
  • Added .skip to test rule errors

Version 5

04 Oct 05:01
Compare
Choose a tag to compare

Updating eslint-plugin-react to 7.4.0

Added new react linting rules.

Version 4

11 Sep 00:39
Compare
Choose a tag to compare

Updating jsx-a11y from 3.0.2 to 6.0.2

Much more robust accessibility linting for react components

Added eslint-plugin-import rules

03 Aug 06:59
Compare
Choose a tag to compare
  • Added eslint-plugin-import rules
  • Tweaked some existing react rules
  • Added warnings for TODO comments

Version 3

28 Jun 01:23
Compare
Choose a tag to compare

Updated eslint to 4.1.1 with associated core rules changes

  • stricter ES6 syntax enforcement - const, return, destructuring
  • made line length more lenient - ignores URLs or string literals
  • changed config setup for "browser compat" plugin - appears to have changed?
  • updated readme
  • added plugin versions to package.json as optionalDependencies