diff --git a/.eslintrc.js b/.eslintrc.js index 410c5989..edca7d69 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,23 +3,28 @@ module.exports = { env: { node: true, }, - extends: ["plugin:vue/vue3-recommended", "eslint:recommended", "@vue/prettier"], + extends: [ + 'plugin:vue/vue3-recommended', + 'eslint:recommended', + '@vue/prettier', + 'plugin:prettier/recommended', + ], parserOptions: { - parser: "babel-eslint", + parser: 'babel-eslint', }, rules: { - "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", - "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", + 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', }, overrides: [ { files: [ - "**/__tests__/*.{j,t}s?(x)", - "**/tests/unit/**/*.spec.{j,t}s?(x)", + '**/__tests__/*.{j,t}s?(x)', + '**/tests/unit/**/*.spec.{j,t}s?(x)', ], env: { jest: true, }, }, ], -}; +} diff --git a/.prettierrc.js b/.prettierrc.js index 1fb3a24e..6ac17b64 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,6 +1,7 @@ -// module.exports = { -// semi: false, -// trailingComma: "all", -// singleQuote: true, -// tabWidth: 2 -// }; +module.exports = { + // jsxBracketSameLine: true, + semi: false, + trailingComma: "all", + singleQuote: true, + tabWidth: 2 +};