@react-native/eslint-config 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/index.js +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -220,6 +220,7 @@ module.exports = {
|
|
|
220
220
|
|
|
221
221
|
'no-catch-shadow': 1, // disallow the catch clause parameter name being the same as a variable in the outer scope (off by default in the node environment)
|
|
222
222
|
'no-delete-var': 1, // disallow deletion of variables
|
|
223
|
+
'no-global-assign': 2, // disallow assignments to native objects or read-only global variables
|
|
223
224
|
'no-label-var': 1, // disallow labels that share a name with a variable
|
|
224
225
|
'no-shadow': 1, // disallow declaration of variables already declared in the outer scope
|
|
225
226
|
'no-shadow-restricted-names': 1, // disallow shadowing of names such as arguments
|
|
@@ -254,7 +255,6 @@ module.exports = {
|
|
|
254
255
|
// These rules are purely matters of style and are quite subjective.
|
|
255
256
|
|
|
256
257
|
'key-spacing': 0,
|
|
257
|
-
'keyword-spacing': 1, // enforce spacing before and after keywords
|
|
258
258
|
'jsx-quotes': [1, 'prefer-double'], // enforces the usage of double quotes for all JSX attribute values which doesn’t contain a double quote
|
|
259
259
|
'comma-spacing': 0,
|
|
260
260
|
'no-multi-spaces': 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/eslint-config",
|
|
3
|
-
"version": "0.74.
|
|
3
|
+
"version": "0.74.1",
|
|
4
4
|
"description": "ESLint config for React Native",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@babel/core": "^7.20.0",
|
|
24
24
|
"@babel/eslint-parser": "^7.20.0",
|
|
25
|
-
"@react-native/eslint-plugin": "
|
|
25
|
+
"@react-native/eslint-plugin": "0.74.1",
|
|
26
26
|
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
|
27
27
|
"@typescript-eslint/parser": "^6.7.4",
|
|
28
28
|
"eslint-config-prettier": "^8.5.0",
|