mirror of
https://github.com/dream-num/univer.git
synced 2026-09-24 15:32:18 +08:00
ci: support eslint & type checking (#142)
This commit is contained in:
@@ -45,8 +45,23 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-store-
|
||||
|
||||
- name: Setup ESLint cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .eslintcache
|
||||
key: |
|
||||
${{ runner.os }}-eslint-${{ hashFiles('.eslintrc.js') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-eslint-
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Testing
|
||||
- name: 🩺 Run Test
|
||||
run: pnpm run test
|
||||
|
||||
- name: 🌡️ Run ESLint
|
||||
run: pnpm run lint
|
||||
|
||||
- name: 🧼 Type checking
|
||||
run: npx tsc --noEmit
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"downlevelIteration": true,
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"downlevelIteration": true,
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"downlevelIteration": true,
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"downlevelIteration": true,
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node",
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true,
|
||||
},
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
// "paths": {
|
||||
// "@*": ["src/*"]
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"@*": [
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"strictPropertyInitialization": false,
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"jsx": "preserve",
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"downlevelIteration": true,
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node",
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true,
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node",
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true,
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "lib",
|
||||
"moduleResolution": "Node", //This value is needed for Node.js.
|
||||
"baseUrl": "./",
|
||||
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
|
||||
"strictPropertyInitialization": false
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
"jsx": "react-jsx",
|
||||
"jsxImportSource": "react",
|
||||
"sourceMap": true,
|
||||
"moduleResolution": "Bundler",
|
||||
"resolveJsonModule": true,
|
||||
"strict": true,
|
||||
"strictPropertyInitialization": true,
|
||||
|
||||
Reference in New Issue
Block a user