Permalink
Please sign in to comment.
Browse files
Replace JSHint with ESLint
- Added .eslintrc configuration files - Added eslint and eslint-watch gulp tasks (added gulp-eslint and eslint-plugin-html deps) - Removed jshint gulp tasks (and dependencies) - Refactored inline disable comments in ESLint syntax - Cleared all new lint errors - Updated build and test documentation - Added ESLint to license file
- Loading branch information...
Showing
with
200 additions
and 154 deletions.
- +26 −0 .eslintrc
- +0 −62 .jshintrc
- +3 −3 .travis.yml
- +6 −0 Apps/.eslintrc
- +60 −2 Apps/.jshintrc
- +1 −0 Apps/CesiumViewer/CesiumViewerStartup.js
- +13 −0 Apps/Sandcastle/.eslintrc
- +2 −1 Apps/Sandcastle/CesiumSandcastle.js
- +6 −6 Apps/Sandcastle/Sandcastle-client.js
- +2 −2 CONTRIBUTING.md
- +1 −0 CONTRIBUTORS.md
- +5 −5 Documentation/Contributors/BuildGuide/README.md
- +2 −2 Documentation/Contributors/CodeReviewGuide/README.md
- +28 −3 LICENSE.md
- +1 −1 Source/Core/OrientedBoundingBox.js
- +0 −1 Source/DataSources/CzmlDataSource.js
- +0 −2 Source/DataSources/GeoJsonDataSource.js
- +3 −4 Source/Renderer/Context.js
- +1 −2 Source/Scene/DebugCameraPrimitive.js
- +1 −2 Source/Scene/UrlTemplateImageryProvider.js
- +1 −4 Source/Scene/createTileMapServiceImageryProvider.js
- +1 −1 Specs/Core/GeometryPipelineSpec.js
- +0 −1 Specs/Core/loadTextSpec.js
- +0 −1 Specs/DataSources/CzmlDataSourceSpec.js
- +1 −1 Specs/DataSources/GeometryVisualizerSpec.js
- +1 −1 Specs/DataSources/LabelVisualizerSpec.js
- +2 −2 Specs/DataSources/ModelVisualizerSpec.js
- +2 −2 Specs/DataSources/PathVisualizerSpec.js
- +2 −2 Specs/DataSources/PointVisualizerSpec.js
- +2 −3 Specs/Scene/FrameRateMonitorSpec.js
- +0 −1 Specs/Scene/ModelSpec.js
- +0 −3 Specs/Scene/ShadowMapSpec.js
- +4 −6 Specs/Scene/createTileMapServiceImageryProviderSpec.js
- +1 −1 Specs/Widgets/PerformanceWatchdog/PerformanceWatchdogViewModelSpec.js
- +1 −1 Specs/karma.conf.js
- +15 −19 gulpfile.js
- +1 −1 index.js
- +4 −5 package.json
- +1 −1 server.js
| @@ -0,0 +1,26 @@ | ||
| +{ | ||
| + "env": { | ||
| + "browser": true, | ||
| + "es6": true, | ||
| + "mocha": true, | ||
| + "jasmine": true | ||
| + }, | ||
| + "plugins": [ | ||
| + "html" | ||
| + ], | ||
| + "rules": { | ||
| + "curly": ["error"], | ||
| + "eqeqeq": ["error"], | ||
| + "guard-for-in": ["error"], | ||
| + "new-cap": ["error", {"properties": false}], | ||
| + "no-caller": ["error"], | ||
| + "no-empty": ["error"], | ||
| + "no-extend-native": ["error"], | ||
| + "no-irregular-whitespace": ["error"], | ||
| + "no-new": ["error"], | ||
| + "no-undef": ["error"], | ||
| + "no-unused-vars": ["error", {"vars": "all", "args": "none"}], | ||
| + "strict": ["error"], | ||
| + "wrap-iife": ["error", "any"] | ||
| + } | ||
| +} |
| @@ -1,62 +0,0 @@ | ||
| -{ | ||
| - "bitwise": false, | ||
| - "camelcase": false, | ||
| - "curly": true, | ||
| - "eqeqeq": true, | ||
| - "forin": true, | ||
| - "freeze": true, | ||
| - "immed": true, | ||
| - "latedef": false, | ||
| - "newcap": true, | ||
| - "noarg": true, | ||
| - "noempty": true, | ||
| - "nonbsp": true, | ||
| - "nonew": true, | ||
| - "plusplus": false, | ||
| - "quotmark": false, | ||
| - "undef": true, | ||
| - "unused": "vars", | ||
| - "strict": true, | ||
| - "asi": false, | ||
| - "boss": false, | ||
| - "debug": false, | ||
| - "eqnull": false, | ||
| - "esnext": false, | ||
| - "moz": false, | ||
| - "evil": false, | ||
| - "expr": false, | ||
| - "funcscope": false, | ||
| - "globalstrict": false, | ||
| - "iterator": false, | ||
| - "lastsemic": false, | ||
| - "laxbreak": false, | ||
| - "laxcomma": false, | ||
| - "loopfunc": false, | ||
| - "multistr": true, | ||
| - "noyield": false, | ||
| - "notypeof": false, | ||
| - "proto": false, | ||
| - "scripturl": false, | ||
| - "shadow": false, | ||
| - "sub": false, | ||
| - "supernew": false, | ||
| - "validthis": false, | ||
| - "browser": true, | ||
| - "browserify": false, | ||
| - "couch": false, | ||
| - "devel": true, | ||
| - "dojo": false, | ||
| - "jasmine": true, | ||
| - "jquery": false, | ||
| - "mocha": true, | ||
| - "mootools": false, | ||
| - "node": false, | ||
| - "nonstandard": false, | ||
| - "prototypejs": false, | ||
| - "qunit": false, | ||
| - "rhino": false, | ||
| - "shelljs": false, | ||
| - "worker": false, | ||
| - "wsh": false, | ||
| - "yui": false | ||
| -} |
| @@ -0,0 +1,6 @@ | ||
| +{ | ||
| + "extends": "../.eslintrc", | ||
| + "env": { | ||
| + "jasmine": false | ||
| + } | ||
| +} |
| @@ -1,4 +1,62 @@ | ||
| { | ||
| - "extends": "../.jshintrc", | ||
| - "jasmine": false | ||
| + "bitwise": false, | ||
| + "camelcase": false, | ||
| + "curly": true, | ||
| + "eqeqeq": true, | ||
| + "forin": true, | ||
| + "freeze": true, | ||
| + "immed": true, | ||
| + "latedef": false, | ||
| + "newcap": true, | ||
| + "noarg": true, | ||
| + "noempty": true, | ||
| + "nonbsp": true, | ||
| + "nonew": true, | ||
| + "plusplus": false, | ||
| + "quotmark": false, | ||
| + "undef": true, | ||
| + "unused": "vars", | ||
| + "strict": true, | ||
| + "asi": false, | ||
| + "boss": false, | ||
| + "debug": false, | ||
| + "eqnull": false, | ||
| + "esnext": false, | ||
| + "moz": false, | ||
| + "evil": false, | ||
| + "expr": false, | ||
| + "funcscope": false, | ||
| + "globalstrict": false, | ||
| + "iterator": false, | ||
| + "lastsemic": false, | ||
| + "laxbreak": false, | ||
| + "laxcomma": false, | ||
| + "loopfunc": false, | ||
| + "multistr": true, | ||
| + "noyield": false, | ||
| + "notypeof": false, | ||
| + "proto": false, | ||
| + "scripturl": false, | ||
| + "shadow": false, | ||
| + "sub": false, | ||
| + "supernew": false, | ||
| + "validthis": false, | ||
| + "browser": true, | ||
| + "browserify": false, | ||
| + "couch": false, | ||
| + "devel": true, | ||
| + "dojo": false, | ||
| + "jasmine": false, | ||
| + "jquery": false, | ||
| + "mocha": true, | ||
| + "mootools": false, | ||
| + "node": false, | ||
| + "nonstandard": false, | ||
| + "prototypejs": false, | ||
| + "qunit": false, | ||
| + "rhino": false, | ||
| + "shelljs": false, | ||
| + "worker": false, | ||
| + "wsh": false, | ||
| + "yui": false | ||
| } |
| @@ -0,0 +1,13 @@ | ||
| +{ | ||
| + "extends": "../../.eslintrc", | ||
| + "globals": { | ||
| + "JSON": true, | ||
| + "require": true, | ||
| + "console": true, | ||
| + "Sandcastle": true, | ||
| + "Cesium": true | ||
| + }, | ||
| + "rules": { | ||
| + "no-unused-vars": ["off"] | ||
| + } | ||
| +} |
31
LICENSE.md
Oops, something went wrong.
0 comments on commit
43578fe