Skip to content

Commit 8f02d34

Browse files
Update configs
1 parent 50eee0c commit 8f02d34

6 files changed

+46
-52
lines changed

.eslintrc.json

+17-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"es2021": true,
5-
"node": true
6-
},
7-
"extends": [
8-
"eslint:recommended",
9-
"plugin:@typescript-eslint/recommended",
10-
"prettier"
11-
],
12-
"overrides": [
13-
],
14-
"parser": "@typescript-eslint/parser",
15-
"parserOptions": {
16-
"ecmaVersion": "latest",
17-
"sourceType": "module"
18-
},
19-
"plugins": [
20-
"@typescript-eslint",
21-
"prettier"
22-
],
23-
"rules": {
24-
"prettier/prettier": 1,
25-
"@typescript-eslint/no-explicit-any": "off"
26-
}
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
8+
"overrides": [],
9+
"parser": "@typescript-eslint/parser",
10+
"parserOptions": {
11+
"ecmaVersion": "latest",
12+
"sourceType": "module"
13+
},
14+
"plugins": ["@typescript-eslint", "prettier"],
15+
"rules": {
16+
"prettier/prettier": 1,
17+
"@typescript-eslint/no-explicit-any": "off"
18+
}
2719
}

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
README.md
2+
dist
3+
tsconfig.json

tsconfig.cjs.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"outDir": "./dist/cjs",
5-
"module": "commonjs"
6-
}
7-
}
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "./dist/cjs",
5+
"module": "commonjs"
6+
}
7+
}

tsconfig.esm.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"outDir": "./dist/esm",
5-
"module": "esnext"
6-
}
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "./dist/esm",
5+
"module": "esnext"
76
}
8-
7+
}

tsconfig.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "ES2019", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14+
"target": "ES2019" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
1515
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1616
// "jsx": "preserve", /* Specify what JSX code is generated. */
1717
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
@@ -25,9 +25,9 @@
2525
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
2626

2727
/* Modules */
28-
"module": "CommonJS", /* Specify what module code is generated. */
28+
"module": "CommonJS" /* Specify what module code is generated. */,
2929
// "rootDir": "./", /* Specify the root folder within your source files. */
30-
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
30+
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
3131
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3232
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3333
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
@@ -49,13 +49,13 @@
4949
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
5050

5151
/* Emit */
52-
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
52+
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
5353
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
5454
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
5555
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
5656
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
5757
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58-
"outDir": "./dist", /* Specify an output folder for all emitted files. */
58+
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
5959
// "removeComments": true, /* Disable emitting comments. */
6060
// "noEmit": true, /* Disable emitting files from a compilation. */
6161
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
@@ -77,12 +77,12 @@
7777
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
7878
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
7979
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
80-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
80+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
8181
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
82-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
82+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
8383

8484
/* Type Checking */
85-
"strict": true, /* Enable all strict type-checking options. */
85+
"strict": true /* Enable all strict type-checking options. */,
8686
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
8787
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
8888
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */

tsconfig.types.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"outDir": "./dist/types",
5-
"declaration": true,
6-
"emitDeclarationOnly": true
7-
}
8-
}
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "./dist/types",
5+
"declaration": true,
6+
"emitDeclarationOnly": true
7+
}
8+
}

0 commit comments

Comments
 (0)