mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-04 20:15:23 -08:00
Use prettier with eslint
This commit is contained in:
@@ -1,15 +1,20 @@
|
|||||||
import github from 'eslint-plugin-github'
|
import github from 'eslint-plugin-github'
|
||||||
|
import prettier from 'eslint-plugin-prettier'
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
github.getFlatConfigs().recommended,
|
github.getFlatConfigs().recommended,
|
||||||
...github.getFlatConfigs().typescript,
|
...github.getFlatConfigs().typescript,
|
||||||
{
|
{
|
||||||
files: ['src/**/*.ts'],
|
files: ['src/**/*.ts'],
|
||||||
|
plugins: {
|
||||||
|
prettier,
|
||||||
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'no-shadow': 'off',
|
'no-shadow': 'off',
|
||||||
'import/no-namespace': 'off',
|
'import/no-namespace': 'off',
|
||||||
'i18n-text/no-en': 'off',
|
'i18n-text/no-en': 'off',
|
||||||
'prefer-template': 'off',
|
'prefer-template': 'off',
|
||||||
|
'prettier/prettier': 'error',
|
||||||
"@typescript-eslint/array-type": ['error', {default: 'array'}],
|
"@typescript-eslint/array-type": ['error', {default: 'array'}],
|
||||||
'@typescript-eslint/no-unused-vars': ['error', {varsIgnorePattern: '^_'}],
|
'@typescript-eslint/no-unused-vars': ['error', {varsIgnorePattern: '^_'}],
|
||||||
'@typescript-eslint/no-shadow': ['error'],
|
'@typescript-eslint/no-shadow': ['error'],
|
||||||
|
|||||||
Reference in New Issue
Block a user