Remove typescript and eslint changes

This commit is contained in:
Jackson Harper 2024-03-12 11:01:44 +08:00
parent d2c22eaea2
commit c356183acd
29 changed files with 255 additions and 1502 deletions

View file

@ -11,29 +11,6 @@
},
"plugins": ["@typescript-eslint"],
"rules": {
"semi": [2, "never"],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true,
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-misused-promises": ["error", {
"checksVoidReturn": false
}],
"@typescript-eslint/no-unsafe-assignment": "warn",
"prettier/prettier": [
"warn",
{
"trailingComma": "es5"
}
],
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-unsafe-argument": "warn"
"semi": [2, "never"]
}
}

View file

@ -1,5 +1,4 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
"singleQuote": true
}

View file

@ -18,22 +18,22 @@
"dependencies": {},
"devDependencies": {
"@ardatan/aggregate-error": "^0.0.6",
"@tsconfig/node14": "^1.0.1",
"@graphql-codegen/cli": "^2.6.2",
"@graphql-codegen/introspection": "^2.1.1",
"@graphql-codegen/schema-ast": "^2.1.1",
"@graphql-codegen/typescript": "^2.1.1",
"@graphql-codegen/typescript-resolvers": "^2.1.1",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"@tsconfig/node14": "^1.0.1",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"graphql": "^15.3.0",
"graphql-tag": "^2.11.0",
"lerna": "^7.4.1",
"prettier": "^3.1.0",
"typescript": "^5.3.2"
"prettier": "^2.5.1",
"typescript": "4.5.2"
},
"volta": {
"node": "18.16.1",

View file

@ -4,12 +4,6 @@
"project": "tsconfig.json"
},
"rules": {
"@typescript-eslint/no-unsafe-argument": 0,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off"
"@typescript-eslint/no-unsafe-argument": 0
}
}

View file

@ -9,7 +9,6 @@
{
"ignoreIIFE": true
}
],
"@typescript-eslint/no-unsafe-call": "warn"
]
}
}

View file

@ -25,6 +25,7 @@
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"chai-string": "^1.5.0",
"eslint-plugin-prettier": "^4.0.0",
"mocha": "^10.0.0",
"nock": "^13.2.9"
},

View file

@ -2,9 +2,5 @@
"extends": "../../.eslintrc",
"parserOptions": {
"project": "tsconfig.json"
},
"rules": {
"@typescript-eslint/no-explicit-any": "warn",
" @typescript-eslint/no-unnecessary-type-assertion": "off"
}
}
}

View file

@ -30,7 +30,7 @@
"@types/unzip-stream": "^0.3.1",
"@types/urlsafe-base64": "^1.0.28",
"@types/uuid": "^9.0.0",
"copyfiles": "^2.4.1"
"eslint-plugin-prettier": "^4.0.0"
},
"dependencies": {
"@fast-csv/parse": "^4.3.6",

View file

@ -27,13 +27,12 @@
"@types/rfc2047": "^2.0.1",
"@types/showdown": "^2.0.1",
"chai": "^4.3.6",
"@tsconfig/node14": "^1.0.1",
"eslint-plugin-prettier": "^4.0.0",
"mocha": "^10.0.0"
},
"dependencies": {
"@google-cloud/functions-framework": "3.1.2",
"@google-cloud/pubsub": "^4.0.0",
"@omnivore/content-handler": "1.0.0",
"@sendgrid/client": "^7.6.0",
"@sentry/serverless": "^7.77.0",

View file

@ -1,18 +1,9 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 14",
"extends": "@tsconfig/node14/tsconfig.json",
"compilerOptions": {
"outDir": "build",
"rootDir": ".",
"lib": ["dom", "es2020"],
"module": "commonjs",
"target": "es2020",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
"lib": ["dom"]
},
"include": ["src"]
}

View file

@ -2,16 +2,5 @@
"extends": "../../.eslintrc",
"parserOptions": {
"project": "tsconfig.json"
},
"rules": {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
}
}
}

View file

@ -22,7 +22,8 @@
"@types/luxon": "^1.25.0",
"@types/mocha": "^10.0.1",
"@types/node": "^14.11.2",
"@types/uuid": "^9.0.0"
"@types/uuid": "^9.0.0",
"eslint-plugin-prettier": "^4.0.0"
},
"dependencies": {
"@google-cloud/functions-framework": "3.1.2",

View file

@ -2,8 +2,5 @@
"extends": "../../.eslintrc",
"parserOptions": {
"project": "tsconfig.json"
},
"rules": {
"@typescript-eslint/no-explicit-any": "warn"
}
}
}

