expo-module-scripts 4.1.6 → 4.1.7

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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 4.1.7 — 2025-05-08
14
+
15
+ ### 🎉 New features
16
+
17
+ - Added base **eslint.config.js** for ESLint 9. ([#36695](https://github.com/expo/expo/pull/36695) by [@kudo](https://github.com/kudo))
18
+
13
19
  ## 4.1.6 — 2025-04-30
14
20
 
15
21
  _This version does not introduce any user-facing changes._
@@ -10,6 +10,7 @@ shopt -s dotglob
10
10
  # and its content contains the string `@generated`.
11
11
  OPTIONAL_TEMPLATE_FILES=(
12
12
  # add a relative file path from `templates/` for each new optional file
13
+ "eslint.config.js"
13
14
  "scripts/with-node.sh"
14
15
  )
15
16
 
@@ -0,0 +1,60 @@
1
+ const universeNativeConfig = require('eslint-config-universe/flat/native');
2
+ const universeNodeConfig = require('eslint-config-universe/flat/node');
3
+
4
+ // TODO(kudo,20250507): Workaround to use ESLint 9 from the eslint-config-universe.
5
+ // Remove this once we drop support for ESLint 8 in expo-module-scripts.
6
+ const universeRoot = require.resolve('eslint-config-universe/package.json');
7
+ const { defineConfig } = require(
8
+ require.resolve('eslint/config', {
9
+ paths: [universeRoot],
10
+ })
11
+ );
12
+ const globals = require(require.resolve('globals', { paths: [universeRoot] }));
13
+
14
+ module.exports = defineConfig([
15
+ {
16
+ extends: universeNativeConfig,
17
+
18
+ rules: {
19
+ 'no-restricted-imports': [
20
+ 'warn',
21
+ {
22
+ // fbjs is a Facebook-internal package not intended to be a public API
23
+ patterns: ['fbjs/*', 'fbjs'],
24
+ },
25
+ ],
26
+ },
27
+ },
28
+ {
29
+ files: ['**/__tests__/*'],
30
+
31
+ languageOptions: {
32
+ globals: {
33
+ ...globals.node,
34
+ __DEV__: true,
35
+ },
36
+ },
37
+ },
38
+ {
39
+ files: ['./*.config.js', './.*rc.js'],
40
+ extends: universeNodeConfig,
41
+ },
42
+ {
43
+ files: ['**/*.ts', '**/*.tsx', '**/*.d.ts'],
44
+
45
+ rules: {
46
+ // NOTE: This is already handled by TypeScript itself
47
+ // Turning this on blocks legitimate type overloads
48
+ // TODO(@kitten): Please move this to universe
49
+ 'no-redeclare': 'off',
50
+ '@typescript-eslint/no-redeclare': 'off',
51
+
52
+ // NOTE: Handled by TypeScript
53
+ // TODO(@kitten): Please move this to universe
54
+ 'no-unused-expressions': 'off',
55
+ 'no-unused-vars': 'off',
56
+ '@typescript-eslint/no-unused-expressions': 'off',
57
+ '@typescript-eslint/no-unused-vars': 'off',
58
+ },
59
+ },
60
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-module-scripts",
3
- "version": "4.1.6",
3
+ "version": "4.1.7",
4
4
  "description": "A private package for various tasks for Expo module packages like compiling and testing",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -35,16 +35,16 @@
35
35
  "@tsconfig/node18": "^18.2.2",
36
36
  "@types/jest": "^29.2.1",
37
37
  "babel-plugin-dynamic-import-node": "^2.3.3",
38
- "babel-preset-expo": "~13.1.9",
38
+ "babel-preset-expo": "~13.1.11",
39
39
  "commander": "^12.1.0",
40
40
  "eslint-config-universe": "^15.0.3",
41
41
  "glob": "^10.4.2",
42
- "jest-expo": "~53.0.2",
42
+ "jest-expo": "~53.0.5",
43
43
  "jest-snapshot-prettier": "npm:prettier@^2",
44
44
  "jest-watch-typeahead": "2.2.1",
45
45
  "resolve-workspace-root": "^2.0.0",
46
46
  "ts-jest": "~29.0.4",
47
47
  "typescript": "^5.8.3"
48
48
  },
49
- "gitHead": "2055b46ab64df8f8f0211b9557d1c5f65a8e15d5"
49
+ "gitHead": "49c9d53cf0a9fc8179d1c8f5268beadd141f70ca"
50
50
  }
@@ -0,0 +1,4 @@
1
+ // @generated by expo-module-scripts
2
+ const { defineConfig } = require('eslint/config');
3
+ const baseConfig = require('expo-module-scripts/eslint.config.base');
4
+ module.exports = defineConfig([baseConfig]);