Skip to content

Commit cce10e9

Browse files
authored
Merge pull request #100 from lydell/update-repo
2 parents d9a116f + a105cf3 commit cce10e9

14 files changed

+9472
-4006
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [15.x]
15+
node-version: [16.x]
1616

1717
steps:
1818
- uses: actions/checkout@v2
1919

20-
- uses: actions/setup-node@v1
20+
- uses: actions/setup-node@v2
2121
with:
2222
node-version: "${{ matrix.node-version }}"
2323

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212

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

1717
steps:
1818
- uses: actions/checkout@v2
1919

20-
- uses: actions/setup-node@v1
20+
- uses: actions/setup-node@v2
2121
with:
2222
node-version: "${{ matrix.node-version }}"
2323

README.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,6 @@ This is for those who use `eslint --fix` (autofix) a lot and want to completely
2222
[prettier]: https://prettier.io/
2323
[typescript]: https://www.typescriptlang.org/
2424

25-
<!-- prettier-ignore-start -->
26-
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
27-
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
28-
29-
- [Example](#example)
30-
- [Installation](#installation)
31-
- [Usage](#usage)
32-
- [Example configuration](#example-configuration)
33-
- [Not for everyone](#not-for-everyone)
34-
- [Sort order](#sort-order)
35-
- [Grouping](#grouping)
36-
- [imports](#imports)
37-
- [exports](#exports)
38-
- [Sorting](#sorting)
39-
- [Example](#example-1)
40-
- [Custom grouping](#custom-grouping)
41-
- [Comment and whitespace handling](#comment-and-whitespace-handling)
42-
- [FAQ](#faq)
43-
- [Does it support `require`?](#does-it-support-require)
44-
- [Why sort on `from`?](#why-sort-on-from)
45-
- [Is sorting imports/exports safe?](#is-sorting-importsexports-safe)
46-
- [The sorting autofix causes some odd whitespace!](#the-sorting-autofix-causes-some-odd-whitespace)
47-
- [Can I use this without autofix?](#can-i-use-this-without-autofix)
48-
- [How do I use eslint-ignore for this rule?](#how-do-i-use-eslint-ignore-for-this-rule)
49-
- [How is this rule different from `import/order`?](#how-is-this-rule-different-from-importorder)
50-
- [License](#license)
51-
52-
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
53-
<!-- prettier-ignore-end -->
54-
5525
## Example
5626

5727
<!-- prettier-ignore -->

babel.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": ["@babel/plugin-transform-flow-strip-types"]
3+
}

build.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ const FILES_TO_COPY = [
2222
.map((file) => ({ src: path.join(SRC, file), dest: file })),
2323
];
2424

25-
if (fs.existsSync(BUILD)) {
25+
if (fs.rmSync !== undefined) {
26+
fs.rmSync(BUILD, { recursive: true, force: true });
27+
} else if (fs.existsSync(BUILD)) {
2628
fs.rmdirSync(BUILD, { recursive: true });
2729
}
2830

examples/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ module.exports = {
235235
{
236236
// These files are used in README.md.
237237
files: ["readme-*.js"],
238-
parser: "babel-eslint",
238+
parser: "@babel/eslint-parser",
239239
},
240240
{
241241
// TypeScript.

0 commit comments

Comments
 (0)