Skip to content

Commit 7f05488

Browse files
committed
chore(scripts): fix lint config
1 parent 8566bcd commit 7f05488

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

eslint.config.mjs

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ export default [
2424
{ plugins: { knex: fixupPluginRules(knex) } },
2525
{ plugins: { unicorn } },
2626
{
27-
files: ["eslint.config.mjs"],
28-
languageOptions: {},
27+
files: ["**/eslint.config.mjs"],
28+
languageOptions: {
29+
sourceType: "module",
30+
},
2931
rules: {
3032
"n/no-unpublished-import": "off",
3133
},

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"lint:mon-pix": "cd mon-pix && npm run lint",
6060
"lint:orga": "cd orga && npm run lint",
6161
"lint:junior": "cd junior && npm run lint",
62-
"lint:scripts": "eslint scripts",
62+
"lint:scripts": "eslint --ignore-pattern **/compose.yaml scripts",
6363
"lint:yaml": "eslint --ignore-pattern compose.yaml",
6464
"lint:docs": "find ./docs -type f -name '*.md' | xargs -L1 markdown-link-check --quiet --config ./docs/link--check-config.json ",
6565
"local:add-optional-checks": "husky",
@@ -111,7 +111,6 @@
111111
"eslint-plugin-prettier": "^5.0.0",
112112
"eslint-plugin-unicorn": "^56.0.0",
113113
"typescript-eslint": "^8.24.0",
114-
115114
"husky": "^9.0.0",
116115
"lint-staged": "^15.0.0"
117116
},

0 commit comments

Comments
 (0)