X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2F.eslintrc.js;h=d82d3c5f6ef9cc228dcb52606aedad0e61433f8b;hb=c0a330785a8f27f5a3e889251829497a2538ebef;hp=b3d90ef8db79549888f1c98807a31107b10258e9;hpb=cbac237384185b5debef0c1e8b21e96f730104e5;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/.eslintrc.js b/ui/web/.eslintrc.js index b3d90ef8..d82d3c5f 100644 --- a/ui/web/.eslintrc.js +++ b/ui/web/.eslintrc.js @@ -1,3 +1,4 @@ +const { env } = require('node:process'); const { defineConfig } = require('eslint-define-config'); module.exports = defineConfig({ @@ -11,10 +12,10 @@ module.exports = defineConfig({ extends: [ 'eslint:recommended', + 'plugin:import/recommended', 'plugin:vue/vue3-recommended', - '@vue/eslint-config-typescript/recommended', '@vue/eslint-config-prettier', - 'plugin:import/recommended', + '@vue/eslint-config-typescript/recommended', ], settings: { @@ -30,8 +31,8 @@ module.exports = defineConfig({ }, rules: { - 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + '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': [