-
Notifications
You must be signed in to change notification settings - Fork 2
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 #91 from atmina/remove-eslint-plugin-prettier
Remove eslint-plugin-prettier
- Loading branch information
Showing
4 changed files
with
5 additions
and
50 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
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 |
---|---|---|
@@ -1,23 +1,12 @@ | ||
// Runs Prettier as an ESLint rule and reports differences as individual ESLint issues. | ||
const prettierPlugin = require('eslint-plugin-prettier'); | ||
|
||
// Turns off all rules that are unnecessary or might conflict with Prettier. | ||
const prettierOverrides = require('eslint-config-prettier'); | ||
|
||
const prettierOptions = require('../prettier'); | ||
|
||
/** | ||
* @type {import('eslint').Linter.FlatConfig} | ||
*/ | ||
module.exports = { | ||
files: ['**/*.{ts,tsx,js,jsx}'], | ||
plugins: {prettier: prettierPlugin}, | ||
rules: { | ||
...prettierOverrides.rules, | ||
...prettierPlugin.configs.recommended.rules, | ||
// Note: this effectively locks in our Prettier configuration (ignoring | ||
// .prettierrc completely). Since this is an opinionated setup, we probably | ||
// don't want to allow customization anyway. | ||
'prettier/prettier': ['warn', prettierOptions], | ||
}, | ||
}; |
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.