Skip to content

Commit d44b790

Browse files
committed
fix: test
1 parent 8cbc33e commit d44b790

4 files changed

Lines changed: 9 additions & 17 deletions

File tree

eslint.config.mjs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ const __filename = fileURLToPath(import.meta.url);
66
const __dirname = dirname(__filename);
77

88
export default [
9+
{
10+
ignores: ['docusaurus.config.ts', 'eslint.config.mjs', 'jest.config.js', 'scripts/**/*.mjs'],
11+
},
912
...tidgiConfig,
1013
{
1114
languageOptions: {
@@ -21,6 +24,7 @@ export default [
2124
'./*.config.ts',
2225
'./*.config.js',
2326
'./*.config.mjs',
27+
'./docusaurus.config.ts',
2428
'./eslint.config.mjs',
2529
'./jest.config.js',
2630
'./scripts/*.mjs',
@@ -49,15 +53,4 @@ export default [
4953
'@typescript-eslint/no-explicit-any': 'warn',
5054
},
5155
},
52-
{
53-
files: ['scripts/**/*.mjs'],
54-
languageOptions: {
55-
globals: {
56-
console: 'readonly',
57-
},
58-
},
59-
rules: {
60-
'security-node/detect-crlf': 'off',
61-
},
62-
},
6356
];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "git-sync-js",
3-
"version": "2.0.5",
3+
"version": "2.1.0",
44
"description": "JS implementation for Git-Sync, a handy script that backup your notes in a git repo to the remote git services.",
55
"homepage": "https://github.com/linonetwo/git-sync-js",
66
"bugs": {

tsconfig.eslint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"noEmit": true
4+
"noEmit": true,
5+
"allowJs": true
56
},
67
"include": [
78
"src/**/*.ts",

tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"include": ["src/**/*", "test/**/*", "./*.js", "./*.ts", "./*.mjs", "scripts/**/*"],
2+
"include": ["src/**/*", "test/**/*", "./*.js"],
33
"exclude": ["node_modules", "dist"],
44
"compilerOptions": {
55
"target": "ESNext",
@@ -20,14 +20,12 @@
2020
"downlevelIteration": true,
2121
"esModuleInterop": true,
2222
"resolveJsonModule": true,
23-
"allowJs": true,
2423
"types": ["jest"], /* Type declaration files to be included in compilation. */
2524
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
2625
"baseUrl": "./",
2726
"paths": {
2827
"*": ["src/@types/*"]
29-
},
30-
"ignoreDeprecations": "6.0"
28+
}
3129
},
3230
"files": ["test/global.d.ts"]
3331
}

0 commit comments

Comments
 (0)