refactor(config): improve project config
This commit is contained in:
parent
1e8f32ff80
commit
96c293a8ed
@ -1,3 +1,4 @@
|
|||||||
node_modules
|
node_modules
|
||||||
.next
|
.next
|
||||||
|
out
|
||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
node_modules
|
node_modules
|
||||||
.next
|
.next
|
||||||
package.json
|
out
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"comment-empty-line-before": "never",
|
"comment-empty-line-before": "never",
|
||||||
"comment-no-empty": null,
|
"comment-no-empty": null,
|
||||||
"color-no-invalid-hex": true,
|
"color-no-invalid-hex": true,
|
||||||
"font-family-name-quotes": "always-where-required",
|
"font-family-name-quotes": "always-where-recommended",
|
||||||
"max-empty-lines": 1,
|
"max-empty-lines": 1,
|
||||||
"selector-pseudo-class-no-unknown": [
|
"selector-pseudo-class-no-unknown": [
|
||||||
true,
|
true,
|
||||||
|
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
@ -3,6 +3,7 @@
|
|||||||
"EditorConfig.EditorConfig",
|
"EditorConfig.EditorConfig",
|
||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"stylelint.vscode-stylelint",
|
"stylelint.vscode-stylelint",
|
||||||
"clinyong.vscode-css-modules"
|
"clinyong.vscode-css-modules",
|
||||||
|
"dbaeumer.vscode-eslint"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -1,16 +1,19 @@
|
|||||||
{
|
{
|
||||||
"prettier.configPath": ".prettierrc",
|
"prettier.configPath": ".prettierrc",
|
||||||
|
|
||||||
|
"editor.bracketPairColorization.enabled": true,
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll": true
|
"source.fixAll": true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"typescript.enablePromptUseWorkspaceTsdk": true,
|
||||||
"typescript.tsdk": "node_modules/typescript/lib",
|
"typescript.tsdk": "node_modules/typescript/lib",
|
||||||
|
|
||||||
"stylelint.validate": ["css", "less", "postcss", "sass", "scss"],
|
"stylelint.validate": ["css", "less", "postcss", "sass", "scss"],
|
||||||
"stylelint.snippet": ["css", "less", "postcss", "sass", "scss"],
|
"stylelint.snippet": ["css", "less", "postcss", "sass", "scss"],
|
||||||
"cssModules.camelCase": false,
|
"cssModules.camelCase": false,
|
||||||
|
"scss.lint.float": "error",
|
||||||
"[scss]": {
|
"[scss]": {
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
}
|
}
|
||||||
|
1495
package-lock.json
generated
1495
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -7,10 +7,10 @@
|
|||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint:next": "next lint",
|
"lint:next": "next lint",
|
||||||
"lint:scss": "stylelint \"**/*.scss\"",
|
"lint:scss": "stylelint \"**/*.scss\"",
|
||||||
"lint:prettier": "prettier \".\" --check --ignore-path \".gitignore\"",
|
"lint:prettier": "prettier \".\" --check"
|
||||||
"lint:typescript": "eslint \"**/*.{js,jsx,ts,tsx}\" --ignore-path \".gitignore\""
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@fontsource/open-sans": "^4.5.8",
|
||||||
"next": "^12.1.0",
|
"next": "^12.1.0",
|
||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
"react-dom": "17.0.2",
|
"react-dom": "17.0.2",
|
||||||
@ -36,6 +36,7 @@
|
|||||||
"stylelint-config-standard": "^25.0.0",
|
"stylelint-config-standard": "^25.0.0",
|
||||||
"stylelint-config-standard-scss": "^3.0.0",
|
"stylelint-config-standard-scss": "^3.0.0",
|
||||||
"stylelint-scss": "^4.2.0",
|
"stylelint-scss": "^4.2.0",
|
||||||
"typescript": "4.6.2"
|
"typescript": "4.6.2",
|
||||||
|
"typescript-plugin-css-modules": "^3.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,10 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"lib": ["dom", "dom.iterable", "esnext"],
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
|
"plugins": [{ "name": "typescript-plugin-css-modules" }],
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"@/styles/": ["styles/pages/*"],
|
||||||
"@/components/*": ["components/*"],
|
"@/components/*": ["components/*"],
|
||||||
"@/utils/*": ["utils/*"]
|
"@/utils/*": ["utils/*"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user