Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wisersolutions/eslint-config
Eslint configurations used by WisePricer
https://github.com/wisersolutions/eslint-config
Last synced: 14 days ago
JSON representation
Eslint configurations used by WisePricer
- Host: GitHub
- URL: https://github.com/wisersolutions/eslint-config
- Owner: WiserSolutions
- License: mit
- Created: 2018-09-11T13:29:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T11:10:55.000Z (over 1 year ago)
- Last Synced: 2024-04-14T04:48:46.365Z (7 months ago)
- Language: JavaScript
- Size: 275 KB
- Stars: 0
- Watchers: 37
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config
Baseline ESLint configurations used by Wiser Solutions, Inc.
### Base Config
Every JavaScript project should start by extending the base config.
```json
{
"extends": "@wisersolutions"
}
```**Note:** The base config requires the `@babel/eslint-parser` parser installed.
### Extensions
In some specific use-cases (e.g. application projects) or when using some common libraries (e.g. `jest`),
use the provided additional config extensions.```json
{
"extends": [
"@wisersolutions",
"@wisersolutions/eslint-config/jest",
"@wisersolutions/eslint-config/cypress",
"…"
]
}
```The following extensions are provided:
- `cypress` - for applications that use Cypress for end-to-end testing **(requires `eslint-plugin-cypress`)**,
- `jest` - for any project using Jest for unit testing **(requires `eslint-plugin-jest`)**,
- `react` - for applications or component libraries using React **(requires `eslint-plugin-react`)**,
- `enzyme` - for applications or component libraries that use Enzyme for testing React components.### Combinations
There are also combinations provides to simplify the most common use-cases.
```json
{
"extend": "@wisersolutions/eslint-config/application"
}
```The following combinations are provided:
- `application` - applications using React, Cypress, and Jest,
- `quadro-application` - applications built with the Quadro framework (plus all of the above).