Skip to content

Commit

Permalink
chore: re-setup prettier and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Jul 11, 2023
1 parent 664eea2 commit 80d1b1c
Show file tree
Hide file tree
Showing 8 changed files with 526 additions and 325 deletions.
20 changes: 17 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
yarn.lock
package-lock.json

# testing
/coverage

# next.js
/.next/
/out/
Expand All @@ -30,5 +34,15 @@ yarn-error.log*
# vercel
.vercel

# root
/*.js
# editor
.ztr-directory # Zettlr file
.vscode

# contentlayer
.contentlayer
content/posts

# obsidian
.obsidian

.env
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
extends: ['next', 'prettier'],
plugins: ['prettier'],
rules: {
'space-before-function-paren': 'off',
'react/prop-types': 'off',
'no-use-before-define': 'off',
'prefer-const': 'off',
'react/react-in-jsx-scope': 'off',
'react-hooks/exhaustive-deps': 'off',
'prettier/prettier': 'error'
}
}
33 changes: 0 additions & 33 deletions .eslintrc.json

This file was deleted.

48 changes: 48 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
package-lock.json

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel

# editor
.ztr-directory # Zettlr file
.vscode

# contentlayer
.contentlayer
content/posts

# obsidian
.obsidian

.env
11 changes: 11 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import("prettier").Options} */
const config = {
plugins: [require("prettier-plugin-tailwindcss")],
semi: false,
singleQuote: true,
arrowParens: "avoid",
trailingComma: "none",
endOfLine: "auto"
};

module.exports = config;
23 changes: 6 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@
"dev": "next dev",
"build": "contentlayer build && next build",
"start": "next start",
"lint": "eslint . --ext js,jsx,ts,tsx",
"lint:fix": "eslint --fix . --ext js,jsx,ts,tsx",
"style": "prettier --check **/*.{ts,tsx}",
"style:fix": "prettier --write **/*.{ts,tsx}",
"bump-tag": "tsx tools/bump-tag-version.ts",
"vercel": "vercel"
"lint": "next lint",
"bump-tag": "tsx tools/bump-tag-version.ts"
},
"dependencies": {
"@geist-ui/core": "^2.3.8",
Expand Down Expand Up @@ -65,22 +61,15 @@
"@types/react": "18.2.14",
"@types/remark-hint": "^1.0.1",
"@types/semver": "^7.5.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"autoprefixer": "^10.4.13",
"esbuild": "^0.18.0",
"eslint": "8.43.0",
"eslint-config-prettier": "8.8.0",
"eslint-config-standard": "17.1.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-n": "^16.0.0",
"eslint-plugin-node": "11.1.0",
"eslint": "8.44.0",
"eslint-config-next": "13.4.9",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-react": "7.32.2",
"husky": "^8.0.1",
"postcss": "^8.4.19",
"prettier": "2.8.8",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.3.0",
"semver": "^7.5.1",
"simple-git": "^3.18.0",
Expand Down
Loading

0 comments on commit 80d1b1c

Please sign in to comment.