Skip to content

Releases: LaunchPadLab/eslint-config

v3.0.1

05 Apr 17:34
0361890
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.0...v3.0.1

v3.0.0

04 Apr 14:24
88f7806
Compare
Choose a tag to compare

What's Changed

Breaking

  • Projects must use babel.config.js instead of .babelrc
    • Steps: Rename the file and add module.exports = to the first line

Full Changelog: v2.7.0...v3.0.0

v2.7.0

10 Jul 22:16
Compare
Choose a tag to compare

Added the skipUndeclared option to react/prop-types. This makes it so that the props associated with additional helper components declared in the same file of the parent component do not get flagged by eslint.

import PropTypes from 'prop-types'

const propTypes = {
   school: PropTypes.object.isRequired,
}

// name will not be flagged by eslint
function Row ({ name }) {
  return <tr><td>name</td></tr>
}

// school will be flagged by eslint if not declared
function Table ({ school }) {
  return (
    <table>
       <thead>
         <tr>Name</tr>
       </thead>
       <Row name={school.displayName} />
    </table>
  )
}

Table.propTypes = propTypes // this is the "declaration"

v2.0.0

08 Nov 21:22
Compare
Choose a tag to compare

Fixes breaking issue for projects using webpack.