5.5.0 • Published 8 months ago

@justeat/eslint-config-fozzie v5.5.0

Weekly downloads
318
License
Apache-2.0
Repository
github
Last release
8 months ago

eslint-config-fozzie

npm version

This package provides Just Eat's base JS .eslintrc as an extensible shared config.

It extends the eslint-config-airbnb-base ruleset with our own set of JS linting rules.

Many thanks to the work that the Airbnb team have put in on creating their template for extension rules – we have liberally borrowed from their structure and documentation in creating this ruleset.

Usage

eslint-config-fozzie

Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint and eslint-plugin-import.

  1. Install the correct versions of each package, which are listed by the command:

    npm info "@justeat/eslint-config-fozzie@latest" peerDependencies

    Linux/OSX users can simply run

    (
      export PKG=@justeat/eslint-config-fozzie;
      npm 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:

      npm install --save-dev @justeat/eslint-config-fozzie eslint@^#.#.# eslint-plugin-import@^#.#.#

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

    npm install -g install-peerdeps
    install-peerdeps --dev @justeat/eslint-config-fozzie

    The cli will produce and run a command like:

    npm install --save-dev @justeat/eslint-config-fozzie eslint@^#.#.# eslint-plugin-import@^#.#.#
  2. Add "extends": "@justeat/eslint-config-fozzie" to your .eslintrc file, which should look like this:

// Use this file as a starting point for your project's .eslintrc.js
// Copy this file, and add rule overrides as needed.
module.exports = {
    extends: '@justeat/eslint-config-fozzie'
}

Testing

You can run tests on this ruleset with npm test.

You can make sure this module lints with itself using npm run lint.

5.5.0

8 months ago

5.4.0

1 year ago

5.1.0

2 years ago

5.0.0

2 years ago

4.3.0

2 years ago

4.0.0

3 years ago

3.4.1

4 years ago

3.4.0

4 years ago

3.3.1

5 years ago

3.3.0

5 years ago

3.2.0

5 years ago

3.1.1

5 years ago

3.0.0

5 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago