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

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

{
"name": "@react-native-community/eslint-config",
"version": "1.0.0",
"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",
"url": "git@github.com:facebook/react-native.git"
},
"homepage": "https://github.com/facebook/react-native/tree/master/packages/eslint-config-react-native-community#readme",
"dependencies": {
"@react-native-community/eslint-plugin": "^1.0.0",
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.25.0",
"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.19.0",
"eslint-plugin-react-hooks": "^3.0.0",
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-react-native": "3.8.1",
"prettier": "^2.0.2"
},
"peerDependencies": {
"eslint": ">=6"
},
"devDependencies": {
"eslint": "^6.5.1"
}
}