Skip to content

Commit

Permalink
🎨 install simple-import-sort
Browse files Browse the repository at this point in the history
- apply simple-import-sort
- remove react-hooks
vercel/next.js#52365
  • Loading branch information
tara-JSW committed Jul 29, 2023
1 parent 66b0e19 commit c173eeb
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 9 deletions.
17 changes: 13 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
{
"parser": "@typescript-eslint/parser",
"env": { "browser": true, "es6": true, "node": true },
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"parser": "@typescript-eslint/parser",
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"airbnb",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint"
"airbnb",
"airbnb-typescript"
],
"plugins": ["prettier", "react", "react-hooks"]
"plugins": ["prettier", "react", "import", "simple-import-sort"],
"rules": {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
"@typescript-eslint/parser": "^6.2.0",
"eslint": "8.46.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^8.9.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"prettier": "^3.0.0",
"typescript": "5.1.6"
}
Expand Down
32 changes: 29 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Metadata } from 'next';
import React from 'react';

export const metadata: Metadata = {
title: 'synuns blog',
Expand Down
4 changes: 3 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

export default function Home() {
return <div>Hello synuns!</div>;
return <div>hello synuns!</div>;
}

0 comments on commit c173eeb

Please sign in to comment.