add(dev-dependencies): add eslint and vscode env setting
All checks were successful
Deploy Fefan / deploy (push) Successful in 4m46s
All checks were successful
Deploy Fefan / deploy (push) Successful in 4m46s
This commit is contained in:
25
.vscode/settings.json
vendored
Normal file
25
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
// Formatting
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
|
"eslint.workingDirectories": [{ "mode": "auto" }],
|
||||||
|
// ESLint auto-fix on save
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll.eslint": "explicit",
|
||||||
|
"source.organizeImports": "explicit"
|
||||||
|
},
|
||||||
|
"npm.autoDetect": "on",
|
||||||
|
|
||||||
|
// Auto import behavior
|
||||||
|
"typescript.preferences.importModuleSpecifier": "non-relative",
|
||||||
|
"javascript.preferences.importModuleSpecifier": "non-relative",
|
||||||
|
|
||||||
|
// Enable ESLint for TS/JS
|
||||||
|
"eslint.validate": [
|
||||||
|
"javascript",
|
||||||
|
"javascriptreact",
|
||||||
|
],
|
||||||
|
|
||||||
|
// Prevent conflicts with Prettier + ESLint
|
||||||
|
"prettier.requireConfig": true,
|
||||||
|
}
|
||||||
5
next/.prettierrc
Normal file
5
next/.prettierrc
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"singleQuote": true,
|
||||||
|
"semi": true,
|
||||||
|
"trailingComma": "all"
|
||||||
|
}
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./*"]
|
"@/*": ["./*"]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|||||||
2634
next/yarn.lock
2634
next/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user