mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 13:57:09 +01:00
Use prettier with eslint
This commit is contained in:
parent
4277f239de
commit
8a2a2093e5
1 changed files with 5 additions and 0 deletions
|
|
@ -1,15 +1,20 @@
|
|||
import github from 'eslint-plugin-github'
|
||||
import prettier from 'eslint-plugin-prettier'
|
||||
|
||||
export default [
|
||||
github.getFlatConfigs().recommended,
|
||||
...github.getFlatConfigs().typescript,
|
||||
{
|
||||
files: ['src/**/*.ts'],
|
||||
plugins: {
|
||||
prettier,
|
||||
},
|
||||
rules: {
|
||||
'no-shadow': 'off',
|
||||
'import/no-namespace': 'off',
|
||||
'i18n-text/no-en': 'off',
|
||||
'prefer-template': 'off',
|
||||
'prettier/prettier': 'error',
|
||||
"@typescript-eslint/array-type": ['error', {default: 'array'}],
|
||||
'@typescript-eslint/no-unused-vars': ['error', {varsIgnorePattern: '^_'}],
|
||||
'@typescript-eslint/no-shadow': ['error'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue