Skip to content

Commit 66bf31e

Browse files
committed
fix: eslint cyclic deps
1 parent a094de9 commit 66bf31e

File tree

8 files changed

+50
-58
lines changed

8 files changed

+50
-58
lines changed

packages/@straw-hat/eslint-config-base/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
2-
extends: ['airbnb-base', 'prettier'],
3-
plugins: ['simple-import-sort', 'plugin:unicorn/recommended'],
2+
extends: ['airbnb-base', 'prettier', 'plugin:unicorn/recommended'],
3+
plugins: ['simple-import-sort'],
44
rules: {
55
'simple-import-sort/imports': 'error',
66
'simple-import-sort/exports': 'error',

packages/@straw-hat/eslint-config-base/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@straw-hat/eslint-config-base",
3-
"version": "3.2.0",
3+
"version": "4.0.0",
44
"description": "Straw Hat Team ESLint base configurations",
55
"author": "Straw Hat Team <opensource@straw-hat-llc.com>",
66
"repository": {
@@ -25,13 +25,13 @@
2525
"README.md"
2626
],
2727
"peerDependencies": {
28-
"@straw-hat/eslint-config-prettier": "^1.0.2",
29-
"eslint": "^8.2.0",
28+
"@straw-hat/eslint-config-prettier": "^4.0.0",
29+
"eslint": "^9.38.0",
3030
"eslint-config-airbnb-base": "^15.0.0",
31-
"eslint-config-prettier": "^8.3.0",
32-
"eslint-plugin-import": "^2.25.3",
33-
"eslint-plugin-simple-import-sort": "^7.0.0",
34-
"eslint-plugin-unicorn": "^50.0.1",
35-
"prettier": "^2.4.1"
31+
"eslint-config-prettier": "^10.1.8",
32+
"eslint-plugin-import": "^2.32.0",
33+
"eslint-plugin-simple-import-sort": "^12.1.1",
34+
"eslint-plugin-unicorn": "^61.0.2",
35+
"prettier": "^3.4.2"
3636
}
3737
}

packages/@straw-hat/eslint-config-nextjs/lib/index.mjs

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
import path from "node:path";
2-
import {fileURLToPath} from "node:url";
3-
import js from "@eslint/js";
4-
import {FlatCompat} from "@eslint/eslintrc";
5-
6-
const __filename = fileURLToPath(import.meta.url);
7-
const __dirname = path.dirname(__filename);
8-
const compat = new FlatCompat({
9-
baseDirectory: __dirname,
10-
recommendedConfig: js.configs.recommended,
11-
allConfig: js.configs.all
12-
});
1+
import nextVitals from "eslint-config-next/core-web-vitals";
2+
import nextTs from "eslint-config-next/typescript";
3+
import prettier from "eslint-config-prettier/flat";
134

