Switch back to using .mjs extension otherwise webpack doesn't compile well with type:module specified in package.json file

This commit is contained in:
2024-11-05 15:48:48 +01:00
parent f05c25853c
commit dd854ea339
2 changed files with 0 additions and 1 deletions

30
eslint.config.mjs Normal file
View File

@@ -0,0 +1,30 @@
import eslintPluginVue from 'eslint-plugin-vue'
import ts from 'typescript-eslint'
export default ts.config(
...ts.configs.recommended,
...ts.configs.stylistic,
...eslintPluginVue.configs['flat/essential'],
{
files: ['**/*.vue'],
languageOptions: {
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
},
{
ignores: [
'**/vendor/*',
'**/import-png.d.ts',
'**/chill.webpack.config.js'
]
},
{
rules: {
// override/add rules settings here, such as:
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-require-imports': 'off'
}
}
)