Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"example-app"
],
"scripts": {
"lint-md": "find . -name '*.md' -not -path './node_modules/*' -exec markdownlint --config ./.markdownlint.json --rules ./markdown-lint-custom-rules/no-relative-links.js {} +"
"lint-md": "find . -name '*.md' -not -path '*/node_modules/*' -exec markdownlint --config ./.markdownlint.json --rules ./markdown-lint-custom-rules/no-relative-links.js {} +"
},
"devDependencies": {
"lerna": "^8.0.0",
"markdownlint": "^0.32.0",
"markdownlint-cli": "^0.38.0",
"markdownlint-rule-helpers": "^0.23.0",
"markdownlint": "^0.39.0",
"markdownlint-cli": "^0.46.0",
"markdownlint-rule-helpers": "^0.30.0",
"prettier": "^3.0.0"
},
"packageManager": "[email protected]",
Expand Down
17 changes: 10 additions & 7 deletions packages/eslint-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,18 @@ This plugin exports some custom rules that you can optionally use in your projec

<!-- begin auto-generated rules list -->

💼 Configurations enabled in.\
✅ Set in the `recommended` configuration.\
🧪 Set in the `tests` configuration.\
🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).

| Name | Description | 🔧 |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------- | :-- |
| [await-user-event](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/await-user-event.md) | Enforces awaiting userEvent calls | 🔧 |
| [no-different-displayname](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/no-different-displayname.md) | Enforce component displayName to match with component name | 🔧 |
| [no-inline-style](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/no-inline-style.md) | Detect inline styles in JSX | |
| [prefer-user-event](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/prefer-user-event.md) | Enforces usage of userEvent over fireEvent in tests. | 🔧 |
| [require-named-effect](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/require-named-effect.md) | Enforces the use of named functions inside a useEffect | |
| Name | Description | 💼 | 🔧 |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------- | :-- | :-- |
| [await-user-event](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/await-user-event.md) | Enforces awaiting userEvent calls | 🧪 | 🔧 |
| [no-different-displayname](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/no-different-displayname.md) | Enforce component displayName to match with component name | ✅ | 🔧 |
| [no-inline-style](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/no-inline-style.md) | Detect inline styles in JSX | ✅ | |
| [prefer-user-event](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/prefer-user-event.md) | Enforces usage of userEvent over fireEvent in tests. | 🧪 | 🔧 |
| [require-named-effect](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/require-named-effect.md) | Enforces the use of named functions inside a useEffect | ✅ | |

<!-- end auto-generated rules list -->

Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-plugin/docs/rules/await-user-event.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Enforces awaiting userEvent calls (`@bam.tech/await-user-event`)

💼 This rule is enabled in the 🧪 `tests` config.

🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-plugin/docs/rules/no-different-displayname.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Enforce component displayName to match with component name (`@bam.tech/no-different-displayname`)

💼 This rule is enabled in the ✅ `recommended` config.

🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-plugin/docs/rules/no-inline-style.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Detect inline styles in JSX (`@bam.tech/no-inline-style`)

💼 This rule is enabled in the ✅ `recommended` config.

<!-- end auto-generated rule header -->

> **Note:** This rule is a flat config adaptation of [`react-native/no-inline-styles`](https://github.com/Intellicode/eslint-plugin-react-native/blob/master/docs/rules/no-inline-styles.md).
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-plugin/docs/rules/prefer-user-event.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Enforces usage of userEvent over fireEvent in tests (`@bam.tech/prefer-user-event`)

💼 This rule is enabled in the 🧪 `tests` config.

🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-plugin/docs/rules/require-named-effect.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Enforces the use of named functions inside a useEffect (`@bam.tech/require-named-effect`)

💼 This rule is enabled in the ✅ `recommended` config.

<!-- end auto-generated rule header -->

Force to use named functions inside a useEffect instead of lambda functions.
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"eslint-plugin-testing-library": "7.1.1",
"eslint-plugin-unused-imports": "^4.1.4",
"jest": "^29.7.0",
"npm-run-all": "^4.1.5",
"npm-run-all2": "^5.0.0",
"prettier": "^3.0.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
Expand Down
Loading