Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c59833

Browse files
committed
build(eslint): now use no import rules
1 parent 60a5c4d commit 7c59833

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

.eslintrc.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,29 @@
1515
"project": ["./tsconfig.json"]
1616
},
1717
"ignorePatterns": ["/playground/", "/next.config.js", "coverage"],
18-
"plugins": ["@typescript-eslint"],
18+
// "plugins": ["@typescript-eslint", "import"], # unecessary overhead, it is what it is
1919
"rules": {
20+
// "@typescript-eslint/consistent-type-imports": "error",
2021
"@typescript-eslint/no-empty-function": "error",
2122
"@typescript-eslint/no-unsafe-argument": "error",
2223
"@typescript-eslint/no-unsafe-assignment": "error",
2324
"@typescript-eslint/no-unsafe-call": "error",
2425
"@typescript-eslint/no-unsafe-member-access": "error",
2526
"@typescript-eslint/no-unsafe-return": "error"
27+
/*
28+
"import/order": [
29+
"error",
30+
{
31+
"groups": [
32+
"builtin",
33+
"external",
34+
"internal",
35+
["parent", "sibling", "index"]
36+
],
37+
"newlines-between": "always"
38+
}
39+
]
40+
*/
2641
},
2742
"overrides": [
2843
{

src/app/components/protos/hero-section.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ import { Button } from '../ui/button';
99

1010
/* eslint-disable */
1111

12+
/* eslint-disable */
13+
14+
/* eslint-disable */
15+
16+
/* eslint-disable */
17+
1218
function TypingAnimation() {
1319
const el = useRef(null);
1420

src/app/components/reusables/code/code-block.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ import oneDark from 'react-syntax-highlighter/dist/cjs/styles/prism/one-dark';
2626
import { Skeleton } from '../../ui/skeleton';
2727
import CopyButton from './copy-code';
2828

29+
// react-syntax-highlighter has no types
30+
31+
/* eslint-disable */
32+
// @ts-nocheck
33+
34+
// react-syntax-highlighter has no types
35+
36+
/* eslint-disable */
37+
// @ts-nocheck
38+
39+
// react-syntax-highlighter has no types
40+
41+
/* eslint-disable */
42+
// @ts-nocheck
43+
2944
// react-syntax-highlighter has no types
3045
/* eslint-disable */
3146
// @ts-nocheck

0 commit comments

Comments
 (0)