Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamnapo/eslint-config-iamnapo
π ESLint shareable config for iamnapo's coding style.
https://github.com/iamnapo/eslint-config-iamnapo
config eslint eslint-config eslintconfig eslintrc iamnapo javascript react styleguide typescript
Last synced: 3 months ago
JSON representation
π ESLint shareable config for iamnapo's coding style.
- Host: GitHub
- URL: https://github.com/iamnapo/eslint-config-iamnapo
- Owner: iamnapo
- License: mit
- Created: 2018-12-12T20:34:19.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-10-10T18:38:17.000Z (4 months ago)
- Last Synced: 2024-10-10T18:42:01.216Z (4 months ago)
- Topics: config, eslint, eslint-config, eslintconfig, eslintrc, iamnapo, javascript, react, styleguide, typescript
- Language: JavaScript
- Homepage: https://npm.im/eslint-config-iamnapo
- Size: 264 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-iamnapo
> ESLint shareable config for [iamnapo](https://iamnapo.me)βs coding style
[![build](https://badges.iamnapo.me/ci/iamnapo/eslint-config-iamnapo)](https://github.com/iamnapo/eslint-config-iamnapo/actions) [![npm](https://badges.iamnapo.me/npm/eslint-config-iamnapo)](https://www.npmjs.com/package/eslint-config-iamnapo) [![style](https://badges.iamnapo.me/style)](https://iamnapo.me)
## Install
```console
npm i eslint-config-iamnapo -D
```> This config requires `eslint` and (optionally) `typescript` to be installed.
## Usage
Add to your `eslint.config.js` one of the available configs (`default`, `react`, `typescript`, `react-typescript`) like so:
```js
import eslintConfigIamnapo from "eslint-config-iamnapo";const config = [
...eslintConfigIamnapo.configs.default.map(cfg => ({
...cfg,
files: [eslintConfigIamnapo.filePatterns.default],
})),
// your overrides
];export default config;
```>[!TIP]
> `filePatterns` contains some helpful [patterns](https://eslint.org/docs/latest/use/configure/configuration-files#specifying-files-and-ignores) about each case, so you wonβt have to figure them out yourself.