mirror of
https://github.com/facebook/react.git
synced 2026-02-26 18:58:05 +00:00
* Update ESLint to 3.10.2 Also pull in fbjs for extending properly, per @zpao. This also disables consistent-return, which has about 80 failing cases in React currently. If we'd like to turn this back on, we should do it separately and fix all the call sites properly (rather than just adding 'return undefined;' everywhere, which adds no value. Fixes to all existing lint errors plus an update for yarn.lock to follow. * Update yarn.lock after the eslint update. * Fix all new eslint failures Unfortunately I had to add three eslint-disable-next-line instances. All have explanations inline. * Switch Travis to use yarn instead of npm
129 lines
4.0 KiB
JSON
129 lines
4.0 KiB
JSON
{
|
|
"name": "react-build",
|
|
"private": true,
|
|
"version": "16.0.0-alpha",
|
|
"devDependencies": {
|
|
"aliasify": "^2.0.0",
|
|
"art": "^0.10.1",
|
|
"async": "^1.5.0",
|
|
"babel-cli": "^6.6.5",
|
|
"babel-core": "^6.0.0",
|
|
"babel-eslint": "^7.1.0",
|
|
"babel-plugin-check-es2015-constants": "^6.5.0",
|
|
"babel-plugin-syntax-trailing-function-commas": "^6.5.0",
|
|
"babel-plugin-transform-class-properties": "^6.11.5",
|
|
"babel-plugin-transform-es2015-arrow-functions": "^6.5.2",
|
|
"babel-plugin-transform-es2015-block-scoped-functions": "^6.5.0",
|
|
"babel-plugin-transform-es2015-block-scoping": "^6.5.0",
|
|
"babel-plugin-transform-es2015-classes": "^6.5.2",
|
|
"babel-plugin-transform-es2015-computed-properties": "^6.5.2",
|
|
"babel-plugin-transform-es2015-destructuring": "^6.5.0",
|
|
"babel-plugin-transform-es2015-for-of": "^6.5.2",
|
|
"babel-plugin-transform-es2015-literals": "^6.5.0",
|
|
"babel-plugin-transform-es2015-modules-commonjs": "^6.5.2",
|
|
"babel-plugin-transform-es2015-object-super": "^6.5.0",
|
|
"babel-plugin-transform-es2015-parameters": "^6.5.0",
|
|
"babel-plugin-transform-es2015-shorthand-properties": "^6.5.0",
|
|
"babel-plugin-transform-es2015-spread": "^6.5.2",
|
|
"babel-plugin-transform-es2015-template-literals": "^6.5.2",
|
|
"babel-plugin-transform-es3-member-expression-literals": "^6.5.0",
|
|
"babel-plugin-transform-es3-property-literals": "^6.5.0",
|
|
"babel-plugin-transform-object-rest-spread": "^6.6.5",
|
|
"babel-plugin-transform-react-jsx-source": "^6.8.0",
|
|
"babel-preset-react": "^6.5.0",
|
|
"babel-traverse": "^6.9.0",
|
|
"babylon": "6.8.0",
|
|
"browserify": "^13.0.0",
|
|
"bundle-collapser": "^1.1.1",
|
|
"coffee-script": "^1.8.0",
|
|
"core-js": "^2.2.1",
|
|
"coveralls": "^2.11.6",
|
|
"del": "^2.0.2",
|
|
"derequire": "^2.0.3",
|
|
"eslint": "^3.10.2",
|
|
"eslint-config-fbjs": "^1.1.1",
|
|
"eslint-plugin-babel": "^3.3.0",
|
|
"eslint-plugin-flowtype": "^2.25.0",
|
|
"eslint-plugin-react": "^6.7.1",
|
|
"eslint-plugin-react-internal": "file:eslint-rules",
|
|
"fbjs": "^0.8.5",
|
|
"fbjs-scripts": "^0.6.0",
|
|
"flow-bin": "^0.34.0",
|
|
"glob": "^6.0.1",
|
|
"grunt": "^0.4.5",
|
|
"grunt-cli": "^0.1.13",
|
|
"grunt-compare-size": "^0.4.0",
|
|
"grunt-contrib-clean": "^0.6.0",
|
|
"grunt-contrib-compress": "^0.14.0",
|
|
"gulp": "^3.9.0",
|
|
"gulp-babel": "^6.0.0",
|
|
"gulp-flatten": "^0.2.0",
|
|
"gulp-load-plugins": "^1.2.4",
|
|
"gulp-util": "^3.0.7",
|
|
"gzip-js": "~0.3.2",
|
|
"jest": "^15.1.1",
|
|
"jest-config": "^15.1.1",
|
|
"jest-jasmine2": "^15.1.1",
|
|
"jest-runtime": "^15.1.1",
|
|
"loose-envify": "^1.1.0",
|
|
"merge-stream": "^1.0.0",
|
|
"object-assign": "^4.1.0",
|
|
"platform": "^1.1.0",
|
|
"run-sequence": "^1.1.4",
|
|
"through2": "^2.0.0",
|
|
"tmp": "~0.0.28",
|
|
"typescript": "~1.8.10",
|
|
"uglify-js": "^2.5.0",
|
|
"uglifyify": "^3.0.1",
|
|
"yargs": "^6.3.0"
|
|
},
|
|
"devEngines": {
|
|
"node": "4.x || 5.x || 6.x || 7.x",
|
|
"npm": "2.x || 3.x || 4.x"
|
|
},
|
|
"commonerConfig": {
|
|
"version": 7
|
|
},
|
|
"scripts": {
|
|
"build": "grunt build",
|
|
"linc": "git diff --name-only --diff-filter=ACMRTUB `git merge-base HEAD master` | grep '\\.js$' | xargs eslint --",
|
|
"lint": "grunt lint",
|
|
"postinstall": "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json",
|
|
"test": "jest",
|
|
"flow": "flow"
|
|
},
|
|
"jest": {
|
|
"modulePathIgnorePatterns": [
|
|
"/.module-cache/",
|
|
"/react/build/"
|
|
],
|
|
"rootDir": "",
|
|
"scriptPreprocessor": "scripts/jest/preprocessor.js",
|
|
"setupFiles": [
|
|
"scripts/jest/environment.js"
|
|
],
|
|
"setupTestFrameworkScriptFile": "scripts/jest/test-framework-setup.js",
|
|
"testRegex": "/__tests__/",
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"node",
|
|
"coffee",
|
|
"ts"
|
|
],
|
|
"testPathDirs": [
|
|
"<rootDir>/eslint-rules",
|
|
"<rootDir>/mocks",
|
|
"<rootDir>/scripts",
|
|
"<rootDir>/src",
|
|
"node_modules/fbjs"
|
|
],
|
|
"collectCoverageFrom": [
|
|
"src/**/*.js",
|
|
"!src/shared/vendor/third_party/*.js",
|
|
"!src/test/*.js"
|
|
],
|
|
"timers": "fake"
|
|
}
|
|
}
|