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 +6 -0
- package/bin/expo-module-configure +1 -0
- package/eslint.config.base.js +60 -0
- package/package.json +4 -4
- package/templates/eslint.config.js +4 -0
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._
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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": "
|
|
49
|
+
"gitHead": "49c9d53cf0a9fc8179d1c8f5268beadd141f70ca"
|
|
50
50
|
}
|