Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/porscheofficial/eslint-config-porschedigital

An opinionated ESLint config which supports: JavaScript, TypeScript, Jest and React.
https://github.com/porscheofficial/eslint-config-porschedigital

a11y eslint eslint-config eslint-rules jest prettier react reactjs typescript

Last synced: 3 days ago
JSON representation

An opinionated ESLint config which supports: JavaScript, TypeScript, Jest and React.

Awesome Lists containing this project

README

        

# Porsche Digital ESLint Config

[![npm version](http://img.shields.io/npm/v/@porscheofficial/eslint-config-porschedigital-base.svg?style=flat)](https://www.npmjs.com/package/@porscheofficial/eslint-config-porschedigital-base)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/porscheofficial/eslint-config-porschedigital/main/LICENSE.md)
[![npm](https://img.shields.io/npm/dm/@porscheofficial/eslint-config-porschedigital-base.svg)](https://www.npmjs.com/package/@porscheofficial/eslint-config-porschedigital-base)

An opinionated ESLint config which supports: JavaScript, TypeScript, Jest and React.

## 🚀 Usage of ESLint configs

Currently there are the following eslint configs provided as extensible shared components

- [Base Config](/packages/eslint-config-porschedigital-base)
- [React Config](/packages/eslint-config-porschedigital-react)

### Prettier

Make sure to also include our [prettier config](/packages/prettier-config-porschedigital).

## 📜 Decisions

### Prettier

We differ between code quality rules and stylistic rules.
Therefore, we follow the [recommendation of prettier](https://prettier.io/docs/en/integrating-with-linters.html).
That means, that we use `eslint` exclusively for code quality and `prettier` for the style.
That's why this project also contains a package with a shared `prettier` config containing the rules we have agreed on.

### Dependencies

In order to keep this opinionated config as plug- and playable as possible, we decided to declare the dependencies not as `peerDependencies`.

## Contributing

See [CONTRIBUTING](./CONTRIBUTING.md).

## License

See [LICENSE](./LICENSE.md).