Skip to content

Commit

Permalink
set some reasonable defaults for prettier and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewheeler committed Oct 24, 2024
1 parent 3d33244 commit 4f3a2b5
Show file tree
Hide file tree
Showing 4 changed files with 225 additions and 12 deletions.
18 changes: 16 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
{
"extends": ["next/core-web-vitals", "next/typescript"]
}
"extends": [
"next/core-web-vitals",
"next/typescript",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
"react/react-in-jsx-scope": "off"
}
}
9 changes: 8 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
{}
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"plugins": ["prettier-plugin-tailwindcss"]
}
199 changes: 193 additions & 6 deletions package-lock.json

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

11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
"start": "next start",
"lint": "next lint",
"prepare": "husky",
"prettier": "prettier --write ."
"fmt": "prettier --write ."
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
},
"dependencies": {
"@trussworks/react-uswds": "^9.1.0",
"@uswds/uswds": "^3.9.0",
"classnames": "^2.5.1",
"fs": "^0.0.1-security",
"gray-matter": "^4.0.3",
"next": "14.2.15",
Expand All @@ -29,13 +30,17 @@
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.4.20",
"eslint": "^8",
"eslint": "^8.57.1",
"eslint-config-next": "14.2.15",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.2",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"postcss": "^8",
"postcss-import": "^16.1.0",
"prettier": "3.3.3",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"sass": "^1.79.5",
"tailwindcss": "^3.4.1",
"typescript": "^5"
Expand Down

0 comments on commit 4f3a2b5

Please sign in to comment.