Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit c67ae9b

Browse files
Splaktarandrewseguin
authored andcommitted
style(eslint): enable spaced-comment rule (#11585)
reformat .eslintrc.json
1 parent 7878d23 commit c67ae9b

34 files changed

+373
-376
lines changed

.eslintrc.json

Lines changed: 307 additions & 307 deletions
Large diffs are not rendered by default.

config/karma-sauce.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function(config) {
1616
// Maximum 10 browsers - SauceLabs limit
1717
// Those pre-configured browsers will always run in the CI Release Mode to confirm, that all
1818
// previous jobs have passed.
19-
browsers: ['SL_CHROME'], //, 'SL_FIREFOX', 'SL_IE11'],
19+
browsers: ['SL_CHROME'], // , 'SL_FIREFOX', 'SL_IE11'],
2020
customLaunchers: sauceBrowsers,
2121

2222
captureTimeout: 180 * 1000,

config/karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = function(config) {
66

77
// To enable use of `gulp karma-watch`,
88
// don't use the dist/angular-material.js.
9-
//'dist/angular-material.js', // Un-minified source
9+
// 'dist/angular-material.js', // Un-minified source
1010

1111

1212
// Test utilities, source, and specifications.

config/ngModuleData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function buildScanner(pattern) {
2828

2929
if (depsMatch) {
3030
dependencies = depsMatch.split(/\s*,\s*/).map(function(dep) {
31-
dep = dep.trim().slice(1, -1); //remove quotes
31+
dep = dep.trim().slice(1, -1); // remove quotes
3232
return dep;
3333
});
3434
}

docs/app/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ function($scope, COMPONENTS, BUILDCONFIG, $mdSidenav, $timeout, $mdDialog, menu,
614614
$rootScope.$on('$locationChangeSuccess', openPage);
615615
$scope.focusMainContent = focusMainContent;
616616

617-
//-- Define a fake model for the related page selector
617+
// Define a fake model for the related page selector
618618
Object.defineProperty($rootScope, "relatedPage", {
619619
get: function () { return null; },
620620
set: angular.noop,

docs/app/js/demoInclude.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function($q, $compile, $timeout) {
6868
return file.contentsPromise;
6969
}))
7070
.then(function(styles) {
71-
styles = styles.join('\n'); //join styles as one string
71+
styles = styles.join('\n'); // join styles as one string
7272

7373
var styleElement = angular.element('<style>' + styles + '</style>');
7474
document.body.appendChild(styleElement[0]);

docs/app/js/highlight-angular.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ angular.module('docsApp')
44
restrict: 'E',
55
compile: function(element, attr) {
66
var code;
7-
//No attribute? code is the content
7+
// No attribute? code is the content
88
if (!attr.code) {
99
code = element.html();
1010
element.empty();

docs/config/processors/componentsData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module.exports = function componentsGenerateProcessor() {
8080
});
8181

8282
})
83-
.filter() //remove null items
83+
.filter() // remove null items
8484
.value();
8585

8686
const EXPOSED_CORE_SERVICES = '$mdMedia';

gulp/tasks/ddescribe-iit.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ const kDisallowedFunctions = [
77
// Allow xit/xdescribe --- disabling tests is okay
88
'fit',
99
'iit',
10-
//'xit',
1110
'fdescribe',
1211
'ddescribe',
13-
//'xdescribe',
1412
'describe.only',
1513
'it.only'
1614
];

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const gulp = require('gulp');
22
const fs = require('fs');
33

4-
//-- include docs gulpfile (should eventually be factored out)
4+
// include docs gulpfile (should eventually be factored out)
55
require('./docs/gulpfile');
66

7-
//-- read in all files from gulp/tasks and create tasks for them
7+
// read in all files from gulp/tasks and create tasks for them
88
fs.readdirSync('./gulp/tasks')
99
.filter(function (filename) {
1010
return filename.match(/\.js$/i);

0 commit comments

Comments
 (0)