Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/osskit/eslint-config
https://github.com/osskit/eslint-config
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/osskit/eslint-config
- Owner: osskit
- License: mit
- Created: 2021-08-10T09:50:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-24T10:30:55.000Z (3 months ago)
- Last Synced: 2024-10-11T00:04:49.702Z (2 months ago)
- Language: JavaScript
- Size: 402 KB
- Stars: 0
- Watchers: 0
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @osskit/eslint-config [![NPM version](https://img.shields.io/npm/v/@osskit/eslint-config.svg)](https://www.npmjs.com/package/@osskit/eslint-config)
> ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) used by osskit.
## Install
```shell
$ npm install --save-dev @osskit/eslint-config
```
```shell
$ yarn add --dev @osskit/eslint-config
```## Usage
Create an `eslint.config.js` file:
```js
import {baseConfig} from '@osskit/eslint-config';export default [
baseConfig,
];
```### Additional Configs
This package exposes additional configs.
#### [`Test`](src/test.js)
Use this for your Vitest tests
```js
import {baseConfig, testConfig} from '@osskit/eslint-config';export default [
baseConfig,
testConfig,
];
```#### [`React`](src/react.js)
Use this for your React projects
```js
import {baseConfig, reactConfig} from '@osskit/eslint-config';export default [
baseConfig,
reactConfig,
];
```#### [`React`](src/react.js) & [`Test`](src/test.js)
Use this for your React tests
```js
import {baseConfig, reactConfig, testConfig} from '@osskit/eslint-config';export default [
baseConfig,
reactConfig,
testConfig,
];
```