summaryrefslogtreecommitdiffstatshomepage
path: root/frontend/.eslintrc.cjs
diff options
context:
space:
mode:
authorWolfgang Müller2024-03-05 18:08:09 +0100
committerWolfgang Müller2024-03-05 19:25:59 +0100
commitd1d654ebac2d51e3841675faeb56480e440f622f (patch)
tree56ef123c1a15a10dfd90836e4038e27efde950c6 /frontend/.eslintrc.cjs
downloadhircine-0.1.0.tar.gz
Initial commit0.1.0
Diffstat (limited to 'frontend/.eslintrc.cjs')
-rw-r--r--frontend/.eslintrc.cjs49
1 files changed, 49 insertions, 0 deletions
diff --git a/frontend/.eslintrc.cjs b/frontend/.eslintrc.cjs
new file mode 100644
index 0000000..c204ebe
--- /dev/null
+++ b/frontend/.eslintrc.cjs
@@ -0,0 +1,49 @@
+module.exports = {
+ root: true,
+ extends: [
+ 'eslint:recommended',
+ 'plugin:@typescript-eslint/recommended-type-checked',
+ 'plugin:@typescript-eslint/stylistic-type-checked',
+ 'plugin:svelte/recommended',
+ 'prettier'
+ ],
+ parser: '@typescript-eslint/parser',
+ plugins: ['@typescript-eslint'],
+ ignorePatterns: ['*.cjs'],
+ parserOptions: {
+ sourceType: 'module',
+ ecmaVersion: 2022,
+ extraFileExtensions: ['.svelte'],
+ project: true,
+ tsconfigRootDir: __dirname
+ },
+ env: {
+ browser: true,
+ es2022: true,
+ node: true
+ },
+ overrides: [
+ {
+ files: ['*.svelte'],
+ parser: 'svelte-eslint-parser',
+ parserOptions: {
+ parser: '@typescript-eslint/parser'
+ },
+ rules: {
+ '@typescript-eslint/no-unsafe-argument': 'off',
+ '@typescript-eslint/no-unsafe-assignment': 'off',
+ '@typescript-eslint/no-unsafe-call': 'off',
+ '@typescript-eslint/no-unsafe-enum-comparison': 'off',
+ '@typescript-eslint/no-unsafe-member-access': 'off'
+ }
+ },
+ {
+ files: ['codegen.ts', 'svelte.config.js'],
+ extends: ['plugin:@typescript-eslint/disable-type-checked']
+ }
+ ],
+ rules: {
+ 'no-console': 'warn',
+ eqeqeq: 'error'
+ }
+};