Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-react-naming-convention) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-plugin-react-naming-convention
Naming convention rules.
Install
# npm
npm install --save-dev eslint-plugin-react-naming-convention
Setup
// 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 tseslint.config({
files: ["**/*.ts", "**/*.tsx"],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
],
plugins: {
"react-naming-convention": reactNamingConvention,
},
languageOptions: {
parser: tseslint.parser,
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
// Put rules you want to use here
"react-naming-convention/component-name": "warn",
},
});
Rules
https://eslint-react.xyz/docs/rules/overview#naming-convention-rules