This commit is contained in:
LingandRX 2024-10-30 22:28:50 +08:00
parent 47b3576640
commit 110c3c8d29
4 changed files with 1019 additions and 0 deletions

16
.eslintrc.js Normal file
View File

@ -0,0 +1,16 @@
const path = require('path');
module.exports = {
extends: '../.eslintrc.js',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'notice'],
parserOptions: {
ecmaVersion: 9,
sourceType: 'module',
project: path.join(__dirname, 'tsconfig.json'),
},
rules: {
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 2,
},
};

976
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,5 +10,9 @@
"devDependencies": {
"@playwright/test": "^1.48.1",
"@types/node": "^22.7.7"
},
"dependencies": {
"eslint": "^9.13.0",
"typescript": "^5.6.3"
}
}

23
tsconfig.json Normal file
View File

@ -0,0 +1,23 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"noEmit": true,
"moduleResolution": "node",
"target": "ESNext",
"strictNullChecks": false,
"strictBindCallApply": true,
"allowSyntheticDefaultImports": true,
"useUnknownInCatchVariables": false,
"baseUrl": "..",
"paths": {
"@isomorphic/*": ["packages/playwright-core/src/utils/isomorphic/*"],
"@protocol/*": ["packages/protocol/src/*"],
"@recorder/*": ["packages/recorder/src/*"],
"@trace/*": ["packages/trace/src/*"],
"@web/*": ["packages/web/src/*"]
}
},
"include": ["**/*.spec.js", "**/*.ts"],
"exclude": ["components/", "installation/fixture-scripts/"]
}