View file

@ -15,7 +15,6 @@
"lint": "eslint src --ext ts,js,tsx,jsx",
"compile": "tsc",
"build": "tsc",
"@types/pdfjs-dist": "^2.10.378",
"start": "functions-framework --source=build/src/ --target=pdfHandler",
"dev": "concurrently \"tsc -w\" \"nodemon --watch ./build/ --exec npm run start\"",
"gcloud-deploy": "gcloud functions deploy pdfHandler --region=$npm_config_region --runtime nodejs14 --trigger-bucket=$npm_config_bucket --env-vars-file=../gcf-shared/env-$npm_config_env.yaml",

View file

@ -1,18 +1,9 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 14",
"extends": "@tsconfig/node14/tsconfig.json",
"compilerOptions": {
"outDir": "build",
"rootDir": ".",
"lib": ["dom", "es2020"],
"module": "commonjs",
"target": "es2020",
"noImplicitAny": false,
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
"lib": ["dom"]
},
"include": ["src"]
}

View file

@ -9,7 +9,6 @@
{
"ignoreIIFE": true
}
],
"@typescript-eslint/no-explicit-any": "warn"
]
}
}

View file

@ -18,6 +18,7 @@
"devDependencies": {
"@types/node-fetch": "^2.6.6",
"chai": "^4.3.6",
"eslint-plugin-prettier": "^4.0.0",
"mocha": "^10.0.0"
},
"dependencies": {

View file

@ -2,8 +2,5 @@
"extends": "../../.eslintrc",
"parserOptions": {
"project": "tsconfig.json"
},
"rules": {
"@typescript-eslint/no-explicit-any": "warn"
}
}
}

View file

@ -17,6 +17,7 @@
},
"devDependencies": {
"chai": "^4.3.6",
"eslint-plugin-prettier": "^4.0.0",
"mocha": "^10.0.0",
"nock": "^13.3.4"
},

View file

@ -2,8 +2,5 @@
"extends": "../../.eslintrc",
"parserOptions": {
"project": "tsconfig.json"
},
"rules": {
"@typescript-eslint/no-explicit-any": "warn"
}
}
}

View file

@ -17,6 +17,7 @@
},
"devDependencies": {
"chai": "^4.3.6",
"eslint-plugin-prettier": "^4.0.0",
"mocha": "^10.0.0"
},
"dependencies": {

View file

@ -2,8 +2,5 @@
"extends": "../../.eslintrc",
"parserOptions": {
"project": "tsconfig.json"
},
"rules": {
"@typescript-eslint/no-explicit-any": "warn"
}
}
}

View file

@ -28,6 +28,7 @@
"@types/node": "^14.11.2",
"@types/underscore": "^1.11.4",
"chai": "^4.3.6",
"eslint-plugin-prettier": "^4.0.0",
"mocha": "^10.0.0"
},
"dependencies": {

View file

@ -2,8 +2,5 @@
"extends": "../../.eslintrc",
"parserOptions": {
"project": "tsconfig.json"
},
"rules": {
"@typescript-eslint/no-explicit-any": "warn"
}
}
}

View file

@ -18,6 +18,7 @@
"devDependencies": {
"@types/urlsafe-base64": "^1.0.28",
"chai": "^4.3.6",
"eslint-plugin-prettier": "^4.0.0",
"mocha": "^10.0.0",
"nock": "^13.3.1"
},

View file

@ -21,8 +21,6 @@
"ignorePatterns": ["next.config.js", "jest.config.js"],
"rules": {
"functional/no-mixed-type": 0,
"react/react-in-jsx-scope": 0,
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "warn"
"react/react-in-jsx-scope": 0
}
}

View file

@ -25,6 +25,7 @@
"nodemon": "^2.0.15",
"ts-node": "^10.0.0",
"ts-node-dev": "^1.1.8",
"typescript": "^4.4.3"
},
"dependencies": {
"@adminjs/express": "^4.0.0",

View file

@ -1,19 +1,12 @@
{
"extends": "@tsconfig/node14/tsconfig.json",
"ts-node": {
"files": true
},
"compilerOptions": {
"outDir": "dist",
"experimentalDecorators": true,
"lib": ["dom", "es2020"],
"module": "commonjs",
"target": "es2020",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
"lib": ["dom"]
},
"include": ["src", "test"],
"exclude": ["./src/generated"]

1598
yarn.lock

File diff suppressed because it is too large Load diff