Skip to content

Commit

Permalink
Switch from eslint-plugin-import to eslint-plugin-import-x
Browse files Browse the repository at this point in the history
  • Loading branch information
psirenny authored May 22, 2024
1 parent d293c7a commit 9b30c89
Show file tree
Hide file tree
Showing 71 changed files with 1,156 additions and 835 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-laws-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spear-ai/eslint-config": major
---

Replaced `eslint-import-plugin` with `eslint-plugin-import-x`.
5 changes: 5 additions & 0 deletions .changeset/sharp-vans-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spear-ai/eslint-config": major
---

Added ESlint Stylistic formatting to ESLint config.
5 changes: 5 additions & 0 deletions .changeset/short-olives-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spear-ai/eslint-config": major
---

Removed `eslint-plugin-array-func` plugin from ESLint config because it doesn’t properly export itself as an ESM module.
5 changes: 5 additions & 0 deletions .changeset/strong-lobsters-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spear-ai/eslint-config": major
---

Updated ESLint plugins and rules.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
593 changes: 297 additions & 296 deletions .yarn/releases/yarn-4.1.1.cjs → .yarn/releases/yarn-4.2.2.cjs

Large diffs are not rendered by default.

8 changes: 1 addition & 7 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
afterInstall: yarn workspaces foreach -A run postinstall

compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

npmPublishAccess: public

plugins:
- checksum: 0a2a35fbed2f33f0df1ceb1db51bf72554201f994eaecb86cbc62a295c3d05f7cc44fa8be8e64fc5e1c0bee4f529a17a0cc429ea9e3486ad467443291d5a8e3b
path: .yarn/plugins/@yarnpkg/plugin-after-install.cjs
spec: "https://raw.githubusercontent.com/mhassan1/yarn-plugin-after-install/v0.6.0/bundles/@yarnpkg/plugin-after-install.js"

yarnPath: .yarn/releases/yarn-4.1.1.cjs
yarnPath: .yarn/releases/yarn-4.2.2.cjs
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type": "module",
"dependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.1",
"@changesets/cli": "2.27.3",
"@commitlint/cli": "19.3.0",
"@commitlint/types": "19.0.3",
"@spear-ai/eslint-config": "*",
Expand All @@ -24,7 +24,7 @@
"typescript": "5.4.5"
},
"license": "MIT",
"packageManager": "yarn@4.1.1",
"packageManager": "yarn@4.2.2",
"private": true,
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions packages/commitlint-config/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line import-x/no-extraneous-dependencies
import { baseEslintConfig, prettierConfig } from "@spear-ai/eslint-config";

/** @type {import("eslint").Linter.FlatConfig} */
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion packages/commitlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"prettier": "3.2.5",
"tsup": "8.0.2",
"typescript": "5.4.5",
"vitest": "^1.5.0"
"vitest": "^1.6.0"
},
"license": "MIT",
"main": "./dist/index.cjs",
Expand Down
1 change: 1 addition & 0 deletions packages/commitlint-config/prettier.config.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line import-x/no-extraneous-dependencies
const prettierConfig = require("@spear-ai/prettier-config");

module.exports = prettierConfig;
2 changes: 1 addition & 1 deletion packages/commitlint-config/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable import/no-default-export */
/* eslint-disable import-x/no-default-export */

import type { UserConfig } from "@commitlint/types";
import { ignoreDependabot } from "./rules/ignore-rules";
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line import-x/no-extraneous-dependencies
import { baseEslintConfig, prettierConfig } from "@spear-ai/eslint-config";

/** @type {import("eslint").Linter.FlatConfig} */
Expand Down
42 changes: 21 additions & 21 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,50 @@
"dependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
"@graphql-eslint/eslint-plugin": "^3.20.1",
"@next/eslint-plugin-next": "^14.2.1",
"@types/react": "^18.2.79",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@next/eslint-plugin-next": "^14.2.3",
"@stylistic/eslint-plugin": "^2.1.0",
"@types/react": "^18.3.2",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-next": "^14.2.1",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-next": "^14.2.3",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-array-func": "^4.0.0",
"eslint-plugin-canonical": "^4.18.0",
"eslint-plugin-formatjs": "^4.13.0",
"eslint-plugin-formatjs": "^4.13.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-json-schema-validator": "^4.9.0",
"eslint-plugin-import-x": "^0.5.0",
"eslint-plugin-json-schema-validator": "^5.1.0",
"eslint-plugin-jsonc": "^2.15.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-markdown": "^3.0.1",
"eslint-plugin-markdown": "^5.0.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-use-props": "^1.0.0",
"eslint-plugin-regexp": "^2.5.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-sonarjs": "^0.25.1",
"eslint-plugin-sort-destructure-keys": "^1.5.0",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-sonarjs": "^1.0.3",
"eslint-plugin-sort-destructure-keys": "^2.0.0",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-tailwindcss": "^3.15.1",
"eslint-plugin-tailwindcss": "^3.16.0",
"eslint-plugin-toml": "^0.11.0",
"eslint-plugin-typescript-sort-keys": "^3.2.0",
"eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-unicorn": "^53.0.0",
"eslint-plugin-yml": "^1.14.0",
"globals": "^15.0.0",
"globals": "^15.3.0",
"jsonc-eslint-parser": "^2.4.0",
"toml-eslint-parser": "^0.9.3",
"typescript-eslint": "^8.0.0-0",
"yaml-eslint-parser": "^1.2.2"
},
"devDependencies": {
"@types/eslint": "8.56.9",
"@types/eslint": "8.56.10",
"eslint": "8.57.0",
"graphql": "16.8.1",
"npm-package-json-lint": "7.1.0",
"prettier": "3.2.5",
"react": "18.2.0",
"react": "18.3.1",
"tailwindcss": "3.4.3",
"tsup": "8.0.2",
"typescript": "5.4.5"
Expand All @@ -63,7 +63,7 @@
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"peerDependencies": {
"eslint": "^8.34.0",
"eslint": "^8.57.0",
"graphql": ">=15.8.0 <17",
"react": "^18.2.0",
"tailwindcss": "^3.3.2",
Expand Down
4 changes: 4 additions & 0 deletions packages/eslint-config/prettier.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// eslint-disable-next-line import-x/no-extraneous-dependencies
const prettierConfig = require("@spear-ai/prettier-config");

module.exports = prettierConfig;
Loading

0 comments on commit 9b30c89

Please sign in to comment.