Skip to content
Permalink
Browse files

Eslint (#2240)

* configs

* fix lint errors
  • Loading branch information...
sbcgua authored and larshp committed Dec 30, 2018
1 parent f1a0307 commit ceb7a6d02a864597210d98e3789f8c77ed4d6fa0
Showing with 126 additions and 107 deletions.
  1. +1 −0 .abapgit.xml
  2. +14 −0 .eslintrc.yaml
  3. +4 −2 package.json
  4. +107 −105 src/zabapgit_js_common.w3mi.data.js
@@ -15,6 +15,7 @@
<item>/.gitignore</item>
<item>/CODE_OF_CONDUCT.md</item>
<item>/abaplint.json</item>
<item>/.eslintrc.yaml</item>
</IGNORE>
</DATA>
</asx:values>
@@ -0,0 +1,14 @@
---
parserOptions:
ecmaVersion: 5
env:
browser: true
extends:
- eslint:recommended
rules:
quotes: ['error', 'double', { 'avoidEscape': true }]
semi: ['error', 'always', { 'omitLastInOneLineBlock': true}]
no-console: off
indent: ['error', 2]
no-trailing-spaces: ['error']
no-unused-vars: ['warn']
@@ -4,14 +4,16 @@
"pretest": "abaplint --version && abaplint \"src/**/*.*\"",
"test": "abapmerge src/zabapgit.prog.abap > zabapgit.abap",
"_disabled_posttest": "abaplint zabapgit.abap",
"lint": "abaplint \"src/**/*.*\""
"lint": "abaplint \"src/**/*.*\"",
"eslint": "eslint src"
},
"repository": {
"type": "git",
"url": "git+https://github.com/larshp/abapGit.git"
},
"devDependencies": {
"abaplint": "^1.5.0",
"abapmerge": "^0.11.0",
"abaplint": "^1.5.0"
"eslint": "^5.11.1"
}
}
Oops, something went wrong.

0 comments on commit ceb7a6d

Please sign in to comment.
You can’t perform that action at this time.