Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyraspopov committed Apr 12, 2024
1 parent 7a1113c commit a3715e8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import js from "@eslint/js";
import globals from "globals";

export default [
{
files: ["packages/**/*.js"],
rules: {
...js.configs.recommended.rules,
"no-unused-vars": "warn",
"no-implicit-coercion": "warn",
"no-empty-pattern": "off",
},
languageOptions: {
ecmaVersion: 2022,
globals: {
...globals.builtin,
},
},
linterOptions: {
noInlineConfig: false,
},
},
];
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"docs"
],
"dependencies": {
"@eslint/js": "^8.57.0",
"eslint": "^9.0.0",
"globals": "^15.0.0",
"prettier": "^3.2.5",
"typescript": "^5.4.3"
},
Expand Down

0 comments on commit a3715e8

Please sign in to comment.