X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2F.eslintrc.cjs;h=b6252bbc59024a4c4709eb4061f6ffbec0fdeae4;hb=923ac728c8636e5d8e7cc387ade07990385c6fdd;hp=75c92c6a3b1e71b886cad07dc45eaaaa6f2b2463;hpb=68220b423c52da387fdf41967dd8c738da0ff52e;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/.eslintrc.cjs b/ui/web/.eslintrc.cjs index 75c92c6a..b6252bbc 100644 --- a/ui/web/.eslintrc.cjs +++ b/ui/web/.eslintrc.cjs @@ -6,42 +6,38 @@ module.exports = defineConfig({ root: true, env: { - node: true, + node: true }, - plugins: ['import'], + plugins: ['simple-import-sort'], extends: [ 'eslint:recommended', 'plugin:import/recommended', + 'plugin:import/typescript', 'plugin:vue/vue3-recommended', '@vue/eslint-config-typescript/recommended', - '@vue/eslint-config-prettier', + '@vue/eslint-config-prettier' ], settings: { 'import/resolver': { typescript: { - project: './tsconfig.json', - }, - }, + project: './tsconfig.json' + } + } }, parserOptions: { - ecmaVersion: 'latest', + sourceType: 'module', + ecmaVersion: 'latest' }, rules: { 'no-console': env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': env.NODE_ENV === 'production' ? 'warn' : 'off', - 'vue/require-v-for-key': 'off', - 'vue/multi-word-component-names': 'off', - 'sort-imports': [ - 'error', - { - ignoreDeclarationSort: true, - }, - ], - 'import/order': 'error', - }, + 'simple-import-sort/imports': 'error', + 'simple-import-sort/exports': 'error', + 'vue/multi-word-component-names': 'off' + } })