Skip to content

Commit 8c57aa7

Browse files
chore: eslint scripts and e2e
1 parent a085923 commit 8c57aa7

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

e2e/captcha.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {testWithII} from '../src';
22

3-
testWithII.beforeEach(async ({iiPage, browser}) => {
3+
testWithII.beforeEach(async ({iiPage}) => {
44
const DOCKER_CONTAINER_URL = 'http://127.0.0.1:5987';
55
const DOCKER_INTERNET_IDENTITY_ID = 'rdmx6-jaaaa-aaaaa-aaadq-cai';
66

e2e/login.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {testWithII} from '../src';
33
const loginSelector = '#login';
44
const logoutSelector = '#logout';
55

6-
testWithII.beforeEach(async ({iiPage, browser}) => {
6+
testWithII.beforeEach(async ({iiPage}) => {
77
const DOCKER_CONTAINER_URL = 'http://127.0.0.1:5987';
88
const DOCKER_INTERNET_IDENTITY_ID = 'rdmx6-jaaaa-aaaaa-aaadq-cai';
99

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export default [
55
...config,
66
...vitestConfig,
77
{
8-
ignores: ['**/dist']
8+
ignores: ['**/dist', 'eslint-local-rules.cjs', 'demo']
99
}
1010
];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"format:check": "prettier --check .",
4545
"ts-declaration": "tsc --emitDeclarationOnly --outDir dist/types",
4646
"build": "tsc --noEmit && node rmdir.mjs && node esbuild.mjs && npm run ts-declaration",
47-
"lint": "eslint --max-warnings 0 \"src/**/*\"",
47+
"lint": "eslint --max-warnings 0",
4848
"dev": "npm --prefix demo run dev",
4949
"e2e": "NODE_ENV=development playwright test --grep-invert 'captcha'",
5050
"e2e:ci": "playwright test --reporter=html --grep-invert 'captcha'",

scripts/update-version.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const updateVersion = async () => {
2525
const packagePath = join(process.cwd(), 'package.json');
2626

2727
if (!existsSync(packagePath)) {
28+
// eslint-disable-next-line no-console
2829
console.log(`Target ${packagePath} does not exist.`);
2930
return;
3031
}

tsconfig.eslint.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["**/*.ts", "**/*.mjs", "**/*.js"]
4+
}

0 commit comments

Comments
 (0)