Skip to content

Commit

Permalink
🚨 Appease the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jh0ker committed Jan 13, 2020
1 parent c6e767c commit 5cc9001
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
40 changes: 32 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
{
"plugins": ["node", "jest", "import"],
"extends": ["eslint:recommended", "plugin:node/recommended", "plugin:jest/recommended"],
"plugins": [
"node",
"jest",
"import"
],
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"plugin:jest/recommended"
],
"env": {
"node": true,
"es6": true,
"jest/globals": true
},
"parserOptions": {
"ecmaVersion": 2017,
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
Expand Down Expand Up @@ -57,13 +65,19 @@
],
"brace-style": "error",
"camelcase": "error",
"comma-dangle": ["error", "always-multiline"],
"comma-dangle": [
"error",
"always-multiline"
],
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"eol-last": "error",
"func-call-spacing": "error",
"indent": ["error", 4],
"indent": [
"error",
4
],
"key-spacing": "error",
"keyword-spacing": "error",
"max-len": [
Expand All @@ -86,7 +100,10 @@
"no-new-object": "error",
"no-tabs": "error",
"no-trailing-spaces": "error",
"object-curly-spacing": ["error", "always"],
"object-curly-spacing": [
"error",
"always"
],
"padded-blocks": [
"error",
"never"
Expand Down Expand Up @@ -125,11 +142,18 @@
"rest-spread-spacing": "error",
"yield-star-spacing": "error",
"eqeqeq": "error",
"node/exports-style": ["error", "module.exports"],
"node/exports-style": [
"error",
"module.exports"
],
"node/no-unpublished-require": [
"error",
{
"allowModules": ["js-yaml", "extend", "object-hash"]
"allowModules": [
"js-yaml",
"extend",
"object-hash"
]
}
],
"node/no-unsupported-features": 0,
Expand Down
2 changes: 1 addition & 1 deletion handler/actionNewsAbout.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const newsAbout = async (chat, payload) => {

export const searchId = async (payload) => {
/* Resolves a tag or genre from dialogflow-result string to ID, with priority to genres */
const searchParameter = ['genres', 'tags'];
const searchParameter = [ 'genres', 'tags' ];
const map = {
genres: 'genres',
tags: 'tags',
Expand Down

0 comments on commit 5cc9001

Please sign in to comment.