Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
impr linter settings
Browse files Browse the repository at this point in the history
  • Loading branch information
norbornen committed Oct 25, 2018
1 parent 198985c commit 305d922
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules/*
files/*
config/*
3 changes: 0 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"extends": [
"google"
],
"plugins": [
"mocha"
],
"rules": {
"camelcase": 0,
"comma-dangle": 0,
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function run() {
}, []);

offers.forEach((x, idx) => queue.add(() => {
let t = x.toHtml().replace(/(Россия|Москва),\s*/g, '');
const t = x.toHtml().replace(/(Россия|Москва),\s*/g, '');
return pRetry(() => sendHtmlMessage(t),
{retries: 10, onFailedAttempt: (err) => console.warn(`idx: ${idx}, err: ${err.toString()}`)})
.catch((err) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/provider/offer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ module.exports.Offer = class Offer {
}
}
toHtml() {
throw 'Abstract class method "toHtml"!';
throw new Error('Abstract class method "toHtml"!');
}
};
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "cyanic",
"version": "1.0.3",
"version": "1.0.4",
"main": "index.js",
"license": "MIT",
"scripts": {
"lint": "./node_modules/.bin/eslint --ext .js ."
},
"dependencies": {
"axios": "^0.18.0",
"config": "^2.0.1",
Expand Down

0 comments on commit 305d922

Please sign in to comment.