diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-11-12 11:37:43 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-11-12 11:37:59 +0100 |
commit | 190259bb0f512d881a1dc852ff0c68dd41aeb434 (patch) | |
tree | a69841d83fcb7df6809b0389e88e0dcb20c2fd7d /app/.eslintrc.js | |
parent | 35c2260f3b23de24a8fdc4c4a96151124ae7ccdf (diff) |
Init
Diffstat (limited to 'app/.eslintrc.js')
-rw-r--r-- | app/.eslintrc.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app/.eslintrc.js b/app/.eslintrc.js new file mode 100644 index 0000000..4c541ce --- /dev/null +++ b/app/.eslintrc.js @@ -0,0 +1,32 @@ +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", + "vue/no-deprecated-slot-attribute": "off", + "@typescript-eslint/no-explicit-any": "off", + "vue/multi-word-component-names": "off", + }, + overrides: [ + { + files: [ + "**/__tests__/*.{j,t}s?(x)", + "**/tests/unit/**/*.spec.{j,t}s?(x)", + ], + env: { + jest: true, + }, + }, + ], +}; |