@react-native/eslint-plugin-specs 0.0.3 → 0.70.0

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
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-eslint'),
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
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
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.
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/eslint-plugin-specs",
3
- "version": "0.0.3",
3
+ "version": "0.70.0",
4
4
  "description": "ESLint rules to validate NativeModule and Component Specs",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -9,14 +9,16 @@
9
9
  "directory": "packages/eslint-plugin-specs"
10
10
  },
11
11
  "scripts": {
12
- "prepublish": "node prepublish.js"
12
+ "prepack": "node prepack.js"
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
  },
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
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.
@@ -13,7 +13,7 @@
13
13
  const path = require('path');
14
14
  const withBabelRegister = require('./with-babel-register');
15
15
 
16
- // We run yarn prepublish before publishing package which will set this value to true
16
+ // We use the prepack hook before publishing package to set this value to true
17
17
  const PACKAGE_USAGE = true;
18
18
  const ERRORS = {
19
19
  misnamedHasteModule(hasteModuleName) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
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.