Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Aug 11, 2018
1 parent 69814c7 commit b257781
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .eslintignore
@@ -0,0 +1,7 @@
**/*.min.js
eNMS/admin
eNMS/base
eNMS/objects
eNMS/scripts
eNMS/tasks
eNMS/views
18 changes: 18 additions & 0 deletions .eslintrc
@@ -0,0 +1,18 @@
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"jquery": true
},
"rules": {
"no-invalid-this": 0,
"linebreak-style": 0
},
"extends": ["eslint:recommended", "google"]
}
8 changes: 4 additions & 4 deletions eNMS/views/static/2dView.js
Expand Up @@ -24,10 +24,10 @@ for (var i = 0; i < subtypes.length; i++) {
popupAnchor: [8, -5]
});
window[`icon_selected_${subtypes[i]}`] = L.icon({
iconUrl: `static/images/selected/${subtypes[i].toLowerCase()}.gif`,
iconSize: [18, 12],
iconAnchor: [9, 6],
popupAnchor: [8, -5]
iconUrl: `static/images/selected/${subtypes[i].toLowerCase()}.gif`,
iconSize: [18, 12],
iconAnchor: [9, 6],
popupAnchor: [8, -5]
});
}

Expand Down
27 changes: 27 additions & 0 deletions package.json
@@ -0,0 +1,27 @@
{
"name": "eNMS",
"version": "2.1.0",
"description": "A vendor-agnostic NMS for graphical network automation",
"scripts": {
"lint": "eslint ."
},
"engines": {
"node": "8.11.3"
},
"devDependencies": {
"eslint": "5.0.0",
"eslint-config-google": "0.9.1"
},
"repository": {
"type": "git",
"url": "https://github.com/afourmy/eNMS"
},
"keywords": [
"node"
],
"author": "Antoine Fourmy",
"contributors": [
"Antoine fourmy <antoine.fourmy@gmail.com>"
],
"license": "GPLv3"
}

0 comments on commit b257781

Please sign in to comment.