@react-native/eslint-plugin-specs 0.74.0 → 0.74.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/eslint-plugin-specs",
|
|
3
|
-
"version": "0.74.
|
|
3
|
+
"version": "0.74.1",
|
|
4
4
|
"description": "ESLint rules to validate NativeModule and Component Specs",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,8 +31,7 @@
|
|
|
31
31
|
"@babel/eslint-parser": "^7.20.0",
|
|
32
32
|
"@babel/plugin-transform-flow-strip-types": "^7.20.0",
|
|
33
33
|
"@babel/preset-flow": "^7.20.0",
|
|
34
|
-
"@react-native/codegen": "
|
|
35
|
-
"flow-parser": "^0.206.0",
|
|
34
|
+
"@react-native/codegen": "0.74.1",
|
|
36
35
|
"make-dir": "^2.1.0",
|
|
37
36
|
"pirates": "^4.0.1",
|
|
38
37
|
"source-map-support": "0.5.0"
|
package/react-native-modules.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
const path = require('path');
|
|
14
13
|
const withBabelRegister = require('./with-babel-register');
|
|
14
|
+
const path = require('path');
|
|
15
15
|
|
|
16
16
|
// We use the prepack hook before publishing package to set this value to true
|
|
17
17
|
const PACKAGE_USAGE = true;
|
|
@@ -154,7 +154,7 @@ function rule(context) {
|
|
|
154
154
|
const [parsingErrors, tryParse] = createParserErrorCapturer();
|
|
155
155
|
|
|
156
156
|
const sourceCode = context.getSourceCode().getText();
|
|
157
|
-
const ast = parser.getAst(sourceCode);
|
|
157
|
+
const ast = parser.getAst(sourceCode, filename);
|
|
158
158
|
|
|
159
159
|
tryParse(() => {
|
|
160
160
|
buildModuleSchema(
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* @oncall react_native
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
const path = require('path');
|
|
12
11
|
const fs = require('fs');
|
|
13
|
-
const os = require('os');
|
|
14
12
|
const {sync: makeDirSync} = require('make-dir');
|
|
13
|
+
const os = require('os');
|
|
14
|
+
const path = require('path');
|
|
15
15
|
|
|
16
16
|
const packageJson = JSON.parse(
|
|
17
17
|
fs.readFileSync(require.resolve('../package.json'), 'utf8'),
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
* @oncall react_native
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
const diskCache = require('./disk-cache');
|
|
11
12
|
const babel = require('@babel/core');
|
|
12
|
-
const {
|
|
13
|
-
const sourceMapSupport = require('source-map-support');
|
|
14
|
-
const {addHook} = require('pirates');
|
|
15
|
-
const path = require('path');
|
|
13
|
+
const {DEFAULT_EXTENSIONS, OptionManager} = require('@babel/core');
|
|
16
14
|
const fs = require('fs');
|
|
17
|
-
const
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const {addHook} = require('pirates');
|
|
17
|
+
const sourceMapSupport = require('source-map-support');
|
|
18
18
|
|
|
19
19
|
function compile(sourceMapManager, cache, options, code, filename) {
|
|
20
20
|
const opts = new OptionManager().init({
|