Skip to content

Commit

Permalink
Backend updates
Browse files Browse the repository at this point in the history
  • Loading branch information
IMGROOT2 committed Oct 3, 2024
1 parent e29b176 commit 2cd122b
Show file tree
Hide file tree
Showing 20 changed files with 6,226 additions and 5,636 deletions.
18 changes: 0 additions & 18 deletions .eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion database.rules.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
/* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
"rules": {
".read": false,
".write": false
Expand Down
50 changes: 50 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { includeIgnoreFile } from "@eslint/compat";
import path from "node:path";
import { fileURLToPath } from "node:url";
import vue from 'eslint-plugin-vue';
import prettier from 'eslint-config-prettier';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const gitignorePath = path.resolve(__dirname, ".gitignore");

export default [
includeIgnoreFile(gitignorePath),
...vue.configs['flat/essential'],

{
files: ['**/*.{js,cjs,mjs,ts,tsx}'],
rules: {
'no-unused-vars': 'warn',
'no-console': 'off',
},
languageOptions: {
ecmaVersion: 'latest',
},
},

{
files: ['**/*.vue'],
plugins: {
vue,
},
rules: {
...vue.configs['vue3-essential'].rules,
'vue/multi-word-component-names': 'off',
},
languageOptions: {
parserOptions: {
ecmaVersion: 'latest',
},
},
},

{
plugins: {
prettier,
},
rules: {
...prettier.rules,
},
},
];
Loading

0 comments on commit 2cd122b

Please sign in to comment.