1.1.8 • Published 1 year ago

@4-us-4-others/eslint-config v1.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

4 us & 4 others ESLint + Prettier Configuration

Abstract

These are our shared settings for ESLint and Prettier. This ESLint configuration lints and formats our code so it follows our shared style guide. It uses ESLint to lint and fix Javascript, and Prettier to fix issues and format our code nicely. 😇

Installation

Install the package with:

yarn add @4-us-4-others/eslint-config --dev

@4-us-4-others/eslint-config requires you to take care of it's peerDependencies. Install the correct version of each peerDependencies package, which are listed with the following command:

npx install-peerdeps --dev @4-us-4-others/eslint-config

ESLint Configuration

Now add @4-us-4-others/eslint-config to your .eslintrc.js:

// .eslintrc.js
module.exports = {
    extends: '@4-us-4-others/eslint-config',
}

Prettier Configuration

This is how you can use or extend the @4-us-4-others/eslint-config Prettier config in your app:

// .prettierrc.js
module.exports = require('@4-us-4-others/eslint-config/.prettierrc.js')

// or to override specific options
module.exports = {
    ...require('@4-us-4-others/eslint-config/.prettierrc.js'),
    semi: true,
    bracketSameLine: false,
}

Development

# first, make sure your working tree is clean by committing all your work
git add . && git commit -m "your release notes"

# publish to npm
yarn publish

# `yarn publish` will ask you for a new version number, follow semver

Notes

1.1.8

1 year ago

1.1.7

1 year ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.1

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.1.3

2 years ago

1.0.4

2 years ago

1.1.2

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago