Skip to content

Commit 3c47ca0

Browse files
committed
Add skipLibCheck to ignore a type error in js-slang
1 parent fea8adb commit 3c47ca0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

eslint.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ export default tseslint.config(
7474
'@stylistic': stylePlugin,
7575
},
7676
rules: {
77+
'import/first': 'warn',
78+
'import/newline-after-import': 'warn',
79+
'import/no-cycle': 'error',
7780
'import/no-duplicates': ['warn', { 'prefer-inline': false }],
81+
'import/no-useless-path-segments': 'error',
7882
'import/order': [
7983
'warn',
8084
{
@@ -252,7 +256,7 @@ export default tseslint.config(
252256
name: 'Specifically for buildtools',
253257
files: ['lib/buildtools/**/*.ts'],
254258
rules: {
255-
'import/extensions': 'off'
259+
'import/extensions': ['error', 'ignorePackages']
256260
}
257261
},
258262
);

src/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"module": "esnext",
1717
/* Specify the module resolution strategy: 'node' (Node.js) or 'classic' (used in TypeScript before the release of 1.6). */
1818
"moduleResolution": "bundler",
19+
"skipLibCheck": true,
1920

2021
/* Allows importing modules with a ‘.json’ extension, which is a common practice in node projects. */
2122
"resolveJsonModule": true,

0 commit comments

Comments
 (0)