eslint-plugin-react-naming-convention 2.0.0-next.162 → 2.0.0-next.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +22 -19
  2. package/dist/index.js +1 -1
  3. package/package.json +11 -11
package/README.md CHANGED
@@ -17,29 +17,32 @@ npm install --save-dev eslint-plugin-react-naming-convention
17
17
  // @ts-check
18
18
  import js from "@eslint/js";
19
19
  import reactNamingConvention from "eslint-plugin-react-naming-convention";
20
+ import { defineConfig } from "eslint/config";
20
21
  import tseslint from "typescript-eslint";
21
22
 
22
- export default tseslint.config({
23
- files: ["**/*.ts", "**/*.tsx"],
24
- extends: [
25
- js.configs.recommended,
26
- tseslint.configs.recommended,
27
- ],
28
- plugins: {
29
- "react-naming-convention": reactNamingConvention,
30
- },
31
- languageOptions: {
32
- parser: tseslint.parser,
33
- parserOptions: {
34
- projectService: true,
35
- tsconfigRootDir: import.meta.dirname,
23
+ export default defineConfig([
24
+ {
25
+ files: ["**/*.ts", "**/*.tsx"],
26
+ extends: [
27
+ js.configs.recommended,
28
+ tseslint.configs.recommended,
29
+ ],
30
+ plugins: {
31
+ "react-naming-convention": reactNamingConvention,
32
+ },
33
+ languageOptions: {
34
+ parser: tseslint.parser,
35
+ parserOptions: {
36
+ projectService: true,
37
+ tsconfigRootDir: import.meta.dirname,
38
+ },
39
+ },
40
+ rules: {
41
+ // Put rules you want to use here
42
+ "react-naming-convention/component-name": "warn",
36
43
  },
37
44
  },
38
- rules: {
39
- // Put rules you want to use here
40
- "react-naming-convention/component-name": "warn",
41
- },
42
- });
45
+ ]);
43
46
  ```
44
47
 
45
48
  ## Rules
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ const rules = { "react-naming-convention/context-name": "warn" };
31
31
  //#endregion
32
32
  //#region package.json
33
33
  var name = "eslint-plugin-react-naming-convention";
34
- var version = "2.0.0-next.162";
34
+ var version = "2.0.0-next.164";
35
35
 
36
36
  //#endregion
37
37
  //#region src/utils/create-rule.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-naming-convention",
3
- "version": "2.0.0-next.162",
3
+ "version": "2.0.0-next.164",
4
4
  "description": "ESLint React's ESLint plugin for naming convention related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -35,18 +35,18 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/scope-manager": "^8.41.0",
39
- "@typescript-eslint/type-utils": "^8.41.0",
40
- "@typescript-eslint/types": "^8.41.0",
41
- "@typescript-eslint/utils": "^8.41.0",
38
+ "@typescript-eslint/scope-manager": "^8.42.0",
39
+ "@typescript-eslint/type-utils": "^8.42.0",
40
+ "@typescript-eslint/types": "^8.42.0",
41
+ "@typescript-eslint/utils": "^8.42.0",
42
42
  "string-ts": "^2.2.1",
43
43
  "ts-pattern": "^5.8.0",
44
- "@eslint-react/ast": "2.0.0-next.162",
45
- "@eslint-react/core": "2.0.0-next.162",
46
- "@eslint-react/kit": "2.0.0-next.162",
47
- "@eslint-react/eff": "2.0.0-next.162",
48
- "@eslint-react/shared": "2.0.0-next.162",
49
- "@eslint-react/var": "2.0.0-next.162"
44
+ "@eslint-react/ast": "2.0.0-next.164",
45
+ "@eslint-react/eff": "2.0.0-next.164",
46
+ "@eslint-react/shared": "2.0.0-next.164",
47
+ "@eslint-react/var": "2.0.0-next.164",
48
+ "@eslint-react/core": "2.0.0-next.164",
49
+ "@eslint-react/kit": "2.0.0-next.164"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/react": "^19.1.12",