Skip to content

Commit

Permalink
refactor(react-native-github/eslint-*): rename eslint packages to have
Browse files Browse the repository at this point in the history
…@react-native prefix

Summary:
Changelog:
[General][Changed] - renamed react-native-community/eslint-config to react-native/eslint-config and bumped to 0.72.0 as a part of [migration to monorepo structure](facebook#34692)
[General][Changed] - renamed react-native-community/eslint-plugin to react-native/eslint-plugin and bumped to 0.72.0 as a part of [migration to monorepo structure](facebook#34692)

Differential Revision: D41340149

fbshipit-source-id: 46d338580ee79a426965d424dcdab3c7ef276c0c
  • Loading branch information
hoxy authored and facebook-github-bot committed Nov 17, 2022
1 parent a071e14 commit 6e7355b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 21 deletions.
7 changes: 0 additions & 7 deletions .circleci/verdaccio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ packages:
'@react-native/*':
access: $all
publish: $all
# The below specific entries can be removed once they are renamed and have the @react-native prefix
'@react-native-community/eslint-config':
access: $all
publish: $all
'@react-native-community/eslint-plugin':
access: $all
publish: $all
'react-native-codegen':
access: $all
publish: $all
Expand Down
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require('eslint-plugin-lint').load(path.join(__dirname, 'tools/eslint/rules'));
module.exports = {
root: true,

extends: ['@react-native-community'],
extends: ['@react-native'],

plugins: ['@react-native/eslint-plugin-specs', 'lint'],

Expand All @@ -38,7 +38,7 @@ module.exports = {
{
files: ['Libraries/**/*.js'],
rules: {
'@react-native-community/platform-colors': 2,
'@react-native/platform-colors': 2,
'@react-native/specs/react-native-modules': 2,
'lint/no-haste-imports': 2,
'lint/no-react-native-imports': 2,
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-react-native-community/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
'react',
'react-hooks',
'react-native',
'@react-native-community',
'@react-native',
'jest',
],

Expand Down
5 changes: 2 additions & 3 deletions packages/eslint-config-react-native-community/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-community/eslint-config",
"version": "3.2.0",
"name": "@react-native/eslint-config",
"version": "0.72.0",
"description": "ESLint config for React Native",
"main": "index.js",
"license": "MIT",
Expand All @@ -13,7 +13,6 @@
"dependencies": {
"@babel/core": "^7.14.0",
"@babel/eslint-parser": "^7.18.2",
"@react-native-community/eslint-plugin": "^1.1.0",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"eslint-config-prettier": "^8.5.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-plugin-react-native-community/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@react-native-community/eslint-plugin",
"version": "1.3.0",
"description": "ESLint rules for @react-native-community/eslint-config",
"name": "@react-native/eslint-plugin",
"version": "0.72.0",
"description": "ESLint rules for @react-native/eslint-config",
"main": "index.js",
"repository": {
"type": "git",
Expand Down
3 changes: 0 additions & 3 deletions repo-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
"@babel/generator": "^7.14.0",
"@babel/plugin-transform-regenerator": "^7.0.0",
"@definitelytyped/dtslint": "^0.0.127",
"@react-native-community/eslint-config": "*",
"@react-native-community/eslint-plugin": "*",
"@react-native/eslint-plugin-specs": "^0.72.0",
"@reactions/component": "^2.0.2",
"@types/react": "^18.0.18",
"@typescript-eslint/parser": "^5.30.5",
Expand Down
2 changes: 1 addition & 1 deletion template/_eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
root: true,
extends: '@react-native-community',
extends: '@react-native',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
};
2 changes: 1 addition & 1 deletion template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@babel/core": "^7.12.9",
"@babel/preset-env": "^7.14.0",
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^3.0.0",
"@react-native/eslint-config": "^0.72.0",
"@tsconfig/react-native": "^2.0.2",
"@types/jest": "^29.2.1",
"@types/react": "^18.0.24",
Expand Down

0 comments on commit 6e7355b

Please sign in to comment.