Skip to content

Commit

Permalink
Migrate to import-x
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltaranto committed Jan 16, 2025
1 parent 036ea0c commit d6e0412
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
8 changes: 2 additions & 6 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { includeIgnoreFile } from '@eslint/compat';
import eslintConfigSeek from 'eslint-config-seek';
import importPlugin from 'eslint-plugin-import';
import { readFileSync } from 'fs';
import { dirname, join, relative } from 'path';
import { load as loadYaml } from 'js-yaml';
Expand Down Expand Up @@ -49,12 +48,9 @@ export default [
...gitIgnoresFromWorkspaces,
...eslintConfigSeek,
{
plugins: {
import: importPlugin,
},
rules: {
'import/no-cycle': 'warn',
'import/no-relative-packages': 'error',
'import-x/no-cycle': 'warn',
'import-x/no-relative-packages': 'error',
},
},
// Prevent importing via project paths, with exception for site-related files
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"escape-string-regexp": "^4.0.0",
"eslint": "^9.18.0",
"eslint-config-seek": "^14.0.0",
"eslint-plugin-import": "^2.31.0",
"fast-glob": "^3.3.2",
"fs-extra": "^10.1.0",
"jest": "^29.7.0",
Expand Down
13 changes: 6 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/versionComponentUpdates.cts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs-extra';
import glob from 'fast-glob';

// eslint-disable-next-line import/no-relative-packages
// eslint-disable-next-line import-x/no-relative-packages
import { version } from '../packages/braid-design-system/package.json';

(async () => {
Expand Down

0 comments on commit d6e0412

Please sign in to comment.