The code format of vue3 background management framework eslint+pretty, and the use of husky

eslint: Responsible for code quality verification, such as console.log cannot be written, alert cannot be written, etc. prettier: responsible for code formatting husky: Provides life cycle hooks for git. For example, we can do some verification work before submitting the code. pretties integration Install dependencies pnpm add [email protected] -D Configuration file Create new .prettierrc { […]

Front-end engineering (editorconfig+ESLint+Prettier+StyleLint+Husky, Commitlint)

Foreword Acknowledgments: Thanks to Lai Technology By studying relevant technical articles and combining your own practice, write a note to record it. Tools used: ide project style (editorconfig) Code inspection (ESLint) Code style (Prettier) StyleLint git submission specifications (Husky, Commitlint) 1. IDE project specifications VSCode searches for the EditorConfig for VS Code plug-in and installs […]

Husky blog project based on SpringBoot (3)

Parts (1) and (2) have been provided previously and can be consulted by yourself. 2. Front desk blog 2.19, AOP implementation of logging 2.19.1, Requirements Analysis Information needs to be called through the logging interface. Convenient for later debugging and troubleshooting. And there may be many interfaces that need to be logged. 2.19.2. Idea analysis […]

Front-end project configuration prettier, eslint, lint-stages, husky, commitlint, style-lint set code writing and submission specifications

prettier Chinese website: Options · Prettier Chinese website eslint Chinese website: ESLint Chinese website github husky: https://github.com/typicode/husky commitlint.js official website: commitlint – Lint commit messages, github: GitHub – conventional-changelog/commitlint: Lint commit messages style-lint:Configuring | Stylelint github lint-staged: https://github.com/okonet/lint-staged prettier: Main functions: Format code, create new configuration files for more fine-grained configuration .prettierrc (see official website, […]

Front-end engineering – use of Husky

Introduction Front-end engineering Front-end engineering is a method of systematizing, standardizing and automating the front-end development process, aiming to improve the efficiency, maintainability and scalability of front-end development. It covers many aspects, including project structure, code quality, automation tools, performance optimization, and more to ensure that front-end development teams can collaborate more efficiently and deliver […]

(2) vue3 engineering configuration styleLint + husky + +lint-staged + commitizen + commitlint

Article directory foreword StyleLint configuration Install related dependencies Create .stylelintrc.cjs create.stylelintignore Install the Stylelint plug-in! [Insert image description here](https://img-blog.csdnimg.cn/2b3fc5decb484cba886b82683d15e201.png) husky configuration and lint-staged commitizen commitlint configuration husky package.jsonadd commitizen initialization commitlint initialization Add husky hook pre-commit hook commit-msg hook Summarize Foreword vue3 + ts + eslint + prettierrc + styleLint + husky + + lint-staged […]

Add development/submission specifications for react projects (front-end engineering, eslint, prettier, husky, commitlint, stylelint)

Due to historical reasons, the project I took over has no code reminder/formatting, including eslint, pretttier, and no commit submission verification, such as husky, commitlint, stylelint. Instead of expecting the code of myself or my colleagues to be perfect, it is better to use some tools to regulate and constrain. eslint eslint is a code […]

uniapp+vue3+ts (normalized code configuration ESLint+Prettier+Husky)

Project standardized configuration Install the plugin in the editor vscode: 1. ESLint 2. Prettier ESLint Configuration Install: pnpm i eslint -D initialization: npx eslint –init Modify the .eslintrc.cjs configuration file // @see https://eslint.bootcss.com/docs/rules/ ? module.exports = { env: { browser: true, es2021: true, node: true, }, globals: {}, /* specify how to parse the grammar […]

Husky releases SSM integration [pure annotation configuration version]

The pure annotation configuration version of SSM can be successfully integrated through the following steps~ 1. Steps to integrate SSM 1.1. Create a project and configure basic dependencies <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>org.hashiqi</groupId> <artifactId>ssm</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.2.10.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>5.2.10.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> […]