Skip to content

Commit 0084264

Browse files
committed
ci(trunk): include sample react native eslint config
1 parent 279e9d7 commit 0084264

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.trunk/trunk.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ lint:
4242
- checkov@3.2.507
4343
- dotenv-linter@3.3.0
4444
# ESLint 9+ defaults to flat config only; this repo uses .eslintrc.js (ESLint 8 style).
45-
# Trunk runs ESLint in an isolated env without the repo's node_modules; bundle the same
46-
# plugins/parser as package.json so @typescript-eslint/* resolves (CI + local).
45+
# Trunk runs ESLint in an isolated env without the repo's node_modules; bundle the root
46+
# TypeScript plugins plus the sample app's React Native shareable config.
4747
- eslint@8.57.1:
4848
packages:
49-
- '@typescript-eslint/eslint-plugin@5.62.0'
50-
- '@typescript-eslint/parser@5.62.0'
49+
- '@react-native/eslint-config@0.84.0'
50+
- '@typescript-eslint/eslint-plugin@8.56.1'
51+
- '@typescript-eslint/parser@8.56.1'
5152
- 'eslint-config-prettier@8.10.0'
53+
- 'eslint-plugin-jest@29.15.0'
5254
- 'eslint-plugin-prettier@4.2.1'
5355
- git-diff-check
5456
- ktlint@0.43.2

sample/.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
const path = require('path');
2+
13
module.exports = {
24
root: true,
35
extends: '@react-native',
6+
parserOptions: {
7+
babelOptions: {
8+
configFile: path.join(__dirname, 'babel.config.js'),
9+
},
10+
},
411
};

0 commit comments

Comments
 (0)