Merge pull request #13091 from Snuffleupagus/eslint-no-var
Enable the ESLint `no-var` rule globally
This commit is contained in:
		
						commit
						fb78604383
					
				@ -7,7 +7,7 @@ external/webL10n/
 | 
			
		||||
external/cmapscompress/
 | 
			
		||||
external/builder/fixtures/
 | 
			
		||||
external/builder/fixtures_esprima/
 | 
			
		||||
external/quickjs/quickjs-eval.js
 | 
			
		||||
external/quickjs/
 | 
			
		||||
src/shared/cffStandardStrings.js
 | 
			
		||||
src/shared/fonts_utils.js
 | 
			
		||||
test/tmp/
 | 
			
		||||
 | 
			
		||||
@ -197,7 +197,7 @@
 | 
			
		||||
    "no-useless-computed-key": "error",
 | 
			
		||||
    "no-useless-constructor": "error",
 | 
			
		||||
    "no-useless-rename": "error",
 | 
			
		||||
    "no-var": "off",
 | 
			
		||||
    "no-var": "error",
 | 
			
		||||
    "object-shorthand": ["error", "always", {
 | 
			
		||||
      "avoidQuotes": true,
 | 
			
		||||
    }],
 | 
			
		||||
 | 
			
		||||
@ -8,9 +8,4 @@
 | 
			
		||||
    "pdfjsLib": false,
 | 
			
		||||
    "pdfjsViewer": false,
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  "rules": {
 | 
			
		||||
    // ECMAScript 6
 | 
			
		||||
    "no-var": "error",
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -17,6 +17,7 @@
 | 
			
		||||
 | 
			
		||||
  "rules": {
 | 
			
		||||
    "mozilla/import-globals": "error",
 | 
			
		||||
    "no-var": "off",
 | 
			
		||||
    "object-shorthand": "off",
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -16,6 +16,7 @@
 | 
			
		||||
 | 
			
		||||
  "rules": {
 | 
			
		||||
    // Items different from the mozilla/recommended configuration.
 | 
			
		||||
    "no-var": "off",
 | 
			
		||||
 | 
			
		||||
    // Other rules mozilla/recommended hasn't enabled yet.
 | 
			
		||||
    "no-shadow": "error",
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										5
									
								
								external/.eslintrc
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								external/.eslintrc
									
									
									
									
										vendored
									
									
								
							@ -6,4 +6,9 @@
 | 
			
		||||
  "env": {
 | 
			
		||||
    "node": true,
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  "rules": {
 | 
			
		||||
    // ECMAScript 6
 | 
			
		||||
    "no-var": "off",
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -13,7 +13,6 @@
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
/* eslint-env node */
 | 
			
		||||
/* eslint no-var: error */
 | 
			
		||||
/* globals target */
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
 | 
			
		||||
@ -1,10 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  "extends": [
 | 
			
		||||
    "../.eslintrc"
 | 
			
		||||
  ],
 | 
			
		||||
 | 
			
		||||
  "rules": {
 | 
			
		||||
    // ECMAScript 6
 | 
			
		||||
    "no-var": "error",
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
@ -4,7 +4,7 @@
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  "extends": [
 | 
			
		||||
    "../.eslintrc"
 | 
			
		||||
    "../../.eslintrc"
 | 
			
		||||
  ],
 | 
			
		||||
 | 
			
		||||
  "env": {
 | 
			
		||||
 | 
			
		||||
@ -4,7 +4,7 @@
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  "extends": [
 | 
			
		||||
    "../.eslintrc"
 | 
			
		||||
    "../../.eslintrc"
 | 
			
		||||
  ],
 | 
			
		||||
 | 
			
		||||
  "env": {
 | 
			
		||||
 | 
			
		||||
@ -12,6 +12,7 @@
 | 
			
		||||
 * See the License for the specific language governing permissions and
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
/* eslint-disable no-var */
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,5 @@
 | 
			
		||||
/* eslint-disable no-var */
 | 
			
		||||
 | 
			
		||||
const fs = require("fs");
 | 
			
		||||
const crypto = require("crypto");
 | 
			
		||||
const execSync = require("child_process").execSync;
 | 
			
		||||
 | 
			
		||||
@ -13,6 +13,7 @@
 | 
			
		||||
 * See the License for the specific language governing permissions and
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
/* eslint-disable no-var */
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -13,6 +13,7 @@
 | 
			
		||||
 * See the License for the specific language governing permissions and
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
/* eslint-disable no-var */
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -12,6 +12,7 @@
 | 
			
		||||
 * See the License for the specific language governing permissions and
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
/* eslint-disable no-var */
 | 
			
		||||
/* globals pdfjsLib, pdfjsViewer */
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
 | 
			
		||||
@ -1,10 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  "extends": [
 | 
			
		||||
    "../.eslintrc"
 | 
			
		||||
  ],
 | 
			
		||||
 | 
			
		||||
  "rules": {
 | 
			
		||||
    // ECMAScript 6
 | 
			
		||||
    "no-var": "error",
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
@ -1,3 +1,5 @@
 | 
			
		||||
/* eslint-disable no-var */
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
 | 
			
		||||
var fs = require("fs");
 | 
			
		||||
 | 
			
		||||
@ -13,6 +13,7 @@
 | 
			
		||||
 * See the License for the specific language governing permissions and
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
/* eslint-disable no-var */
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -13,6 +13,7 @@
 | 
			
		||||
 * See the License for the specific language governing permissions and
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
/* eslint-disable no-var */
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -6,8 +6,5 @@
 | 
			
		||||
  "rules": {
 | 
			
		||||
    // Plugins
 | 
			
		||||
    "import/no-unresolved": ["error", { "ignore": ["pdfjs/"] }],
 | 
			
		||||
 | 
			
		||||
    // ECMAScript 6
 | 
			
		||||
    "no-var": "error",
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -13,6 +13,7 @@
 | 
			
		||||
 * See the License for the specific language governing permissions and
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
/* eslint-disable no-var */
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -6,8 +6,5 @@
 | 
			
		||||
  "rules": {
 | 
			
		||||
    // Plugins
 | 
			
		||||
    "import/no-unresolved": ["error", { "ignore": ["pdfjs-lib"]}],
 | 
			
		||||
 | 
			
		||||
    // ECMAScript 6
 | 
			
		||||
    "no-var": "error",
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user