-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ESLint Prettier support into base package (#38)
Before eslint-plugin-prettier [1] and its corresponding eslint-config-prettier [2] package were supported by the @arcticicestudio/eslint-config [3] rule preset package. This worked fine for most projects, but also pulled in React specific dependencies like eslint-plugin-react [4] and eslint-plugin-jsx-a11y [5]. To allow to use Prettier without `@arcticicestudio/eslint-config`, the support has been moved into the @arcticicestudio/eslint-config-base package, including the optional entry point. [1]: https://github.com/prettier/eslint-plugin-prettier [2]: https://github.com/prettier/eslint-config-prettier [3]: https://github.com/arcticicestudio/styleguide-javascript/tree/develop/packages/%40arcticicestudio/eslint-config [4]: https://github.com/yannickcr/eslint-plugin-react [5]: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y Co-authored-by: Sven Greb <[email protected]> Closes GH-37
- Loading branch information
1 parent
e6709a9
commit a50130e
Showing
7 changed files
with
57 additions
and
29 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
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,18 @@ | ||
/* | ||
* Copyright (c) 2018-present Arctic Ice Studio <[email protected]> | ||
* Copyright (c) 2018-present Sven Greb <[email protected]> | ||
* This source code is licensed under the MIT license found in the LICENSE file. | ||
*/ | ||
|
||
/** | ||
* Entry point for the Prettier plugin integration with compatibility support for the following ESLint plugins: | ||
* | ||
* - `eslint-plugin-react` | ||
* | ||
* @since 0.9.0 | ||
* @see https://github.com/prettier/eslint-plugin-prettier | ||
* @see https://github.com/prettier/eslint-config-prettier | ||
*/ | ||
module.exports = { | ||
extends: ["./rules/prettier"].map(require.resolve), | ||
}; |
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
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