Skip to content

Commit

Permalink
chore: update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
valpinkman committed Jan 17, 2024
1 parent 9a6ae56 commit 26d890c
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 31 deletions.
7 changes: 7 additions & 0 deletions apps/sample/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
extends: ["next/core-web-vitals", "@ledgerhq/dsdk"],
parserOptions: {
project: ["./tsconfig.json"],
tsconfigRootDir: __dirname,
},
};
3 changes: 0 additions & 3 deletions apps/sample/.eslintrc.json

This file was deleted.

18 changes: 9 additions & 9 deletions apps/sample/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import './globals.css'
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";

const inter = Inter({ subsets: ['latin'] })
const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
}
title: "Create Next App",
description: "Generated by create next app",
};

export default function RootLayout({
children,
}: {
children: React.ReactNode
children: React.ReactNode;
}) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
)
);
}
14 changes: 7 additions & 7 deletions apps/sample/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Image from 'next/image'
import Image from "next/image";

export default function Home() {
return (
Expand All @@ -15,7 +15,7 @@ export default function Home() {
target="_blank"
rel="noopener noreferrer"
>
By{' '}
By{" "}
<Image
src="/vercel.svg"
alt="Vercel Logo"
Expand Down Expand Up @@ -47,7 +47,7 @@ export default function Home() {
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Docs{' '}
Docs{" "}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
Expand All @@ -64,7 +64,7 @@ export default function Home() {
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Learn{' '}
Learn{" "}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
Expand All @@ -81,7 +81,7 @@ export default function Home() {
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Templates{' '}
Templates{" "}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
Expand All @@ -98,7 +98,7 @@ export default function Home() {
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Deploy{' '}
Deploy{" "}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
Expand All @@ -109,5 +109,5 @@ export default function Home() {
</a>
</div>
</main>
)
);
}
13 changes: 1 addition & 12 deletions packages/config/eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ module.exports = {
env: {
es6: true,
},
settings: {
"import/resolver": {
typescript: {
project,
},
},
},
ignorePatterns: [
// Ignore dotfiles
".*.js",
Expand All @@ -37,10 +30,6 @@ module.exports = {
"plugin:@typescript-eslint/stylistic-type-checked",
"prettier",
],
parserOptions: {
project: [resolve(process.cwd(), "tsconfig.json")],
// tsconfigRootDir: __dirname,
},
rules: {
"import/prefer-default-export": "off",
"no-void": "off",
Expand All @@ -62,7 +51,7 @@ module.exports = {
},
},
{
files: ["**/*.mjs"],
files: ["**/scripts/*.mjs"],
env: {
es6: true,
node: true,
Expand Down
4 changes: 4 additions & 0 deletions packages/core/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
root: true,
extends: ["@ledgerhq/dsdk"],
parserOptions: {
project: ["./tsconfig.json"],
tsconfigRootDir: __dirname,
},
};
4 changes: 4 additions & 0 deletions packages/signer/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
root: true,
extends: ["@ledgerhq/dsdk"],
parserOptions: {
project: ["./tsconfig.json"],
tsconfigRootDir: __dirname,
},
};
4 changes: 4 additions & 0 deletions packages/trusted-apps/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
root: true,
extends: ["@ledgerhq/dsdk"],
parserOptions: {
project: ["./tsconfig.json"],
tsconfigRootDir: __dirname,
},
};
4 changes: 4 additions & 0 deletions packages/ui/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
root: true,
extends: ["@ledgerhq/dsdk"],
parserOptions: {
project: ["./tsconfig.json"],
tsconfigRootDir: __dirname,
},
};

0 comments on commit 26d890c

Please sign in to comment.