Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjuan committed Nov 19, 2024
1 parent 438b0e7 commit 602b8e4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
21 changes: 21 additions & 0 deletions packages/template-parser/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import js from "@eslint/js";
import globals from "globals";
export default [
js.configs.recommended,

{
ignores: ["eslint.config.mjs"],
languageOptions: {
ecmaVersion: 2020,
sourceType: "commonjs",
globals: {
...globals.jest,
},
},

rules: {
"no-unused-vars": "warn",
"no-undef": "warn",
},
},
];
5 changes: 3 additions & 2 deletions packages/template-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"scripts": {
"ts": "tsc",
"lint": "eslint . --ext .js",
"lint": "eslint .",
"build": "tsc -p ./tsconfig.build.json",
"test": "jest --coverage"
},
Expand All @@ -41,6 +41,7 @@
"devDependencies": {
"@types/estree": "^0.0.47",
"eslint": "^9.15.0",
"espree": "^10.3.0"
"espree": "^10.3.0",
"globals": "^15.12.0"
}
}
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1385,6 +1385,7 @@ __metadata:
es-html-parser: "npm:^0.0.10"
eslint: "npm:^9.15.0"
espree: "npm:^10.3.0"
globals: "npm:^15.12.0"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -8598,6 +8599,13 @@ __metadata:
languageName: node
linkType: hard

"globals@npm:^15.12.0":
version: 15.12.0
resolution: "globals@npm:15.12.0"
checksum: f34e0a1845b694f45188331742af9f488b07ba7440a06e9d2039fce0386fbbfc24afdbb9846ebdccd4092d03644e43081c49eb27b30f4b88e43af156e1c1dc34
languageName: node
linkType: hard

"globby@npm:11.1.0, globby@npm:^11.0.3":
version: 11.1.0
resolution: "globby@npm:11.1.0"
Expand Down

0 comments on commit 602b8e4

Please sign in to comment.