Skip to content

Commit b893df3

Browse files
authored
Enforce file extensions in imports to comply with ESM standards (#486)
1 parent 01b317f commit b893df3

File tree

348 files changed

+2890
-1259
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

348 files changed

+2890
-1259
lines changed

.eslintrc.cjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,20 @@ module.exports = {
3333
'vue/no-reserved-component-names': 0,
3434
'eol-last': ['error', 'always'],
3535
'prettier/prettier': 'error',
36+
'import/extensions': [
37+
'error',
38+
'always',
39+
{
40+
js: 'always',
41+
vue: 'always',
42+
},
43+
],
3644
},
3745
globals: {
3846
describe: true,
3947
expect: true,
4048
it: true,
4149
test: true,
4250
},
43-
plugins: ['prettier'],
51+
plugins: ['prettier', 'import'],
4452
};

0 commit comments

Comments
 (0)