Skip to content

Commit

Permalink
refactor: redefine TypeScript settings
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel committed Jun 18, 2023
1 parent fefe036 commit 8f7445e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
19 changes: 10 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": ["prettier", "eslint:recommended", "plugin:markdown/recommended"],
"extends": ["prettier", "eslint:recommended", "plugin:markdown/recommended"],
"parserOptions": {
"ecmaVersion": 2022
"ecmaVersion": "latest"
},
"plugins": ["markdown", "async-await"],
"env": {
Expand Down Expand Up @@ -39,16 +39,17 @@
},
"overrides": [
{
"files": ["**/*.ts"],
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["@typescript-eslint"]
"extends": ["plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off"
}
},
{
"files": ["**/*.md/*js"],
"files": ["**/*.md/*js"],
"rules": {
"no-undef": "off",
"no-unused-vars": "off",
Expand Down
31 changes: 14 additions & 17 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
{
"compilerOptions": {
"target": "es2016",
"alwaysStrict": true,
"noUnusedLocals": true,
"module": "commonjs",
"rootDir": "src",
"declaration": true,
"strict": true,
"strictFunctionTypes": false,
"noImplicitAny": true,
"sourceMap": true,
"moduleResolution": "node",
"removeComments": false,
"listEmittedFiles": true,
"outDir": "lib"
}
}
"include": ["index.d.ts", "promise.d.ts", "typings"],
"exclude": ["node_modules", "test/tsc-build"],
"compilerOptions": {
"target": "es2016",
"alwaysStrict": true,
"noUnusedLocals": true,
"module": "commonjs",
"declaration": true,
"strict": true,
"noImplicitAny": true,
"moduleResolution": "node",
"removeComments": false
}
}

0 comments on commit 8f7445e

Please sign in to comment.