New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-react-naming-convention

Package Overview
Dependencies
Maintainers
0
Versions
936
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-naming-convention - npm Package Compare versions

Comparing version 1.27.1-next.3 to 1.27.1-next.4

2

dist/index.js

@@ -54,3 +54,3 @@ 'use strict';

var name2 = "eslint-plugin-react-naming-convention";
var version = "1.27.1-next.3";
var version = "1.27.1-next.4";
var createRule = shared.createRuleForPlugin("naming-convention");

@@ -57,0 +57,0 @@

{
"name": "eslint-plugin-react-naming-convention",
"version": "1.27.1-next.3",
"version": "1.27.1-next.4",
"description": "ESLint React's ESLint plugin for naming convention related rules.",

@@ -52,7 +52,7 @@ "keywords": [

"ts-pattern": "^5.6.2",
"@eslint-react/ast": "1.27.1-next.3",
"@eslint-react/eff": "1.27.1-next.3",
"@eslint-react/core": "1.27.1-next.3",
"@eslint-react/jsx": "1.27.1-next.3",
"@eslint-react/shared": "1.27.1-next.3"
"@eslint-react/ast": "1.27.1-next.4",
"@eslint-react/core": "1.27.1-next.4",
"@eslint-react/eff": "1.27.1-next.4",
"@eslint-react/jsx": "1.27.1-next.4",
"@eslint-react/shared": "1.27.1-next.4"
},

@@ -59,0 +59,0 @@ "devDependencies": {

@@ -15,21 +15,29 @@ # eslint-plugin-react-naming-convention

```js
// eslint.config.js
// @ts-check
import js from "@eslint/js";
import reactNamingConvention from "eslint-plugin-react-naming-convention";
import tseslint from "typescript-eslint";
export default [
js.configs.recommended,
{
files: ["**/*.{ts,tsx}"],
plugins: {
"react-naming-convention": reactNamingConvention,
export default tseslint.config({
files: ["**/*.ts", "**/*.tsx"],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
],
plugins: {
"react-naming-convention": reactNamingConvention,
},
languageOptions: {
parser: tseslint.parser,
parserOptions: {
projectService: true,
},
rules: {
// react-naming-convention recommended rules
"react-naming-convention/filename-extension": ["warn", "as-needed"],
"react-naming-convention/use-state": "warn",
},
},
];
rules: {
// Put rules you want to use here
"react-naming-convention/component-name": "warn",
},
});
```

@@ -36,0 +44,0 @@

Sorry, the diff of this file is not supported yet

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