react-native-macos/packages/eslint-config-react-native-.../package.json

37 строки
1.1 KiB
JSON
Исходник Обычный вид История

{
"name": "@react-native-community/eslint-config",
"version": "3.0.1",
"description": "ESLint config for React Native",
"main": "index.js",
Update eslint-config dependencies (#27085) Summary: A couple of minor and patch updates to the `eslint-config` package, to avoid warnings and errors with the generated code of the latest RN version templates, such as: ``` warning "react-native-community/eslint-config > eslint-plugin-react@7.12.4" has incorrect peer dependency "eslint@^3.0.0 || ^4.0.0 || ^5.0.0". warning "react-native-community/eslint-config > eslint-plugin-react-native@3.6.0" has incorrect peer dependency "eslint@^3.17.0 || ^4 || ^5". ``` `yarn check` outputs the following errors: ``` error "react-native-community/eslint-config#eslint-plugin-react-native#eslint@^3.17.0 || ^4 || ^5" doesn't satisfy found match of "eslint@6.6.0" error "react-native-community/eslint-config#eslint-plugin-react#eslint@^3.0.0 || ^4.0.0 || ^5.0.0" doesn't satisfy found match of "eslint@6.6.0" ``` By adding the missing `"license"` field, from now on this also avoids the following warnings: ``` warning package.json: No license field warning react-native-community/eslint-config@0.0.6: No license field ``` ## Changelog [General] [Fixed] - Fix eslint-config peer dependency warnings Pull Request resolved: https://github.com/facebook/react-native/pull/27085 Test Plan: - Publish current `master` package locally (`0.0.6` is [not published](https://www.npmjs.com/package/react-native-community/eslint-config) yet!) - Create new RN 0.61.3 project, set `eslint-config` to local package, observe errors/warnings running `yarn`/`yarn check` - `yarn lint` passes cleanly - Update dependencies (as in this PR), republish locally - Update RN test project to new `eslint-config` package, **observe no more errors** - `yarn lint` still passes cleanly Differential Revision: D18298733 Pulled By: cpojer fbshipit-source-id: 9a550365521fbaa4b940bc8c02cbeb345d8900b6
2019-11-04 19:14:03 +03:00
"license": "MIT",
"repository": {
"type": "git",
chore: deduplicate lock, update packages repository fields (#30044) Summary: This small PR includes the following changes: * deduplicate yarn lock file using [`yarn-deduplicate`](https://github.com/atlassian/yarn-deduplicate) package * deduplicate script has been added as `update-lock`, let me know if you would like also to see this in [`postinstall`](https://docs.npmjs.com/misc/scripts) (to automatically optimize lock on every dependency change) * according to the [npm docs](https://docs.npmjs.com/files/package.json#repository): * main `package.json` repository field has been replaced with shorthand * monorepo packages repository field has been extended by `directory` The main goal of introducing deduplication script was to optimize the dependencies footprint while developing and speed up the initial installation process. Running `yarn-deduplicate` also increase the security in some way, because it enforces usage only of the latest version of the package. You can read more about the benefits in the deduplicate script [repository](https://github.com/atlassian/yarn-deduplicate#duplicated-packages). ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Internal] [Added] - add yarn lock deduplication script Pull Request resolved: https://github.com/facebook/react-native/pull/30044 Test Plan: `yarn install` was successful, this also should not affect yarn workspaces in any way. Reviewed By: GijsWeterings Differential Revision: D23959812 Pulled By: cpojer fbshipit-source-id: e2455e3718378e1ce6206e79463d4083f8fe5d47
2020-09-29 08:39:27 +03:00
"url": "git@github.com:facebook/react-native.git",
"directory": "packages/eslint-config-react-native-community"
},
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/eslint-config-react-native-community#readme",
"dependencies": {
"@react-native-community/eslint-plugin": "^1.1.0",
"@typescript-eslint/eslint-plugin": "^4.22.1",
"@typescript-eslint/parser": "^4.22.1",
"babel-eslint": "^10.1.0",
"eslint-config-prettier": "^6.10.1",
Update eslint-config dependencies (#27085) Summary: A couple of minor and patch updates to the `eslint-config` package, to avoid warnings and errors with the generated code of the latest RN version templates, such as: ``` warning "react-native-community/eslint-config > eslint-plugin-react@7.12.4" has incorrect peer dependency "eslint@^3.0.0 || ^4.0.0 || ^5.0.0". warning "react-native-community/eslint-config > eslint-plugin-react-native@3.6.0" has incorrect peer dependency "eslint@^3.17.0 || ^4 || ^5". ``` `yarn check` outputs the following errors: ``` error "react-native-community/eslint-config#eslint-plugin-react-native#eslint@^3.17.0 || ^4 || ^5" doesn't satisfy found match of "eslint@6.6.0" error "react-native-community/eslint-config#eslint-plugin-react#eslint@^3.0.0 || ^4.0.0 || ^5.0.0" doesn't satisfy found match of "eslint@6.6.0" ``` By adding the missing `"license"` field, from now on this also avoids the following warnings: ``` warning package.json: No license field warning react-native-community/eslint-config@0.0.6: No license field ``` ## Changelog [General] [Fixed] - Fix eslint-config peer dependency warnings Pull Request resolved: https://github.com/facebook/react-native/pull/27085 Test Plan: - Publish current `master` package locally (`0.0.6` is [not published](https://www.npmjs.com/package/react-native-community/eslint-config) yet!) - Create new RN 0.61.3 project, set `eslint-config` to local package, observe errors/warnings running `yarn`/`yarn check` - `yarn lint` passes cleanly - Update dependencies (as in this PR), republish locally - Update RN test project to new `eslint-config` package, **observe no more errors** - `yarn lint` still passes cleanly Differential Revision: D18298733 Pulled By: cpojer fbshipit-source-id: 9a550365521fbaa4b940bc8c02cbeb345d8900b6
2019-11-04 19:14:03 +03:00
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-flowtype": "2.50.3",
"eslint-plugin-jest": "22.4.1",
"eslint-plugin-prettier": "3.1.2",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.7",
"eslint-plugin-react-native": "^3.10.0",
"prettier": "^2.4.1"
},
"peerDependencies": {
"eslint": ">=7",
"prettier": ">=2"
},
"devDependencies": {
"eslint": "7.12.0",
"prettier": "^2.4.1"
}
}