Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@strv/eslint-config-react

Package Overview
Dependencies
Maintainers
4
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@strv/eslint-config-react

STRV's ESLint config for React projects

  • 5.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
158
decreased by-7.06%
Maintainers
4
Weekly downloads
 
Created
Source

@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.

Keywords

FAQs

Package last updated on 16 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc