eslint-plugin-react-naming-convention
Advanced tools
Comparing version 1.27.1-next.3 to 1.27.1-next.4
@@ -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
41960
47
+ Added@eslint-react/ast@1.27.1-next.4(transitive)
+ Added@eslint-react/core@1.27.1-next.4(transitive)
+ Added@eslint-react/eff@1.27.1-next.4(transitive)
+ Added@eslint-react/jsx@1.27.1-next.4(transitive)
+ Added@eslint-react/shared@1.27.1-next.4(transitive)
+ Added@eslint-react/var@1.27.1-next.4(transitive)
- Removed@eslint-react/ast@1.27.1-next.3(transitive)
- Removed@eslint-react/core@1.27.1-next.3(transitive)
- Removed@eslint-react/eff@1.27.1-next.3(transitive)
- Removed@eslint-react/jsx@1.27.1-next.3(transitive)
- Removed@eslint-react/shared@1.27.1-next.3(transitive)
- Removed@eslint-react/var@1.27.1-next.3(transitive)