Skip to content

Commit

Permalink
Update eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwillox committed Dec 10, 2022
1 parent 8cda426 commit 7da7f94
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 515 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
module.exports = {
root: true,
ignorePatterns: ["dist/"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2017, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
experimentalDecorators: true
},
plugins: ["@typescript-eslint", "import", "only-warn"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
plugins: ["only-warn"],
rules: {
// TypeScript's `noFallthroughCasesInSwitch` option is more robust (#6906)
"default-case": "off",
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"name": "Paper Buttons Row"
}
}
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@
"lit": "^2.2.5"
},
"devDependencies": {
"@types/node": "^16.11.36",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.2",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
"eslint": "^8.16.0",
"eslint-plugin-import": "^2.26.0",
"@types/node": "^16.11.36",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"eslint": "^8.28.0",
"eslint-plugin-only-warn": "^1.0.3",
"prettier": "^2.6.2",
"prettier": "^2.7.1",
"rollup": "^2.75.0",
"rollup-plugin-bundle-size": "^1.0.3",
"rollup-plugin-lit-css": "^4.0.0",
Expand All @@ -37,7 +36,7 @@
"tslib": "^2.4.0",
"typescript": "^4.7.2"
},
"packageManager": "pnpm@7.1.6",
"packageManager": "pnpm@7.18.1",
"engines": {
"node": ">=16.x"
}
Expand Down

0 comments on commit 7da7f94

Please sign in to comment.