https://github.com/smartive/eslint-config
https://github.com/smartive/eslint-config
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/smartive/eslint-config
- Owner: smartive
- License: mit
- Created: 2021-04-20T06:03:57.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2026-03-09T09:13:27.000Z (4 months ago)
- Last Synced: 2026-03-09T13:54:12.476Z (4 months ago)
- Language: TypeScript
- Size: 271 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @smartive/eslint-config
This package provides smartive's default [eslint](https://eslint.org/) configuration.
## Installation
```sh
$ npm install eslint @smartive/eslint-config -D
```
## Usage
This package offers three different rule sets, one for plain TypeScript applications, a separate one for React applications and one that works well with Next.js applications (minimum supported version is Next.js v16).
### Flat Config (`eslint.config.mjs`)
```javascript
import { config } from '@smartive/eslint-config'
// For plain TS applications ..
export default config('typescript');
// .. or React applications
export default config('react');
// .. or Next.js applications
// make sure to add `eslint-config-next@16`
// to your devDependencies
export default config('nextjs');
```
### NPM scripts
To use eslint add the following to your package.json:
```json
"scripts": {
"lint": "eslint {your source directory}",
"lint:fix": "eslint {your source directory} --fix"
}
```