Skip to content

Commit

Permalink
vinitshahdeo#14 Add ESLint
Browse files Browse the repository at this point in the history
Added [ESLint](https://eslint.org/) on this project.
Added scripts in package.json i.e. npm run test-lint should run lint tests.
[ESLint](https://eslint.org/)
  • Loading branch information
Wisney Cardeal committed Oct 28, 2019
1 parent 364bfa6 commit 894ef76
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
}
};
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build": "mocha tests/pre.js && mocha tests/test.js && node src/tweet.js",
"pretest": "mocha tests/pre.js",
"test": "mocha tests/test.js",
"start": "node src/tweet.js"
"start": "node src/tweet.js",
"test-lint": "eslint --fix-dry-run --color --ignore-pattern node_modules/ ."
},
"repository": {
"type": "git",
Expand All @@ -34,6 +35,7 @@
"twitter": "1.7.1"
},
"devDependencies": {
"mocha": "^5.2.0"
"mocha": "^5.2.0",
"eslint": "^6.5.1"
}
}

0 comments on commit 894ef76

Please sign in to comment.