Skip to content

Commit 70e3ae4

Browse files
authored
Chore Regular js Dependency Updates (#2107)
# Goal The goal of this PR is to update per regular the js dependencies of Api Augment and the e2e tests # Discussion - Updates to `@polkadot/api` `v12.2.3` (and related packages) - Moves to eslint 9 - Other basic package updates
1 parent 1e83130 commit 70e3ae4

File tree

7 files changed

+1133
-1151
lines changed

7 files changed

+1133
-1151
lines changed

e2e/eslint.config.mjs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,30 @@
33
import eslint from '@eslint/js';
44
import globals from 'globals';
55
import tseslint from 'typescript-eslint';
6-
import mochaPlugin from 'eslint-plugin-mocha';
6+
import mocha from 'eslint-plugin-mocha';
7+
8+
// Needed for eslint 9
9+
const mochaConfig = [
10+
{
11+
name: 'mocha/recommended',
12+
languageOptions: {
13+
globals: globals.mocha,
14+
},
15+
plugins: {
16+
mocha,
17+
},
18+
rules: mocha.configs.flat.recommended.rules,
19+
},
20+
];
721

822
export default tseslint.config(
923
eslint.configs.recommended,
1024
...tseslint.configs.strict,
1125
...tseslint.configs.stylistic,
12-
mochaPlugin.configs.flat.recommended,
26+
...mochaConfig,
27+
{
28+
ignores: ['dist/'],
29+
},
1330
{
1431
languageOptions: {
1532
globals: { ...globals.node },

0 commit comments

Comments
 (0)