Skip to content

Commit b051c73

Browse files
committed
👕 Fixes lint issues
1 parent dfd5cfe commit b051c73

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"bin": "cli.js",
66
"main": "lib.js",
77
"scripts": {
8+
"lint": "eslint .",
89
"test": "echo \"Error: no test specified\" && exit 1"
910
},
1011
"repository": {
@@ -34,7 +35,7 @@
3435
"param-case": "^2.1.0",
3536
"pascal-case": "^2.0.0",
3637
"path-exists": "^3.0.0",
37-
"uuid": "^2.0.1"
38+
"uuid": "^2.0.3"
3839
},
3940
"devDependencies": {
4041
"eslint": "^3.1.0",

templates/general.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = [{
3232
\`\`\`
3333
compile project(':${moduleName}')
3434
\`\`\`
35-
` ;
35+
`;
3636
}
3737

3838
if (platforms.indexOf('windows') >= 0) {
@@ -44,7 +44,7 @@ module.exports = [{
4444
2. Open up your \`MainPage.cs\` app
4545
- Add \`using Cl.Json.${name};\` to the usings at the top of the file
4646
- Add \`new ${name}Package()\` to the \`List<IReactPackage>\` returned by the \`Packages\` method
47-
` ;
47+
`;
4848
}
4949

5050
return `
@@ -74,11 +74,11 @@ ${name};
7474
}, {
7575
name: () => 'package.json',
7676
content: ({ moduleName, platforms }) => {
77-
var dependencies = '"react-native": "^0.29.0"';
77+
let dependencies = '"react-native": "^0.29.0"';
7878
if (platforms.indexOf('windows') >= 0) {
7979
dependencies += `,
8080
"react-native-windows": "^0.29.0"
81-
` ;
81+
`;
8282
}
8383
return `
8484
{
@@ -98,8 +98,8 @@ ${name};
9898
${dependencies}
9999
}
100100
}
101-
` ;
102-
}
101+
`;
102+
},
103103
}, {
104104
name: () => 'index.js',
105105
content: ({ name }) => `

templates/windows.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
/* eslint max-len: 0 */
1+
/* eslint max-len: 0 */
22
const uuid = require('uuid').v1().toUpperCase();
3+
34
module.exports = platform => [{
45
name: ({ name }) => `${platform}/${name}.sln`,
5-
content: ({ name }) =>
6+
content: ({ name }) =>
67
`Microsoft Visual Studio Solution File, Format Version 12.00
78
# Visual Studio 14
89
VisualStudioVersion = 14.0.25123.0
@@ -83,7 +84,7 @@ EndGlobal
8384
`,
8485
}, {
8586
name: () => `${platform}/.gitignore`,
86-
content: () =>
87+
content: () =>
8788
`*AppPackages*
8889
*BundleArtifacts*
8990
*ReactAssets*
@@ -165,7 +166,7 @@ packages/
165166
`,
166167
}, {
167168
name: ({ name }) => `${platform}/${name}/project.json`,
168-
content: () =>
169+
content: () =>
169170
`{
170171
"dependencies": {
171172
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
@@ -185,7 +186,7 @@ packages/
185186
`,
186187
}, {
187188
name: ({ name }) => `${platform}/${name}/${name}.csproj`,
188-
content: ({ name }) =>
189+
content: ({ name }) =>
189190
`<?xml version="1.0" encoding="utf-8"?>
190191
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
191192
<Import Project="$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props')" />
@@ -372,7 +373,7 @@ packages/
372373
`,
373374
}, {
374375
name: ({ name }) => `${platform}/${name}/${name}Module.cs`,
375-
content: ({ name, namespace }) =>
376+
content: ({ name, namespace }) =>
376377
`using ReactNative.Bridge;
377378
using System;
378379
using System.Collections.Generic;
@@ -409,7 +410,7 @@ namespace ${namespace}.${name}
409410
`,
410411
}, {
411412
name: ({ name }) => `${platform}/${name}/${name}Package.cs`,
412-
content: ({ name, namespace }) =>
413+
content: ({ name, namespace }) =>
413414
`using ReactNative.Bridge;
414415
using ReactNative.Modules.Core;
415416
using ReactNative.UIManager;
@@ -466,7 +467,7 @@ namespace ${namespace}.${name}
466467
`,
467468
}, {
468469
name: ({ name }) => `${platform}/${name}/Properties/${name}.rd.xml`,
469-
content: ({ name }) =>
470+
content: ({ name }) =>
470471
`<?xml version="1.0" encoding="utf-8"?>
471472
<!--
472473
This file contains Runtime Directives, specifications about types your application accesses
@@ -498,7 +499,7 @@ namespace ${namespace}.${name}
498499
`,
499500
}, {
500501
name: ({ name }) => `${platform}/${name}/Properties/AssemblyInfo.cs`,
501-
content: ({ name }) =>
502+
content: ({ name }) =>
502503
`using System.Reflection;
503504
using System.Runtime.CompilerServices;
504505
using System.Runtime.InteropServices;

0 commit comments

Comments
 (0)