Ticket #45145: fix-jshint-errors-after-43824.diff
File fix-jshint-errors-after-43824.diff, 6.5 KB (added by , 6 years ago) |
---|
-
Gruntfile.js
1 1 /* jshint node:true */ 2 2 /* globals Set */ 3 3 var webpackConfig = require( './webpack.config' ); 4 const { execSync } = require( 'child_process' );4 var execSync = require( 'child_process' ).execSync; 5 5 6 6 module.exports = function(grunt) { 7 7 var path = require('path'), … … 12 12 BANNER_TEXT = '/*! This file is auto-generated */', 13 13 autoprefixer = require( 'autoprefixer' ); 14 14 15 constpackageJson = grunt.file.readJSON( 'package.json' );15 var packageJson = grunt.file.readJSON( 'package.json' ); 16 16 17 17 // Load tasks. 18 18 require('matchdep').filterDev(['grunt-*', '!grunt-legacy-util']).forEach( grunt.loadNpmTasks ); … … 788 788 ] ); 789 789 790 790 grunt.registerTask( 'download-packages', function() { 791 constdirectory = 'packages';792 constversion = packageJson.wordpress.packagesVersion;791 var directory = 'packages'; 792 var version = packageJson.wordpress.packagesVersion; 793 793 794 794 if ( ! grunt.file.exists( directory ) ) { 795 795 // Clone gutenberg 796 execSync( `git clone https://github.com/WordPress/gutenberg.git ${ directory }`, { stdio: 'inherit' } );796 execSync( 'git clone https://github.com/WordPress/gutenberg.git ' + directory, { stdio: 'inherit' } ); 797 797 } 798 798 799 799 execSync( 'git fetch --tags', { cwd: directory, stdio: 'inherit' } ); 800 800 801 801 // Make sure we are on the correct version of Gutenberg. 802 execSync( `git reset --hard ${ version }`, { cwd: directory, stdio: 'inherit' } );802 execSync( 'git reset --hard ' + version, { cwd: directory, stdio: 'inherit' } ); 803 803 804 804 // Install Gutenberg dependencies and build the packages. 805 805 execSync( 'npm install', { cwd: directory, stdio: 'inherit' } ); -
tests/qunit/fixtures/wp-api-generated.js
5078 5078 "author": 406, 5079 5079 "date": "2017-02-14T00:00:00", 5080 5080 "date_gmt": "2017-02-14T00:00:00", 5081 "id": 36717,5081 "id": 1527, 5082 5082 "modified": "2017-02-14T00:00:00", 5083 5083 "modified_gmt": "2017-02-14T00:00:00", 5084 "parent": 36716,5085 "slug": " 36716-revision-v1",5084 "parent": 1526, 5085 "slug": "1526-revision-v1", 5086 5086 "guid": { 5087 "rendered": "http://example.org/?p= 36717"5087 "rendered": "http://example.org/?p=1527" 5088 5088 }, 5089 5089 "title": { 5090 5090 "rendered": "REST API Client Fixture: Post" … … 5098 5098 "_links": { 5099 5099 "parent": [ 5100 5100 { 5101 "href": "http://example.org/index.php?rest_route=/wp/v2/posts/ 36716"5101 "href": "http://example.org/index.php?rest_route=/wp/v2/posts/1526" 5102 5102 } 5103 5103 ] 5104 5104 } … … 5133 5133 "author": 406, 5134 5134 "date": "2017-02-14T00:00:00", 5135 5135 "date_gmt": "2017-02-14T00:00:00", 5136 "id": 36718,5136 "id": 1528, 5137 5137 "modified": "2017-02-14T00:00:00", 5138 5138 "modified_gmt": "2017-02-14T00:00:00", 5139 "parent": 36716,5140 "slug": " 36716-autosave-v1",5139 "parent": 1526, 5140 "slug": "1526-autosave-v1", 5141 5141 "guid": { 5142 "rendered": "http://example.org/?p= 36718"5142 "rendered": "http://example.org/?p=1528" 5143 5143 }, 5144 5144 "title": { 5145 5145 "rendered": "" … … 5153 5153 "_links": { 5154 5154 "parent": [ 5155 5155 { 5156 "href": "http://example.org/index.php?rest_route=/wp/v2/posts/ 36716"5156 "href": "http://example.org/index.php?rest_route=/wp/v2/posts/1526" 5157 5157 } 5158 5158 ] 5159 5159 } … … 5164 5164 "author": 406, 5165 5165 "date": "2017-02-14T00:00:00", 5166 5166 "date_gmt": "2017-02-14T00:00:00", 5167 "id": 36718,5167 "id": 1528, 5168 5168 "modified": "2017-02-14T00:00:00", 5169 5169 "modified_gmt": "2017-02-14T00:00:00", 5170 "parent": 36716,5171 "slug": " 36716-autosave-v1",5170 "parent": 1526, 5171 "slug": "1526-autosave-v1", 5172 5172 "guid": { 5173 "rendered": "http://example.org/?p= 36718"5173 "rendered": "http://example.org/?p=1528" 5174 5174 }, 5175 5175 "title": { 5176 5176 "rendered": "" … … 5338 5338 "author": 406, 5339 5339 "date": "2017-02-14T00:00:00", 5340 5340 "date_gmt": "2017-02-14T00:00:00", 5341 "id": 36720,5341 "id": 1530, 5342 5342 "modified": "2017-02-14T00:00:00", 5343 5343 "modified_gmt": "2017-02-14T00:00:00", 5344 "parent": 36719,5345 "slug": " 36719-revision-v1",5344 "parent": 1529, 5345 "slug": "1529-revision-v1", 5346 5346 "guid": { 5347 "rendered": "http://example.org/?p= 36720"5347 "rendered": "http://example.org/?p=1530" 5348 5348 }, 5349 5349 "title": { 5350 5350 "rendered": "REST API Client Fixture: Page" … … 5358 5358 "_links": { 5359 5359 "parent": [ 5360 5360 { 5361 "href": "http://example.org/index.php?rest_route=/wp/v2/pages/ 36719"5361 "href": "http://example.org/index.php?rest_route=/wp/v2/pages/1529" 5362 5362 } 5363 5363 ] 5364 5364 } … … 5393 5393 "author": 406, 5394 5394 "date": "2017-02-14T00:00:00", 5395 5395 "date_gmt": "2017-02-14T00:00:00", 5396 "id": 36721,5396 "id": 1531, 5397 5397 "modified": "2017-02-14T00:00:00", 5398 5398 "modified_gmt": "2017-02-14T00:00:00", 5399 "parent": 36719,5400 "slug": " 36719-autosave-v1",5399 "parent": 1529, 5400 "slug": "1529-autosave-v1", 5401 5401 "guid": { 5402 "rendered": "http://example.org/?p= 36721"5402 "rendered": "http://example.org/?p=1531" 5403 5403 }, 5404 5404 "title": { 5405 5405 "rendered": "" … … 5413 5413 "_links": { 5414 5414 "parent": [ 5415 5415 { 5416 "href": "http://example.org/index.php?rest_route=/wp/v2/pages/ 36719"5416 "href": "http://example.org/index.php?rest_route=/wp/v2/pages/1529" 5417 5417 } 5418 5418 ] 5419 5419 } … … 5424 5424 "author": 406, 5425 5425 "date": "2017-02-14T00:00:00", 5426 5426 "date_gmt": "2017-02-14T00:00:00", 5427 "id": 36721,5427 "id": 1531, 5428 5428 "modified": "2017-02-14T00:00:00", 5429 5429 "modified_gmt": "2017-02-14T00:00:00", 5430 "parent": 36719,5431 "slug": " 36719-autosave-v1",5430 "parent": 1529, 5431 "slug": "1529-autosave-v1", 5432 5432 "guid": { 5433 "rendered": "http://example.org/?p= 36721"5433 "rendered": "http://example.org/?p=1531" 5434 5434 }, 5435 5435 "title": { 5436 5436 "rendered": ""