Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Eslint 9 #73

Merged
merged 5 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .eslintignore

This file was deleted.

93 changes: 0 additions & 93 deletions .eslintrc.js

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/api-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ jobs:
node-version: 20

- name: Install dependencies and test
#TODO: remove --force
run: |
npm install
npm install --force
cd ./server
npm install
npm run types:server
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/api-demo-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ jobs:
node-version: 20

- name: Install dependencies and test
#TODO: remove --force
run: |
npm install
npm install --force
cd ./server
npm install
npm run types:server
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/web-app-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
node-version: 20

- name: Install dependencies
run: npm install
run: npm install --force #TODO: remove --force

- name: Write .env file
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/web-app-demo-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
node-version: 20

- name: Install dependencies
run: npm install
run: npm install --force #TODO: remove --force

- name: Write .env file
run: |
Expand Down
Binary file modified bun.lockb
Binary file not shown.
79 changes: 79 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
// @ts-check
import pluginVue from 'eslint-plugin-vue';
import globals from 'globals';
import eslint from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';
import tsEslint from 'typescript-eslint';

export default tsEslint.config(
eslint.configs.recommended,
...tsEslint.configs.recommended,
...pluginVue.configs['flat/recommended'],
eslintConfigPrettier,
{
plugins: {
'typescript-eslint': tsEslint.plugin,
},
languageOptions: {
globals: {
...globals.browser,
...globals.node,
ga: 'readonly',
cordova: 'readonly',
__statics: 'readonly',
__QUASAR_SSR__: 'readonly',
__QUASAR_SSR_SERVER__: 'readonly',
__QUASAR_SSR_CLIENT__: 'readonly',
__QUASAR_SSR_PWA__: 'readonly',
process: 'readonly',
Capacitor: 'readonly',
chrome: 'readonly',
defineProps: 'readonly',
defineEmits: 'readonly',
defineExpose: 'readonly',
},
parserOptions: {
parser: tsEslint.parser,
extraFileExtensions: ['.vue'],
sourceType: 'module',
tsconfigRootDir: import.meta.dirname,
projectService: true,
},
},
rules: {
quotes: [
'warn',
'single',
{
avoidEscape: true,
},
],
'no-undef': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'vue/multi-word-component-names': 'warn',
},
},
{
files: ['**/*.js'],
...tsEslint.configs.disableTypeChecked,
},
{
files: ['**/*.ts', '**/*.vue'],
},
{
ignores: [
'*.config.*',
'*.d.ts',
'.quasar',
'coverage',
'dist',
'node_modules',
'server',
'src-ssr',
'src/css/**/*',
'src/assets/**/*',
'vitest-setup.ts',
],
}
);
Loading
Loading