@react-native/eslint-plugin-specs 0.0.3 → 0.0.4
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/__tests__/eslint-tester.js +6 -2
- package/__tests__/react-native-modules-test.js +1 -1
- package/index.js +1 -1
- package/package.json +4 -2
- package/prepublish.js +1 -1
- package/react-native-modules.js +2 -2
- package/with-babel-register/disk-cache.js +1 -1
- package/with-babel-register/index.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -12,10 +12,14 @@
|
|
|
12
12
|
const ESLintTester = require('eslint').RuleTester;
|
|
13
13
|
|
|
14
14
|
ESLintTester.setDefaultConfig({
|
|
15
|
-
parser: require.resolve('babel-
|
|
15
|
+
parser: require.resolve('@babel/eslint-parser'),
|
|
16
16
|
parserOptions: {
|
|
17
|
+
requireConfigFile: false,
|
|
17
18
|
ecmaVersion: 6,
|
|
18
19
|
sourceType: 'module',
|
|
20
|
+
babelOptions: {
|
|
21
|
+
presets: [require.resolve('@babel/preset-flow')],
|
|
22
|
+
},
|
|
19
23
|
},
|
|
20
24
|
});
|
|
21
25
|
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/eslint-plugin-specs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "ESLint rules to validate NativeModule and Component Specs",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -13,10 +13,12 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@babel/core": "^7.14.0",
|
|
16
|
+
"@babel/eslint-parser": "^7.18.2",
|
|
16
17
|
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
|
|
18
|
+
"@babel/preset-flow": "^7.17.12",
|
|
17
19
|
"flow-parser": "^0.121.0",
|
|
18
20
|
"make-dir": "^2.1.0",
|
|
19
|
-
"pirates":"^4.0.1",
|
|
21
|
+
"pirates": "^4.0.1",
|
|
20
22
|
"react-native-codegen": "*",
|
|
21
23
|
"source-map-support": "0.5.0"
|
|
22
24
|
},
|
package/prepublish.js
CHANGED
package/react-native-modules.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -14,7 +14,7 @@ const path = require('path');
|
|
|
14
14
|
const withBabelRegister = require('./with-babel-register');
|
|
15
15
|
|
|
16
16
|
// We run yarn prepublish before publishing package which will set this value to true
|
|
17
|
-
const PACKAGE_USAGE =
|
|
17
|
+
const PACKAGE_USAGE = false;
|
|
18
18
|
const ERRORS = {
|
|
19
19
|
misnamedHasteModule(hasteModuleName) {
|
|
20
20
|
return `Module ${hasteModuleName}: All files using TurboModuleRegistry must start with Native.`;
|