Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit 205de4b

Browse files
committed
eslinted plugin
closes #3
1 parent ae18e70 commit 205de4b

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"no-undef": 2,
6161
"no-underscore-dangle": 0,
6262
"no-unreachable": 1,
63-
"no-unused-vars": 1,
63+
"no-unused-vars": 0,
6464
"no-use-before-define": 1,
6565
"no-useless-call": 2,
6666
"no-useless-concat": 2,

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ jspm_packages
3535

3636
# Optional REPL history
3737
.node_repl_history
38+
.idea/

dist/js/plugin-node-tab.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
/* global Panels */
2+
13
var PluginTab = {
24

3-
init: function() {
5+
init: function () {
46

57
Panels.add({
68
'id': 'sg-panel-scss',
@@ -14,6 +16,6 @@ var PluginTab = {
1416
'language': 'markup',
1517
'keyCombo': 'ctrl+shift+z'
1618
});
17-
19+
1820
}
1921
};

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@
1111
"type": "git",
1212
"url": "git+https://github.com/pattern-lab/plugin-node-tab.git"
1313
},
14-
"author": "",
14+
"scripts": {
15+
"test": "eslint dist/** src/**"
16+
},
17+
"author": "Brian Muenzenmeyer",
1518
"license": "MIT",
1619
"bugs": {
1720
"url": "https://github.com/pattern-lab/plugin-node-tab/issues"
1821
},
19-
"homepage": "https://github.com/pattern-lab/plugin-node-tab#readme"
22+
"homepage": "https://github.com/pattern-lab/plugin-node-tab#readme",
23+
"devDependencies": {
24+
"eslint": "^3.5.0"
25+
}
2026
}

src/tab-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function findTab(patternlab, pattern) {
3838
}
3939
}
4040
catch (err) {
41-
console.log('plugin-node-tab:There was an error parsing sibling JSON for ' + currentPattern.relPath);
41+
console.log('plugin-node-tab:There was an error parsing sibling JSON for ' + pattern.relPath);
4242
console.log(err);
4343
}
4444
}

0 commit comments

Comments
 (0)