-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prettier-disable): adds a prettier-disable shared config
wraps eslint-config-prettier and enables some compatible rules
- Loading branch information
1 parent
eb0cb3d
commit 4e8000c
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,14 @@ | ||
/** | ||
* Workaround to allow ESLint to resolve plugins that were installed | ||
* by an external config, see https://github.com/eslint/eslint/issues/3458. | ||
*/ | ||
require('@rushstack/eslint-patch/modern-module-resolution'); | ||
|
||
/** @type {import('eslint').ESLint.ConfigData & { parserOptions: import('eslint').ESLint.ConfigData['parserOptions'] & import('@typescript-eslint/parser').ParserOptions } } */ | ||
module.exports = { | ||
extends: ['prettier'], | ||
rules: { | ||
curly: 'error', | ||
'no-confusing-arrow': ['error', { allowParens: false, onlyOneSimpleParam: false }], | ||
}, | ||
}; |