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

Commit cc95f30

Browse files
Splaktarandrewseguin
authored andcommitted
style(eslint): enable no-trailing-spaces rule (#11588)
1 parent fca9d1d commit cc95f30

File tree

20 files changed

+32
-32
lines changed

20 files changed

+32
-32
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
"no-template-curly-in-string": "error",
167167
"no-ternary": "off",
168168
"no-throw-literal": "off",
169-
"no-trailing-spaces": "off",
169+
"no-trailing-spaces": ["error"],
170170
"no-undef-init": "error",
171171
"no-undefined": "off",
172172
"no-underscore-dangle": "off",

docs/app/js/codepen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
.replace(/"/g, """)
4949
/**
5050
* Codepen was unescaping &lt; (<) and &gt; (>) which caused, on some demos,
51-
* an unclosed elements (like <md-select>).
51+
* an unclosed elements (like <md-select>).
5252
* Used different unicode lookalike characters so it won't be considered as an element
5353
*/
5454
.replace(/&amp;lt;/g, "&#x02C2;") // http://graphemica.com/%CB%82

docs/config/processors/componentsData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function buildDocData(doc, extraData, descriptor) {
3232
const filePath = doc.fileInfo.filePath;
3333
const indexOfBasePath = filePath.indexOf(basePathFromProjectRoot);
3434
const path = filePath.substr(indexOfBasePath + basePathFromProjectRoot.length, filePath.length);
35-
35+
3636
return _.assign({
3737
name: doc.name,
3838
type: doc.docType,

scripts/find-max-version.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// INPUT = $1 = VERSION
22
// (something like 1.3 or 1.4.5)
33

4-
// OUTPUT = a specific version number
4+
// OUTPUT = a specific version number
55
// (something like 1.3.19 or 1.5.0-beta.2)
66

77
// this is used so that we can run a `git`
@@ -60,7 +60,7 @@ function findMaxVersion(branch, output) {
6060
const result = line.match(versionRegex);
6161
if (result && result.length > 0) {
6262
// stable releases have a higher weight than beta/RC versions
63-
// so we want to include
63+
// so we want to include
6464
let weight = result[1] * WEIGHTS.stable;
6565

6666
if (result[2]) {

src/components/autocomplete/autocomplete.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ describe('<md-autocomplete>', function() {
428428
var input = element.find('input');
429429

430430
expect(input).toHaveClass(scope.inputClass);
431-
431+
432432
element.remove();
433433
});
434434

src/components/chips/chips.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ describe('<md-chips>', function() {
221221
it('should make the event available when removing a chip', function() {
222222
var element = buildChips(CHIP_REMOVE_TEMPLATE);
223223
var chips = getChipElements(element);
224-
224+
225225
scope.removeChip = jasmine.createSpy('removeChip');
226226
var chipButton = angular.element(chips[1]).find('button');
227227
chipButton[0].click();
228-
228+
229229
expect(scope.removeChip).toHaveBeenCalled();
230230
expect(scope.removeChip.calls.mostRecent().args[2].type).toBe('click');
231231
});

src/components/chips/js/chipRemoveDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ angular
4343

4444
/**
4545
* MdChipRemove Directive Definition.
46-
*
46+
*
4747
* @param $timeout
4848
* @returns {{restrict: string, require: string[], link: Function, scope: boolean}}
4949
* @constructor

src/components/content/content.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ describe('mdContent directive', function() {
66
var element = $compile('<md-content></md-content>')($rootScope.$new());
77
expect(element.hasClass('_md')).toBe(true);
88
}));
9-
9+
1010
});

src/components/input/input-animations.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('md-input-container animations', function() {
3535
var container = el.find('md-input-container'),
3636
input = el.find('input'),
3737
errors;
38-
38+
3939

4040
// Mimic the real validations/animations that fire
4141

src/components/sidenav/sidenav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ function SidenavDirective($mdMedia, $mdUtil, $mdConstant, $mdTheming, $mdInterac
313313
if (!attr.hasOwnProperty('mdDisableBackdrop')) {
314314
backdrop = $mdUtil.createBackdrop(scope, "md-sidenav-backdrop md-opaque ng-enter");
315315
}
316-
316+
317317
// If md-disable-close-events is set on the sidenav we will disable
318318
// backdrop click and Escape key events
319319
if (attr.hasOwnProperty('mdDisableCloseEvents')) {

0 commit comments

Comments
 (0)