Add code linting using ESLint

Add ESLint as a dev dependency and configure it to match the preferred
style for the project.  The config options set to warn are tentative and
may not be sensible as they haven't been fully investigated yet.
This commit is contained in:
Hornwitser committed 2020-06-17 20:53:18 +02:00
1 parent 922c6af632
commit efd759bec5
2 files changed
+255

No files matched your search

+2
View File
@@ -10,6 +10,7 @@
"cover": "nyc npm test",
"fast-cover": "FAST_TEST=y nyc npm test",
"ci-cover": "nyc --reporter=lcovonly npm run-script test",
"lint": "eslint \"*.js\" lib plugins test",
"docs": "jsdoc --configure docs/jsdoc.json",
"install": "node lib/npmPostinstall",
"bundle-dependencies": "bundle-dependencies"
@@ -70,6 +71,7 @@
"yargs": "^14.2.0"
},
"devDependencies": {
"eslint": "^7.2.0",
"html5-validator": "^1.2.1",
"jsdoc": "^3.6.3",
"klaw": "^3.0.0",