Skip to content

Commit 4312f35

Browse files
committed
quote-props
1 parent 21bea56 commit 4312f35

File tree

5 files changed

+19
-20
lines changed

5 files changed

+19
-20
lines changed

.eslintrc

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@
1515
"no-multi-assign": ["off"],
1616
"one-var": ["off"],
1717
"one-var-declaration-per-line": ["off"],
18+
"vars-on-top": ["off"],
1819

1920
"no-var": ["off"],
20-
"no-prototype-builtins": ["off"],
2121
"arrow-parens": ["off"],
22-
"quote-props": ["off"],
23-
"vars-on-top": ["off"],
22+
"no-prototype-builtins": ["off"],
2423
"no-param-reassign": ["off"],
2524
"prefer-arrow-callback": ["off"],
2625
"comma-dangle": ["off"],

lib/xlsx/xform/core/app-xform.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ var AppTitleOfPartsXform = require('./app-titles-of-parts-xform');
1616

1717
var AppXform = module.exports = function() {
1818
this.map = {
19-
'Company': new StringXform({tag: 'Company'}),
20-
'Manager': new StringXform({tag: 'Manager'}),
21-
'HeadingPairs': new AppHeadingPairsXform(),
22-
'TitleOfParts': new AppTitleOfPartsXform()
19+
Company: new StringXform({tag: 'Company'}),
20+
Manager: new StringXform({tag: 'Manager'}),
21+
HeadingPairs: new AppHeadingPairsXform(),
22+
TitleOfParts: new AppTitleOfPartsXform()
2323
};
2424
};
2525

@@ -29,7 +29,7 @@ AppXform.DateFormat = function(dt) {
2929
AppXform.DateAttrs = {'xsi:type': 'dcterms:W3CDTF'};
3030

3131
AppXform.PROPERTY_ATTRIBUTES = {
32-
'xmlns': 'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties',
32+
xmlns: 'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties',
3333
'xmlns:vt': 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes'
3434
};
3535

lib/xlsx/xform/style/styles-xform.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var StylesXform = module.exports = function(initialise) {
5757

5858
utils.inherits(StylesXform, BaseXform, {
5959
STYLESHEET_ATTRIBUTES: {
60-
'xmlns': 'http://schemas.openxmlformats.org/spreadsheetml/2006/main',
60+
xmlns: 'http://schemas.openxmlformats.org/spreadsheetml/2006/main',
6161
'xmlns:mc': 'http://schemas.openxmlformats.org/markup-compatibility/2006',
6262
'mc:Ignorable': 'x14ac x16r2',
6363
'xmlns:x14ac': 'http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac',

spec/unit/doc/workbook.spec.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ describe('Workbook', function() {
8686
var wb = new Excel.Workbook();
8787
var ws = wb.addWorksheet('blort');
8888
ws.getCell('A1').value = {
89-
'richText': [
90-
{'font': {'size': 12, 'color': {'theme': 0}, 'name': 'Calibri', 'family': 2, 'scheme': 'minor'}, 'text': 'This is '},
91-
{'font': {'italic': true, 'size': 12, 'color': {'theme': 0}, 'name': 'Calibri', 'scheme': 'minor'}, 'text': 'a'},
92-
{'font': {'size': 12, 'color': {'theme': 1}, 'name': 'Calibri', 'family': 2, 'scheme': 'minor'}, 'text': ' '},
93-
{'font': {'size': 12, 'color': {'argb': 'FFFF6600'}, 'name': 'Calibri', 'scheme': 'minor'}, 'text': 'colorful'},
94-
{'font': {'size': 12, 'color': {'theme': 1}, 'name': 'Calibri', 'family': 2, 'scheme': 'minor'}, 'text': ' text '},
95-
{'font': {'size': 12, 'color': {'argb': 'FFCCFFCC'}, 'name': 'Calibri', 'scheme': 'minor'}, 'text': 'with'},
96-
{'font': {'size': 12, 'color': {'theme': 1}, 'name': 'Calibri', 'family': 2, 'scheme': 'minor'}, 'text': ' in-cell '},
97-
{'font': {'bold': true, 'size': 12, 'color': {'theme': 1}, 'name': 'Calibri', 'family': 2, 'scheme': 'minor'}, 'text': 'format'}
89+
richText: [
90+
{font: {size: 12, color: {theme: 0}, name: 'Calibri', family: 2, scheme: 'minor'}, text: 'This is '},
91+
{font: {italic: true, size: 12, color: {theme: 0}, name: 'Calibri', scheme: 'minor'}, text: 'a'},
92+
{font: {size: 12, color: {theme: 1}, name: 'Calibri', family: 2, scheme: 'minor'}, text: ' '},
93+
{font: {size: 12, color: {argb: 'FFFF6600'}, name: 'Calibri', scheme: 'minor'}, text: 'colorful'},
94+
{font: {size: 12, color: {theme: 1}, name: 'Calibri', family: 2, scheme: 'minor'}, text: ' text '},
95+
{font: {size: 12, color: {argb: 'FFCCFFCC'}, name: 'Calibri', scheme: 'minor'}, text: 'with'},
96+
{font: {size: 12, color: {theme: 1}, name: 'Calibri', family: 2, scheme: 'minor'}, text: ' in-cell '},
97+
{font: {bold: true, size: 12, color: {theme: 1}, name: 'Calibri', family: 2, scheme: 'minor'}, text: 'format'}
9898
]
9999
};
100100

spec/unit/xlsx/xform/strings/shared-string-xform.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ var expectations = [
1515
{
1616
title: 'rich text',
1717
create: function() { return new SharedStringXform(); },
18-
preparedModel: {richText: [{ 'font': { 'size': 11, 'bold': true, 'color': { 'theme': 1}, 'name': 'Calibri', 'family': 2, 'scheme': 'minor' }, 'text': 'Bold,' }]},
18+
preparedModel: {richText: [{ font: { size: 11, bold: true, color: { theme: 1}, name: 'Calibri', family: 2, scheme: 'minor' }, text: 'Bold,' }]},
1919
xml: '<si><r><rPr><b/><color theme="1"/><family val="2"/><scheme val="minor"/><sz val="11"/><rFont val="Calibri"/></rPr><t>Bold,</t></r></si>',
20-
parsedModel: {richText: [{ 'font': { 'size': 11, 'bold': true, 'color': { 'theme': 1}, 'name': 'Calibri', 'family': 2, 'scheme': 'minor' }, 'text': 'Bold,' }]},
20+
parsedModel: {richText: [{ font: { size: 11, bold: true, color: { theme: 1}, name: 'Calibri', family: 2, scheme: 'minor' }, text: 'Bold,' }]},
2121
tests: ['render', 'renderIn', 'parse']
2222
},
2323
{

0 commit comments

Comments
 (0)