From 07005eb0c58e3750a327749a9edd5c1c4dbe6de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B9=A4=E4=BB=99?= Date: Mon, 5 Feb 2024 11:44:00 +0800 Subject: [PATCH] config --- packages/f2elint/.eslintrc.js | 7 ------- packages/f2elint/.gitignore | 12 ++++++----- packages/f2elint/.prettierrc.js | 8 -------- packages/f2elint/f2elint.config.js | 6 ------ packages/f2elint/jest.config.js | 7 ------- packages/f2elint/tsconfig.json | 32 ++++++++++++++++++++++-------- 6 files changed, 31 insertions(+), 41 deletions(-) delete mode 100644 packages/f2elint/.eslintrc.js delete mode 100644 packages/f2elint/.prettierrc.js delete mode 100644 packages/f2elint/f2elint.config.js delete mode 100644 packages/f2elint/jest.config.js diff --git a/packages/f2elint/.eslintrc.js b/packages/f2elint/.eslintrc.js deleted file mode 100644 index 580b9df..0000000 --- a/packages/f2elint/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - extends: ['eslint-config-ali/typescript/node', 'prettier'], - rules: { - '@typescript-eslint/no-require-imports': 0, - 'no-console': 0, - }, -}; diff --git a/packages/f2elint/.gitignore b/packages/f2elint/.gitignore index 0b1bea1..de31df3 100644 --- a/packages/f2elint/.gitignore +++ b/packages/f2elint/.gitignore @@ -1,6 +1,8 @@ -node_modules -lib -.DS_Store -.idea -.vscode +.rive +build coverage +dist +node_modules +package-lock.json +pnpm-lock.yaml +yarn.lock diff --git a/packages/f2elint/.prettierrc.js b/packages/f2elint/.prettierrc.js deleted file mode 100644 index 9353f63..0000000 --- a/packages/f2elint/.prettierrc.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = { - printWidth: 100, - tabWidth: 2, - semi: true, - singleQuote: true, - trailingComma: 'all', - arrowParens: 'always', -}; diff --git a/packages/f2elint/f2elint.config.js b/packages/f2elint/f2elint.config.js deleted file mode 100644 index 0494478..0000000 --- a/packages/f2elint/f2elint.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - enableESLint: true, - enableStylelint: true, - enableMarkdownlint: true, - enablePrettier: true, -}; diff --git a/packages/f2elint/jest.config.js b/packages/f2elint/jest.config.js deleted file mode 100644 index b402c26..0000000 --- a/packages/f2elint/jest.config.js +++ /dev/null @@ -1,7 +0,0 @@ -// jest 的覆盖率收集无法收集到 child process 的执行情况,临时用 nyc jest 解决 -// 详见 issue: https://github.com/facebook/jest/issues/3190 -module.exports = { - collectCoverage: true, - verbose: true, - coverageReporters: ['none'], -}; diff --git a/packages/f2elint/tsconfig.json b/packages/f2elint/tsconfig.json index 81bb61b..0ef8924 100644 --- a/packages/f2elint/tsconfig.json +++ b/packages/f2elint/tsconfig.json @@ -1,14 +1,30 @@ { "compilerOptions": { - "outDir": "./lib", - "target": "ES5", - "module": "commonjs", + "target": "es2015", + "module": "esnext", "esModuleInterop": true, - "removeComments": true, "resolveJsonModule": true, - "declaration": true, - "downlevelIteration": true, - "types": ["node"] + "types": [ + "node", + "rive/globals" + ], + "lib": [ + "esnext" + ], + "allowJs": true, + "checkJs": false, + "skipLibCheck": true, + "moduleResolution": "node", + "isolatedModules": true }, - "include": ["src"] + "include": [ + "src" + ], + "exclude": [ + ".rive", + "build", + "coverage", + "dist", + "node_modules" + ] }