Skip to content

Commit

Permalink
Merge pull request #39 from intuitem/fix/eslint-svelte
Browse files Browse the repository at this point in the history
Update ESLint config
  • Loading branch information
Mohamed-Hacene authored Feb 12, 2024
2 parents 88888a3 + 10a1e61 commit 3078275
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 25 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,6 @@ jobs:
working-directory: ${{ env.working-directory }}
run: |
touch .env
echo DEFAULT_FROM_EMAIL='[email protected]' >> .env
echo EMAIL_HOST='localhost' >> .env
echo EMAIL_PORT=1025 >> .env
echo EMAIL_HOST_USER='user' >> .env
echo EMAIL_HOST_PASSWORD='pass' >> .env
echo EMAIL_USE_TLS=True >> .env
echo EMAIL_HOST_RESCUE='localhost' >> .env
echo EMAIL_PORT_RESCUE=1025 >> .env
echo EMAIL_HOST_USER_RESCUE='' >> .env
echo EMAIL_HOST_PASSWORD_RESCUE='' >> .env
echo EMAIL_USE_TLS_RESCUE=False >> .env
echo PUBLIC_BACKEND_API_URL=http://127.0.0.1:8000/api >> .env
- name: Create backend environment variables file
Expand All @@ -80,11 +69,6 @@ jobs:
echo POSTGRES_USER=postgres >> .env
echo POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }} >> .env
echo DB_HOST=localhost >> .env
echo EMAIL_HOST=localhost >> .env
echo EMAIL_PORT=1025 >> .env
echo EMAIL_HOST_USER='' >> .env
echo EMAIL_HOST_PASSWORD='' >> .env
echo DEFAULT_FROM_EMAIL='[email protected]' >> .env
echo CISO_ASSISTANT_SUPERUSER_EMAIL='' >> .env
echo CISO_ASSISTANT_URL=http://127.0.0.1:4173 >> .env
- name: Run migrations
Expand Down
28 changes: 19 additions & 9 deletions frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte3', '@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript')
},
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
}
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
199 changes: 199 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"autoprefixer": "^10.4.14",
"eslint": "^8.53.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.35.1",
"jsdom": "^22.1.0",
"postcss": "^8.4.23",
"prettier": "^2.8.0",
Expand Down

0 comments on commit 3078275

Please sign in to comment.