6.5.0 • Published 5 months ago
@smartive/eslint-config v6.5.0
@smartive/eslint-config
This package provides smartive's default eslint configuration.
Installation
$ npm install eslint @smartive/eslint-config -D
Usage
This package offers two different rule sets, one for plain TypeScript applications and a separate one for React applications.
Flat Config (eslint.config.mjs
)
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`
// to your devDependencies
export default config('nextjs');
Legacy Config (.eslintrc
)
{
"extends": [
"@smartive/eslint-config/typescript-legacy" // Plain TS applications
// or
"@smartive/eslint-config/react-legacy" // React applications
]
}
NPM scripts
To use eslint add the following to your package.json:
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
5.2.0
8 months ago
6.1.0
7 months ago
6.0.0
7 months ago
6.3.0
7 months ago
6.2.0
7 months ago
6.5.0
5 months ago
6.4.1
5 months ago
6.3.2
7 months ago
6.4.0
7 months ago
6.3.1
7 months ago
6.0.0-next.1
7 months ago
5.1.0
2 years ago
5.0.0
2 years ago
3.3.0
2 years ago
3.2.0
2 years ago
5.0.0-next.1
2 years ago
5.0.0-next.2
2 years ago
5.0.0-next.3
2 years ago
5.0.0-next.4
2 years ago
4.0.1
2 years ago
4.0.0
2 years ago
4.0.2
2 years ago
3.1.1
3 years ago
3.1.0
3 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.1.0
4 years ago
2.0.0
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago