Use MJS in ESLint config

This commit is contained in:
Maciej Pędzich 2024-07-26 16:36:18 +02:00
parent 61c9c48ab3
commit d7c966c37f
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D
2 changed files with 19 additions and 17 deletions

View File

@ -1,17 +0,0 @@
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'prettier'
],
plugins: ['prettier'],
rules: {
'vue/multi-word-component-names': 'off',
'prettier/prettier': 'error'
}
};

19
eslint.config.mjs Normal file
View File

@ -0,0 +1,19 @@
export default [
{
root: true,
env: {
node: true
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'prettier'
],
plugins: ['prettier'],
rules: {
'vue/multi-word-component-names': 'off',
'prettier/prettier': 'error'
}
}
];