From 5c4d184e38f0b1f1d550621a5b4d8daf48279079 Mon Sep 17 00:00:00 2001 From: SokichiFujita Date: Tue, 23 Feb 2021 12:47:30 +0900 Subject: [PATCH 1/5] remove prettier/react for v8.0.0 --- bin/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/index.js b/bin/index.js index 133fdab..3f33555 100755 --- a/bin/index.js +++ b/bin/index.js @@ -169,9 +169,9 @@ const eslint = { extends: [ "airbnb", "airbnb/hooks", - "plugin:jest/recommended", "prettier", - "prettier/react", + "plugin:jest/recommended", + "plugin:prettier/recommended", ], parser: "babel-eslint", env: { From 2cb0609df36244b9677081f98c8a04c7755f6ebb Mon Sep 17 00:00:00 2001 From: SokichiFujita Date: Tue, 23 Feb 2021 12:49:08 +0900 Subject: [PATCH 2/5] fix action --- .github/workflows/npm_test.yml | 2 +- .github/workflows/npx.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm_test.yml b/.github/workflows/npm_test.yml index dbc5684..3a0c05b 100644 --- a/.github/workflows/npm_test.yml +++ b/.github/workflows/npm_test.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x] + node-version: [14.x] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/npx.yml b/.github/workflows/npx.yml index 4a4c047..7818afb 100644 --- a/.github/workflows/npx.yml +++ b/.github/workflows/npx.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x] + node-version: [14.x] steps: - uses: actions/checkout@v2 From ddcdfb43c0e22328630c576948cc3703be3b84c0 Mon Sep 17 00:00:00 2001 From: SokichiFujita Date: Tue, 23 Feb 2021 13:06:16 +0900 Subject: [PATCH 3/5] fix --- README.md | 1 - bin/index.js | 11 ++++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 000b771..5c2aa02 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,6 @@ npm start * [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) * [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) * [eslint-plugin-jsx-a11y](https://github.com/evcohen/eslint-plugin-jsx-a11y) - * [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) * [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint) (Optional) * [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint) (Optional) * [Prettier](https://prettier.io) diff --git a/bin/index.js b/bin/index.js index 3f33555..2d6a613 100755 --- a/bin/index.js +++ b/bin/index.js @@ -171,14 +171,13 @@ const eslint = { "airbnb/hooks", "prettier", "plugin:jest/recommended", - "plugin:prettier/recommended", ], parser: "babel-eslint", env: { browser: true, jest: true, }, - plugins: ["prettier", "jest"], + plugins: ["jest"], rules: { "import/prefer-default-export": "off", "react/jsx-filename-extension": [1, { extensions: [".js"] }], @@ -199,19 +198,17 @@ const eslint_ts = { extends: [ "airbnb", "airbnb/hooks", - "plugin:@typescript-eslint/recommended", - "plugin:jest/recommended", - "plugin:prettier/recommended", "prettier", "prettier/@typescript-eslint", - "prettier/react", + "plugin:@typescript-eslint/recommended", + "plugin:jest/recommended", ], parser: "@typescript-eslint/parser", env: { browser: true, jest: true, }, - plugins: ["prettier", "jest", "@typescript-eslint"], + plugins: ["jest", "@typescript-eslint"], settings: { "import/resolver": { node: { From fdb3242d1683b93eda99cfb759caca7b235b9e76 Mon Sep 17 00:00:00 2001 From: SokichiFujita Date: Tue, 23 Feb 2021 13:19:31 +0900 Subject: [PATCH 4/5] fix --- bin/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/index.js b/bin/index.js index 2d6a613..52f7baa 100755 --- a/bin/index.js +++ b/bin/index.js @@ -169,8 +169,8 @@ const eslint = { extends: [ "airbnb", "airbnb/hooks", - "prettier", "plugin:jest/recommended", + "prettier", ], parser: "babel-eslint", env: { @@ -198,10 +198,10 @@ const eslint_ts = { extends: [ "airbnb", "airbnb/hooks", - "prettier", - "prettier/@typescript-eslint", "plugin:@typescript-eslint/recommended", "plugin:jest/recommended", + "prettier", + "prettier/@typescript-eslint", ], parser: "@typescript-eslint/parser", env: { From 7035da68867bae424897799f1c983dfd80e7e950 Mon Sep 17 00:00:00 2001 From: SokichiFujita Date: Tue, 23 Feb 2021 13:40:22 +0900 Subject: [PATCH 5/5] fix --- bin/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/index.js b/bin/index.js index 52f7baa..fc2f165 100755 --- a/bin/index.js +++ b/bin/index.js @@ -201,7 +201,6 @@ const eslint_ts = { "plugin:@typescript-eslint/recommended", "plugin:jest/recommended", "prettier", - "prettier/@typescript-eslint", ], parser: "@typescript-eslint/parser", env: {