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

Extract prettier config from eslintrc #1893

Merged
merged 1 commit into from
Jan 15, 2022
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
34 changes: 16 additions & 18 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
extends:
- "eslint:recommended"
- "plugin:import/typescript"
- "plugin:@typescript-eslint/eslint-recommended"
- "plugin:@typescript-eslint/recommended"
- "plugin:prettier/recommended"
parser: "@typescript-eslint/parser"
- 'eslint:recommended'
- 'plugin:import/typescript'
- 'plugin:@typescript-eslint/eslint-recommended'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:prettier/recommended'
- prettier
parser: '@typescript-eslint/parser'
parserOptions:
project: './tsconfig.json'
plugins:
- import
- node
- "@typescript-eslint"
- '@typescript-eslint'
- prettier
rules:
prettier/prettier:
- error
- trailingComma: es5
singleQuote: true
semi: false
'prettier/prettier': 2
# requires strictNullChecks compiler option, produces many errors with messages objects
"@typescript-eslint/strict-boolean-expressions": off
"@typescript-eslint/no-explicit-any": off
"@typescript-eslint/no-inferrable-types": off
"@typescript-eslint/no-empty-function": off
"@typescript-eslint/ban-types": off
"@typescript-eslint/no-unused-vars": off
'@typescript-eslint/strict-boolean-expressions': off
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/no-inferrable-types': off
'@typescript-eslint/no-empty-function': off
'@typescript-eslint/ban-types': off
'@typescript-eslint/no-unused-vars': off
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"trailingComma": "es5",
"singleQuote": true,
"semi": false
}