Skip to content

Commit

Permalink
Add ESLint plugins for WebComponent and Lit
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Apr 8, 2024
1 parent 29594f1 commit 6e253c3
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
apps/airspaces/src/assets/airspaces
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"extends": ["plugin:@nx/typescript", "plugin:wc/recommended", "plugin:lit/recommended"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
Expand All @@ -33,7 +33,7 @@
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"extends": ["plugin:@nx/javascript", "plugin:wc/recommended", "plugin:lit/recommended"],
"rules": {}
}
]
Expand Down
77 changes: 77 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"cypress": "^13.6.6",
"eslint": "8.57.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-lit": "^1.11.0",
"eslint-plugin-wc": "^2.0.4",
"jest": "29.6.4",
"jest-bench": "29.4",
"jest-environment-jsdom": "29.6.4",
Expand Down

0 comments on commit 6e253c3

Please sign in to comment.