aboutsummaryrefslogtreecommitdiffstats
path: root/code/frontend/.eslintrc.cjs
diff options
context:
space:
mode:
Diffstat (limited to 'code/frontend/.eslintrc.cjs')
-rw-r--r--code/frontend/.eslintrc.cjs31
1 files changed, 31 insertions, 0 deletions
diff --git a/code/frontend/.eslintrc.cjs b/code/frontend/.eslintrc.cjs
new file mode 100644
index 0000000..0b75758
--- /dev/null
+++ b/code/frontend/.eslintrc.cjs
@@ -0,0 +1,31 @@
+/** @type { import("eslint").Linter.Config } */
+module.exports = {
+ root: true,
+ extends: [
+ 'eslint:recommended',
+ 'plugin:@typescript-eslint/recommended',
+ 'plugin:svelte/recommended',
+ 'prettier'
+ ],
+ parser: '@typescript-eslint/parser',
+ plugins: ['@typescript-eslint'],
+ parserOptions: {
+ sourceType: 'module',
+ ecmaVersion: 2020,
+ extraFileExtensions: ['.svelte']
+ },
+ env: {
+ browser: true,
+ es2017: true,
+ node: true
+ },
+ overrides: [
+ {
+ files: ['*.svelte'],
+ parser: 'svelte-eslint-parser',
+ parserOptions: {
+ parser: '@typescript-eslint/parser'
+ }
+ }
+ ]
+};