Added linter

This commit is contained in:
freearhey 2021-03-13 15:48:46 +03:00
parent bfab01a4ad
commit 81c1f00cbd
4 changed files with 1986 additions and 0 deletions

11
.eslintrc.js Normal file
View File

@ -0,0 +1,11 @@
module.exports = {
env: {
browser: false,
node: true,
es6: true
},
extends: 'eslint:recommended',
parserOptions: {
ecmaVersion: 12
}
}

7
.travis.yml Normal file
View File

@ -0,0 +1,7 @@
language: node_js
node_js:
- '10'
script:
- npm run lint

1964
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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"
}
}