Skip to content

Commit

Permalink
Lint .mjs files too
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jan 15, 2025
1 parent f1ba03d commit 61fb0c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ export default [
],
},
},
// Be less docmatic for config files
{
files: ["**/*.config.js"],

files: ["**/*.config.{mjs,js}"],
rules: {
"@typescript-eslint/no-require-imports": "off",
"import/no-anonymous-default-export": "off",
},
},
];
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"build": "next build",
"start": "next start",
"format": "prettier --write --log-level warn \"./**/*.{js,jsx,mjs,ts,tsx}\"",
"lint": "eslint --max-warnings 0 \"./**/*.{js,jsx,ts,tsx}\"",
"lint:fix": "eslint --max-warnings 0 \"./**/*.{js,jsx,ts,tsx}\" --fix"
"lint": "eslint --max-warnings 0 \"./**/*.{js,jsx,mjs,ts,tsx}\"",
"lint:fix": "eslint --max-warnings 0 \"./**/*.{js,jsx,mjs,ts,tsx}\" --fix"
},
"dependencies": {
"@cosmjs/amino": "^0.32.4",
Expand Down

0 comments on commit 61fb0c0

Please sign in to comment.