Skip to content

Commit

Permalink
Merge pull request #51 from github/eslint-plugin-custom-elements
Browse files Browse the repository at this point in the history
Install and enable `custom-elements` ESLint plugin
  • Loading branch information
koddsson authored Apr 26, 2021
2 parents 168b7ab + 5ebe3bd commit 2310898
Show file tree
Hide file tree
Showing 4 changed files with 377 additions and 236 deletions.
20 changes: 14 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
{
"root": true,
"plugins": ["custom-elements"],
"extends": [
"plugin:github/recommended",
"plugin:github/browser",
"plugin:github/typescript"
"plugin:github/typescript",
"plugin:custom-elements/recommended"
],
"overrides": [{
"files": "*.js",
"parser": "espree",
"parserOptions": {"ecmaVersion": 8}
}]
"rules": {
"custom-elements/tag-name-matches-class": ["error", {"suffix": "Element"}],
"custom-elements/file-name-matches-element": "off"
},
"overrides": [
{
"files": "*.js",
"parser": "espree",
"parserOptions": {"ecmaVersion": 8}
}
]
}
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 2310898

Please sign in to comment.