diff --git a/.eslintrc.json b/.eslintrc.json index bb39fc6..96a434f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,10 +1,16 @@ { + "root": true, + "plugins": ["custom-elements"], "globals": { "TaskListsElement": "readonly" }, "extends": [ "plugin:github/recommended", "plugin:github/browser", - "plugin:github/typescript" - ] + "plugin:github/typescript", + "plugin:custom-elements/recommended" + ], + "rules": { + "custom-elements/tag-name-matches-class": ["error", {"suffix": "Element"}] + } } diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e40b79e..414fcd3 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -6,10 +6,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Use Node.js 12.x + - name: Use Node.js 14.x uses: actions/setup-node@v1 with: - node-version: 12.x + node-version: 14.x - name: npm install, build, and test run: | npm install diff --git a/README.md b/README.md index e9b317a..e47665b 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ import '@github/task-lists-element' With a script tag: ```html - --> - -