Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed eslint check #279

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
}
};
4 changes: 4 additions & 0 deletions data/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -1302,5 +1302,9 @@
{
"text":"I learned not to worry so much about the outcome, but to concentrate on the step I was on and to try to do it as perfectly as I could when I was doing it.",
"from":"Steve Wozniak, Co-Founder of Apple"
},
{
"text":"Everything is just an illusion but illusions are beautiful.",
"from":"Papu Kumar"
}
]
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "A simple NPM Package which returns Inspirational Quotes. Get your daily quote and stay motivated!",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"test-lint": "./node_modules/.bin/eslint . --ext .js --ext .json, ./examples --ext .js --ext .json, ./data --ext .json --ignore-pattern node_modules/"
},
"repository": {
"type": "git",
Expand All @@ -25,6 +26,9 @@
},
"directories": {
"example": "examples",
"data":"data"
"data": "data"
},
"devDependencies": {
"eslint": "^6.5.1"
}
}