Skip to content

Commit

Permalink
Merge pull request #100 from lydell/update-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell authored Mar 26, 2022
2 parents d9a116f + a105cf3 commit cce10e9
Show file tree
Hide file tree
Showing 14 changed files with 9,472 additions and 4,006 deletions.
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
Loading

0 comments on commit cce10e9

Please sign in to comment.