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

Update repo #100

Merged
merged 3 commits into from
Mar 26, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:

strategy:
matrix:
node-version: [15.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: "${{ matrix.node-version }}"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: "${{ matrix.node-version }}"

Expand Down
30 changes: 0 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,6 @@ This is for those who use `eslint --fix` (autofix) a lot and want to completely
[prettier]: https://prettier.io/
[typescript]: https://www.typescriptlang.org/

<!-- prettier-ignore-start -->
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [Example](#example)
- [Installation](#installation)
- [Usage](#usage)
- [Example configuration](#example-configuration)
- [Not for everyone](#not-for-everyone)
- [Sort order](#sort-order)
- [Grouping](#grouping)
- [imports](#imports)
- [exports](#exports)
- [Sorting](#sorting)
- [Example](#example-1)
- [Custom grouping](#custom-grouping)
- [Comment and whitespace handling](#comment-and-whitespace-handling)
- [FAQ](#faq)
- [Does it support `require`?](#does-it-support-require)
- [Why sort on `from`?](#why-sort-on-from)
- [Is sorting imports/exports safe?](#is-sorting-importsexports-safe)
- [The sorting autofix causes some odd whitespace!](#the-sorting-autofix-causes-some-odd-whitespace)
- [Can I use this without autofix?](#can-i-use-this-without-autofix)
- [How do I use eslint-ignore for this rule?](#how-do-i-use-eslint-ignore-for-this-rule)
- [How is this rule different from `import/order`?](#how-is-this-rule-different-from-importorder)
- [License](#license)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->
<!-- prettier-ignore-end -->

## Example

<!-- prettier-ignore -->
Expand Down
3 changes: 3 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["@babel/plugin-transform-flow-strip-types"]
}
4 changes: 3 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ const FILES_TO_COPY = [
.map((file) => ({ src: path.join(SRC, file), dest: file })),
];

if (fs.existsSync(BUILD)) {
if (fs.rmSync !== undefined) {
fs.rmSync(BUILD, { recursive: true, force: true });
} else if (fs.existsSync(BUILD)) {
fs.rmdirSync(BUILD, { recursive: true });
}

Expand Down
2 changes: 1 addition & 1 deletion examples/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ module.exports = {
{
// These files are used in README.md.
files: ["readme-*.js"],
parser: "babel-eslint",
parser: "@babel/eslint-parser",
},
{
// TypeScript.
Expand Down