Skip to content

Commit ffc0e53

Browse files
committed
fix(eslint): disable busted rule
1 parent 2a105c5 commit ffc0e53

File tree

3 files changed

+27
-25
lines changed

3 files changed

+27
-25
lines changed

configs/eslint.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ export default [
3636
files: ['**/*.js', '**/*.jsx'],
3737
rules: {
3838
// most of these rules are useful for JS but not TS because TS handles these better
39-
'import/no-unresolved': 'error',
39+
// if it weren't for https://github.com/import-js/eslint-plugin-import/issues/2132
40+
// we could enable this :(
41+
// 'import/no-unresolved': 'error',
4042
},
4143
},
4244

configs/typescript.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
2-
"$schema": "https://json.schemastore.org/tsconfig",
3-
"include": ["**/*.ts", "**/*.tsx"],
4-
"compilerOptions": {
5-
"lib": ["DOM", "DOM.Iterable", "ES2022"],
6-
"isolatedModules": true,
7-
"esModuleInterop": true,
8-
"jsx": "react-jsx",
9-
"module": "ESNext",
10-
"target": "ES2022",
11-
"moduleResolution": "bundler",
12-
"resolveJsonModule": true,
13-
"strict": true,
14-
"noImplicitAny": true,
15-
"allowJs": true,
16-
"forceConsistentCasingInFileNames": true,
17-
"paths": {
18-
"#/*": ["./*"]
19-
},
20-
"skipLibCheck": true,
21-
"allowImportingTsExtensions": true,
22-
"noEmit": true
23-
}
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"include": ["**/*.ts", "**/*.tsx"],
4+
"compilerOptions": {
5+
"lib": ["DOM", "DOM.Iterable", "ES2022"],
6+
"isolatedModules": true,
7+
"esModuleInterop": true,
8+
"jsx": "react-jsx",
9+
"module": "ESNext",
10+
"target": "ES2022",
11+
"moduleResolution": "bundler",
12+
"resolveJsonModule": true,
13+
"strict": true,
14+
"noImplicitAny": true,
15+
"allowJs": true,
16+
"forceConsistentCasingInFileNames": true,
17+
"paths": {
18+
"#/*": ["./*"]
19+
},
20+
"skipLibCheck": true,
21+
"allowImportingTsExtensions": true,
22+
"noEmit": true
23+
}
2424
}

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": "./configs/typescript.json",
3-
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]
2+
"extends": "./configs/typescript.json",
3+
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]
44
}

0 commit comments

Comments
 (0)