Skip to content

Commit

Permalink
vn(lint) add lint conf
Browse files Browse the repository at this point in the history
  • Loading branch information
varsnothing committed Jan 17, 2024
1 parent e5ce47e commit bc8b804
Show file tree
Hide file tree
Showing 4 changed files with 547 additions and 45 deletions.
24 changes: 24 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// .prettierrc.js
module.exports = {
printWidth: 120,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: true,
quoteProps: 'as-needed',
jsxSingleQuote: false,
trailingComma: 'all',
bracketSpacing: true,
bracketSameLine: false,
arrowParens: 'always',
rangeStart: 0,
rangeEnd: Infinity,
requirePragma: false,
insertPragma: false,
proseWrap: 'preserve',
htmlWhitespaceSensitivity: 'css',
vueIndentScriptAndStyle: false,
endOfLine: 'lf',
embeddedLanguageFormatting: 'auto',
singleAttributePerLine: false,
};
7 changes: 6 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"extends": "next/core-web-vitals"
"extends": [
"next/core-web-vitals",
"alloy",
"alloy/react",
"alloy/typescript"
]
}
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@
},
"devDependencies": {
"@auth/mongodb-adapter": "^2.0.13",
"@babel/core": "^7.23.7",
"@babel/eslint-parser": "^7.23.3",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"eslint": "^8",
"eslint-config-alloy": "^5.1.2",
"eslint-config-next": "14.0.4",
"mongodb": "^6.3.0",
"next-auth": "^4.24.5",
"nodemailer": "^6.9.8",
"eslint": "^8",
"eslint-config-next": "14.0.4",
"prettier": "^3.2.4",
"typescript": "^5"
}
}
Loading

0 comments on commit bc8b804

Please sign in to comment.