Skip to content

Commit a4b8693

Browse files
committed
eslint: in the upcoming JavaScript code, skip unneeded semicolons
I am about to add some JavaScript code, where semicolons are frequently unneeded. Let's skip them there. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 51fc396 commit a4b8693

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

eslint.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,18 @@ export default tseslint.config(
127127
"security/detect-object-injection": "off",
128128
},
129129
},
130+
{
131+
files: ["**/*.js", "**/*.mjs"],
132+
rules: {
133+
"@stylistic/semi": ["error", "never"],
134+
"prettier/prettier": [
135+
"warn",
136+
{
137+
semi: false,
138+
},
139+
],
140+
},
141+
},
130142
{
131143
files: ["tests/*.ts", "lib/*.ts", "script/*.ts"],
132144
extends: [...tseslint.configs.recommendedTypeChecked],

0 commit comments

Comments
 (0)