Skip to content

Commit

Permalink
chore: override eslint dependency of @onflow/config
Browse files Browse the repository at this point in the history
  • Loading branch information
otabek-magic committed Nov 22, 2024
1 parent 7ea26b0 commit 60f0520
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 207 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
]
},
"resolutions": {
"@rollup/plugin-commonjs": "^17.0.0"
"@rollup/plugin-commonjs": "^17.0.0",
"eslint": "9.14.0"
},
"repository": "magiclabs/magic-js",
"author": "Magic Labs <[email protected]>",
Expand Down
5 changes: 0 additions & 5 deletions packages/@magic-ext/flow/.eslintignore

This file was deleted.

7 changes: 0 additions & 7 deletions packages/@magic-ext/flow/.eslintrc.js

This file was deleted.

21 changes: 21 additions & 0 deletions packages/@magic-ext/flow/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import rootEslintConfig from '../../../eslint.config.mjs';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

export default [
...rootEslintConfig,
{
ignores: ['node_modules', 'coverage', 'dist', 'eslint.config.mjs', 'jest.config.ts'],
},
{
languageOptions: {
parserOptions: {
project: ['./tsconfig.json'],
tsconfigRootDir: __dirname,
},
},
},
];
1 change: 0 additions & 1 deletion packages/@magic-ext/flow/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Extension } from '@magic-sdk/commons';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import * as fcl from '@onflow/fcl';
import { FlowConfig, FlowPayloadMethod } from './type';
Expand Down
Loading

0 comments on commit 60f0520

Please sign in to comment.