diff --git a/.eslintrc.js b/.eslintrc.js index 6c046c6..cdbe900 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,23 +3,23 @@ module.exports = { env: { node: true }, - extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"], + extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/prettier'], 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 b/.prettierrc new file mode 100644 index 0000000..e06d2f8 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "semi": false, + "arrowParens": "always", + "singleQuote": true, + "trailingComma": none +} diff --git a/babel.config.js b/babel.config.js index 397abca..716b023 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,3 @@ module.exports = { - presets: ["@vue/cli-plugin-babel/preset"] -}; + presets: ['@vue/cli-plugin-babel/preset'] +} diff --git a/jest.config.js b/jest.config.js index 3c6f7c8..0f95791 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,3 +1,3 @@ module.exports = { - preset: "@vue/cli-plugin-unit-jest" -}; + preset: '@vue/cli-plugin-unit-jest' +} diff --git a/src/App.vue b/src/App.vue index 1e47315..a27a672 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,14 +6,14 @@