Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtripg6666tdr/eslint-config
Sharable eslint config, mainly for my own use.
https://github.com/mtripg6666tdr/eslint-config
Last synced: 10 days ago
JSON representation
Sharable eslint config, mainly for my own use.
- Host: GitHub
- URL: https://github.com/mtripg6666tdr/eslint-config
- Owner: mtripg6666tdr
- License: mit
- Created: 2023-05-29T13:27:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-23T00:41:10.000Z (about 2 months ago)
- Last Synced: 2024-10-02T02:49:59.119Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://npmjs.com/package/@mtripg6666tdr/eslint-config
- Size: 424 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> Note: this package is mainly for my own use, but it might be useful if you use as needed
# @mtripg6666tdr/eslint-config
Sharable eslint config, mainly for my own use.## Installation
```bash
npm i eslint @mtripg6666tdr/eslint-config --save-dev
```If you use `@mtripg6666tdr/eslint-config/nextjs-typescript`, then you also have to install `eslint-config-next`.
```bash
npm i eslint @mtripg6666tdr/eslint-config eslint-config-next --save-dev
```## Configurations
### `@mtripg6666tdr/eslint-config/base`
Base config for plain JavaScript.- Hierarchy: `base`
### `@mtripg6666tdr/eslint-config/nodejs`
Config for plain JavaScript on Node.js- Hierarchy: `base` -> `nodejs`
### `@mtripg6666tdr/eslint-config/browser`
Config for plain JavaScript that will be bundled and running on browser.- Hierarchy: `base` -> `browser`
### `@mtripg6666tdr/eslint-config/typescript`
Base config for TypeScript transpiled and running on Node.js- Hierarchy: `base` -> `typescript`
### `@mtripg6666tdr/eslint-config/nodejs-typescript`
Config for Typescript on Node.js- Hierarchy: `base` -> `typescript` -> `nodejs-typescript`
### `@mtripg6666tdr/eslint-config/browser-typescript`
Config for TypeScript transpiled and running on Browser- Hierarchy: `base` -> `typescript` -> `browser-typescript`
### `@mtripg6666tdr/eslint-config/react-typescript`
Config for TypeScript with React JSX (TSX) support.- Hierarchy: `base` -> `typescript` -> `browser-typescript` -> `react-typescript`
### `@mtripg6666tdr/eslint-config/nextjs-typescript`
Config for TypeScript with React JSX (TSX) on Next.js framework support.- Hierarchy: [`next`](https://www.npmjs.com/package/eslint-config-next) + `typescript` (merging only rules configuration) -> `nextjs-typescript`
### Quick Guide
| |JavaScript|TypeScript |
|:-----:|:--------:|:------------------:|
|Node.js|`nodejs` |`nodejs-typescript` |
|Browser|`browser` |`browser-typescript`|
|React |- |`react-typescript` |
|Next.js|- |`nextjs-typescript` |## License
[MIT](./LICENSE)