summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorHelianthella <git@gumi.ca>2020-12-22 00:06:42 -0500
committerHelianthella <git@gumi.ca>2020-12-22 00:06:47 -0500
commitb90bbeab7c1435518224496821ff3449476c458d (patch)
treee543aefb386a69bbe4b5d9fc73ebfb4c73c9361f /.eslintrc.js
parentf9c051e61da67b93ed3c9aba3d77bced80e1503e (diff)
downloadwebsite-b90bbeab7c1435518224496821ff3449476c458d.tar.gz
website-b90bbeab7c1435518224496821ff3449476c458d.tar.bz2
website-b90bbeab7c1435518224496821ff3449476c458d.tar.xz
website-b90bbeab7c1435518224496821ff3449476c458d.zip
upgrade to Vue 3, switch to yarn
implies a slight refactor
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..f3b7cac
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,18 @@
+module.exports = {
+ root: true,
+ env: {
+ node: true
+ },
+ 'extends': [
+ 'plugin:vue/vue3-essential',
+ 'eslint:recommended',
+ '@vue/typescript/recommended'
+ ],
+ parserOptions: {
+ ecmaVersion: 2020
+ },
+ rules: {
+ 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
+ }
+}