Skip to content

Commit 91c8690

Browse files
committed
chore: fix mjs vs cjs
1 parent e448dfc commit 91c8690

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.eslintrc.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
const stylistic = require('@stylistic/eslint-plugin');
1+
import stylistic from '@stylistic/eslint-plugin';
2+
3+
const __dirname = import.meta.dirname;
24

35
const stylisticConfig = stylistic.configs.customize({
46
semi: true,
@@ -7,7 +9,7 @@ const stylisticConfig = stylistic.configs.customize({
79
quoteProps: 'as-needed',
810
});
911

10-
module.exports = {
12+
export default {
1113
env: {
1214
node: true,
1315
'jest/globals': true,

0 commit comments

Comments
 (0)