1.5.2 • Published 9 months ago

@aviene/eslint-config-react v1.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@aviene/eslint-config-react

Configuration for React projects.

Installation

npm install -D @aviene/eslint-config-react

Rulesets

  • '@aviene/eslint-config-react': A generic ruleset that focuses on code correctness
  • '@aviene/eslint-config-react/optional': Addiitonal ruleset that might provide useful tips and hints how to improve your code
  • '@aviene/eslint-config-react/style': Ruleset that focuses solely on code style (indentation, spacing, naming, syntax preference etc.)

Usage

// eslint.config.mjs
import react from '@aviene/eslint-config-react'
import optional from '@aviene/eslint-config-react/optional'
import style from '@aviene/eslint-config-react/style'
// Just to help us re-use the same globs multiple times
const globs = {
  jsx: '**/*.jsx',
}

/** @type {Array<import("eslint").Linter.Config>} */
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
1.5.2

9 months ago

1.5.1

9 months ago

1.4.2

9 months ago

1.5.0

9 months ago

1.4.1

10 months ago

1.4.0

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago