Skip to content

Commit

Permalink
Merge pull request #2086 from jplag/report-viewer/upgrade-eslint-config
Browse files Browse the repository at this point in the history
Eslint upgrade
  • Loading branch information
tsaglam authored Dec 24, 2024
2 parents 5816b04 + 02f5ef5 commit 6fe8166
Show file tree
Hide file tree
Showing 29 changed files with 517 additions and 479 deletions.
35 changes: 0 additions & 35 deletions report-viewer/.eslintrc.cjs

This file was deleted.

43 changes: 43 additions & 0 deletions report-viewer/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import pluginVue from 'eslint-plugin-vue'
import js from '@eslint/js'
import tseslint from 'typescript-eslint'
import vueParser from 'vue-eslint-parser'
import eslintConfigPrettier from 'eslint-config-prettier'

export default [
js.configs.recommended,
...pluginVue.configs['flat/recommended'],
...tseslint.configs.recommended,
eslintConfigPrettier,
{
ignores: ['**/*.config.ts', 'node_modules/**', 'dist/**', '**/playwright-report/**']
},
{
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.vue'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
parser: vueParser,
parserOptions: {
parser: tseslint.parser
}
},
rules: {
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
'no-restricted-exports': ['error', { restrictDefaultExports: { direct: true } }],
'vue/no-setup-props-reactivity-loss': 'error'
}
},
{
files: ['**/*.config.ts', '**/*.config.js', '**/*.d.ts'],
rules: {
'no-restricted-exports': 'off'
}
},
{
files: ['**/*.test.ts'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off'
}
}
]
Loading

0 comments on commit 6fe8166

Please sign in to comment.