Added linter
This commit is contained in:
parent
bfab01a4ad
commit
81c1f00cbd
|
@ -0,0 +1,11 @@
|
|||
module.exports = {
|
||||
env: {
|
||||
browser: false,
|
||||
node: true,
|
||||
es6: true
|
||||
},
|
||||
extends: 'eslint:recommended',
|
||||
parserOptions: {
|
||||
ecmaVersion: 12
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
language: node_js
|
||||
|
||||
node_js:
|
||||
- '10'
|
||||
|
||||
script:
|
||||
- npm run lint
|
File diff suppressed because it is too large
Load Diff
|
@ -8,6 +8,7 @@
|
|||
"epg-grabber": "src/index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "npx eslint ./src/**/*.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"publishConfig": {
|
||||
|
@ -30,5 +31,8 @@
|
|||
"glob": "^7.1.6",
|
||||
"tough-cookie": "^4.0.0",
|
||||
"xml-js": "^1.6.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.22.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue