Skip to content

Commit

Permalink
build(eslint): now use no import rules
Browse files Browse the repository at this point in the history
  • Loading branch information
AshGw committed May 19, 2024
1 parent 60a5c4d commit 7c59833
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,29 @@
"project": ["./tsconfig.json"]
},
"ignorePatterns": ["/playground/", "/next.config.js", "coverage"],
"plugins": ["@typescript-eslint"],
// "plugins": ["@typescript-eslint", "import"], # unecessary overhead, it is what it is
"rules": {
// "@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-unsafe-argument": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-unsafe-call": "error",
"@typescript-eslint/no-unsafe-member-access": "error",
"@typescript-eslint/no-unsafe-return": "error"
/*
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
["parent", "sibling", "index"]
],
"newlines-between": "always"
}
]
*/
},
"overrides": [
{
Expand Down
6 changes: 6 additions & 0 deletions src/app/components/protos/hero-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ import { Button } from '../ui/button';

/* eslint-disable */

/* eslint-disable */

/* eslint-disable */

/* eslint-disable */

function TypingAnimation() {
const el = useRef(null);

Expand Down
15 changes: 15 additions & 0 deletions src/app/components/reusables/code/code-block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ import oneDark from 'react-syntax-highlighter/dist/cjs/styles/prism/one-dark';
import { Skeleton } from '../../ui/skeleton';
import CopyButton from './copy-code';

// react-syntax-highlighter has no types

/* eslint-disable */
// @ts-nocheck

// react-syntax-highlighter has no types

/* eslint-disable */
// @ts-nocheck

// react-syntax-highlighter has no types

/* eslint-disable */
// @ts-nocheck

// react-syntax-highlighter has no types
/* eslint-disable */
// @ts-nocheck
Expand Down

0 comments on commit 7c59833

Please sign in to comment.