-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2086 from jplag/report-viewer/upgrade-eslint-config
Eslint upgrade
- Loading branch information
Showing
29 changed files
with
517 additions
and
479 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
} | ||
} | ||
] |
Oops, something went wrong.