5.0.0 • Published 3 months ago
@strv/eslint-config-react v5.0.0
@strv/eslint-config-react
Configuration for React projects.
Installation
npm install -D @strv/eslint-config-react
Rulesets
'@strv/eslint-config-react'
: A generic ruleset that focuses on code correctness'@strv/eslint-config-react/optional'
: Addiitonal ruleset that might provide useful tips and hints how to improve your code'@strv/eslint-config-react/style'
: Ruleset that focuses solely on code style (indentation, spacing, naming, syntax preference etc.)
Usage
// eslint.config.mjs
import react from '@strv/eslint-config-react'
import optional from '@strv/eslint-config-react/optional'
import style from '@strv/eslint-config-react/style'
// Just to help us re-use the same globs multiple times
const globs = {
jsx: '**/*.jsx',
}
/** @type {Array<import("eslint").Linter.FlatConfig>} */
const config = [
{ files: [globs.jsx], ...react },
{ files: [globs.jsx], ...optional },
{ files: [globs.jsx], ...style },
// Any custom settings to be applied
{ files: [globs.jsx],
languageOptions: { ecmaVersion: 2023, ecmaFeatures: { jsx: true } },
},
]
export default config
License
See the LICENSE file for information.
5.0.0
3 months ago
4.3.2
6 months ago
4.3.1
10 months ago
4.3.0
10 months ago
4.2.0
2 years ago
4.1.0
2 years ago
4.0.0-alpha.7
3 years ago
4.0.0
3 years ago
4.0.0-alpha.6
3 years ago
4.0.0-alpha.5
3 years ago
4.0.0-alpha.4
3 years ago
4.0.0-alpha.3
3 years ago
4.0.0-alpha.2
4 years ago
4.0.0-alpha.1
4 years ago
4.0.0-alpha.0
4 years ago
3.1.2
4 years ago
3.1.1
4 years ago
3.1.0
4 years ago
3.0.3
5 years ago
3.0.2
5 years ago
3.0.1
5 years ago
3.0.0
5 years ago
2.1.1
5 years ago
2.1.0
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.1.1-alpha.0
5 years ago