Add ESLint (#3)

This commit is contained in:
Justin Fagnani
2019-12-18 11:35:37 -08:00
committed by GitHub
parent d50f5a7c7e
commit 7b6b9cf0b4
5 changed files with 742 additions and 4 deletions

View File

@@ -6,8 +6,9 @@
"module": "my-element.js",
"type": "module",
"scripts": {
"build": "lit-analyzer && tsc",
"build": "tsc",
"build:watch": "tsc --watch",
"lint": "lit-analyzer && eslint 'src/**/*.ts'",
"serve": "es-dev-server --app-index demo/index.html --node-resolve --watch --open",
"test": "karma start karma.conf.cjs",
"test:watch": "karma start karma.conf.cjs --auto-watch=true --single-run=false",
@@ -29,9 +30,12 @@
"@open-wc/testing-karma": "^3.2.19",
"@types/chai": "^4.2.7",
"@types/mocha": "^5.2.7",
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@typescript-eslint/parser": "^2.12.0",
"chai": "^4.2.0",
"deepmerge": "^4.2.2",
"es-dev-server": "^1.23.1",
"eslint": "^6.7.2",
"karma": "^4.4.1",
"karma-chai": "^0.1.0",
"karma-mocha": "^1.3.0",