145
export default [
15-
...compat.extends("next/core-web-vitals", "next/typescript", "prettier"),
6+
...nextVitals,
7+
...nextTs,
8+
prettier,
169
{
1710
rules: {
1811
"@typescript-eslint/no-unused-vars": ["error", {

packages/@straw-hat/eslint-config-nextjs/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@straw-hat/eslint-config-nextjs",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "Straw Hat Team ESLint NextJS configurations",
55
"author": "Straw Hat Team <opensource@straw-hat-llc.com>",
66
"repository": {
@@ -25,8 +25,6 @@
2525
"README.md"
2626
],
2727
"dependencies": {
28-
"@eslint/eslintrc": "^3.3.1",
29-
"@eslint/js": "^9.38.0",
3028
"eslint-config-next": "^16.0.0",
3129
"eslint-config-prettier": "^10.1.8"
3230
},

packages/@straw-hat/eslint-config-prettier/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@straw-hat/eslint-config-prettier",
3-
"version": "3.0.1",
3+
"version": "4.0.0",
44
"description": "Straw Hat Team ESLint configuration for prettier integration",
55
"author": "Straw Hat Team <opensource@straw-hat-llc.com>",
66
"repository": {
@@ -25,9 +25,9 @@
2525
"README.md"
2626
],
2727
"peerDependencies": {
28-
"eslint": "^8.2.0",
29-
"eslint-config-prettier": "^8.3.0",
30-
"eslint-plugin-prettier": "^4.0.0",
31-
"prettier": "^2.4.1"
28+
"eslint": "^9.38.0",
29+
"eslint-config-prettier": "^10.1.8",
30+
"eslint-plugin-prettier": "^5.5.4",
31+
"prettier": "^3.4.2"
3232
}
3333
}

packages/@straw-hat/eslint-config-react/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@straw-hat/eslint-config-react",
3-
"version": "3.0.2",
3+
"version": "4.0.0",
44
"description": "Straw Hat Team ESLint React configurations",
55
"author": "Straw Hat Team <opensource@straw-hat-llc.com>",
66
"repository": {
@@ -25,19 +25,19 @@
2525
"README.md"
2626
],
2727
"peerDependencies": {
28-
"@straw-hat/eslint-config-base": "^2.0.2",
29-
"@straw-hat/eslint-config-prettier": "^1.0.2",
30-
"@typescript-eslint/eslint-plugin": "^5.4.0",
31-
"@typescript-eslint/parser": "^5.4.0",
32-
"eslint": "^8.2.0",
33-
"eslint-config-airbnb": "^19.0.0",
28+
"@straw-hat/eslint-config-base": "^4.0.0",
29+
"@straw-hat/eslint-config-prettier": "^4.0.0",
30+
"@typescript-eslint/eslint-plugin": "^8.46.2",
31+
"@typescript-eslint/parser": "^8.46.2",
32+
"eslint": "^9.38.0",
33+
"eslint-config-airbnb": "^19.0.4",
3434
"eslint-config-airbnb-base": "^15.0.0",
35-
"eslint-config-prettier": "^8.3.0",
36-
"eslint-plugin-import": "^2.25.3",
37-
"eslint-plugin-jsx-a11y": "^6.5.1",
38-
"eslint-plugin-prettier": "^4.0.0",
39-
"eslint-plugin-react": "^7.27.0",
40-
"eslint-plugin-react-hooks": "^4.3.0",
41-
"prettier": "^2.4.1"
35+
"eslint-config-prettier": "^10.1.8",
36+
"eslint-plugin-import": "^2.32.0",
37+
"eslint-plugin-jsx-a11y": "^6.10.2",
38+
"eslint-plugin-prettier": "^5.5.4",
39+
"eslint-plugin-react": "^7.37.5",
40+
"eslint-plugin-react-hooks": "^7.0.0",
41+
"prettier": "^3.4.2"
4242
}
4343
}

packages/@straw-hat/eslint-config-typescript/lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
2-
extends: ['@straw-hat/eslint-config-base', 'plugin:import/typescript', 'eslint-plugin-tsdoc'],
2+
extends: ['@straw-hat/eslint-config-base', 'plugin:import/typescript'],
3+
plugins: ['eslint-plugin-tsdoc'],
34
overrides: [
45
{
56
files: ['**/*.ts?(x)'],

packages/@straw-hat/eslint-config-typescript/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@straw-hat/eslint-config-typescript",
3-
"version": "3.0.2",
3+
"version": "4.0.0",
44
"description": "Straw Hat Team ESLint TypeScript configurations",
55
"author": "Straw Hat Team <opensource@straw-hat-llc.com>",
66
"repository": {
@@ -25,17 +25,17 @@
2525
"README.md"
2626
],
2727
"peerDependencies": {
28-
"@straw-hat/eslint-config-base": "^2.0.2",
29-
"@straw-hat/eslint-config-prettier": "^1.0.2",
30-
"@typescript-eslint/eslint-plugin": "^5.4.0",
31-
"@typescript-eslint/parser": "^5.4.0",
32-
"eslint": "^8.2.0",
28+
"@straw-hat/eslint-config-base": "^4.0.0",
29+
"@straw-hat/eslint-config-prettier": "^4.0.0",
30+
"@typescript-eslint/eslint-plugin": "^8.46.2",
31+
"@typescript-eslint/parser": "^8.46.2",
32+
"eslint": "^9.38.0",
3333
"eslint-config-airbnb-base": "^15.0.0",
34-
"eslint-config-prettier": "^8.3.0",
35-
"eslint-plugin-import": "^2.25.3",
36-
"eslint-plugin-prettier": "^4.0.0",
37-
"eslint-plugin-tsdoc": "^0.2.14",
38-
"prettier": "^2.4.1",
39-
"typescript": "^4.5.2"
34+
"eslint-config-prettier": "^10.1.8",
35+
"eslint-plugin-import": "^2.32.0",
36+
"eslint-plugin-prettier": "^5.5.4",
37+
"eslint-plugin-tsdoc": "^0.4.0",
38+
"prettier": "^3.4.2",
39+
"typescript": "^5.7.3"
4040
}
4141
}

0 commit comments

Comments
 (0)