Permalink
Browse files

Move rule to shared config, Update CHANGES.md, fix errors

  • Loading branch information...
1 parent c380cd6 commit 1991234a31977a6d361b8392d92a05a3f4072f03 @omh1280 omh1280 committed Jun 23, 2017
View
@@ -1,7 +1,6 @@
{
"extends": "./Tools/eslint-config-cesium/browser.js",
"rules": {
- "no-unused-vars": ["error", {"vars": "all", "args": "none"}],
- "quotes": ["error", "single", {"avoidEscape": true}]
+ "no-unused-vars": ["error", {"vars": "all", "args": "none"}]
}
}
@@ -11,7 +11,7 @@ define([
Cartesian3,
Check,
CesiumMath) {
- "use strict";
+ 'use strict';
var defaultDimensions = new Cartesian3(1.0, 1.0, 1.0);
@@ -11,7 +11,7 @@ define([
Cartesian3,
Check,
CesiumMath) {
- "use strict";
+ 'use strict';
/**
* A ParticleEmitter that emits particles from a circle.
@@ -11,7 +11,7 @@ define([
Cartesian3,
Check,
CesiumMath) {
- "use strict";
+ 'use strict';
var defaultAngle = CesiumMath.toRadians(30.0);
@@ -476,7 +476,7 @@ define([
if (j < 0) {
throw new RuntimeError('Unmatched {.');
}
- result += "czm_" + exp.substr(i + 2, j - (i + 2));
+ result += 'czm_' + exp.substr(i + 2, j - (i + 2));
exp = exp.substr(j + 1);
i = exp.indexOf('${');
}
View
@@ -13,7 +13,7 @@ define([
Cartesian2,
Cartesian3,
Color) {
- "use strict";
+ 'use strict';
var defaultSize = new Cartesian2(1.0, 1.0);
@@ -31,7 +31,7 @@ define([
BillboardCollection,
Particle,
CircleEmitter) {
- "use strict";
+ 'use strict';
/**
* A ParticleSystem manages the updating and display of a collection of particles.
@@ -11,7 +11,7 @@ define([
Cartesian3,
Check,
CesiumMath) {
- "use strict";
+ 'use strict';
/**
* A ParticleEmitter that emits particles within a sphere.
@@ -10,6 +10,7 @@ Change Log
* Enable [no-loop-func](http://eslint.org/docs/rules/no-loop-func).
* Enable [no-undef-init](http://eslint.org/docs/rules/no-undef-init).
* Enable [no-implicit-globals](http://eslint.org/docs/rules/no-implicit-globals).
+* Enable [quotes](http://eslint.org/docs/rules/quotes) to enforce use of single quotes.
### 1.0.0 - 2017-06-12
@@ -36,6 +36,7 @@ module.exports = {
'no-unused-vars': ['error', {vars: 'all', args: 'all'}],
'no-useless-escape': 'off',
'no-use-before-define': ['error', 'nofunc'],
+ 'quotes': ['error', 'single', {avoidEscape: true}],
semi: 'error',
strict: 'error',
'wrap-iife': ['error', 'any']
View
@@ -106,7 +106,7 @@
</div>
<script type="text/javascript">
if (window.location.protocol === 'file:') {
- document.body.innerHTML = "";
+ document.body.innerHTML = '';
document.write('<p><b>This file must be hosted in a web server.</br>');
document.write('See our <a href="https://cesiumjs.org/2013/04/12/Cesium-up-and-running/">Getting Started</a> ');
document.write('tutorial for a step-by-step guide.</b></p>');
View
@@ -7,7 +7,7 @@
var url = require('url');
var request = require('request');
- var gzipHeader = Buffer.from("1F8B08", "hex");
+ var gzipHeader = Buffer.from('1F8B08', 'hex');
var yargs = require('yargs').options({
'port' : {
@@ -53,8 +53,8 @@
var app = express();
app.use(compression());
app.use(function(req, res, next) {
- res.header("Access-Control-Allow-Origin", "*");
- res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
+ res.header('Access-Control-Allow-Origin', '*');
+ res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
next();
});

0 comments on commit 1991234

Please sign in to comment.