stylelint.config.js - place the file in the root folder

npm install --save-dev stylelint stylelint-config-standard-less stylelint-prettier
// In the package.json file, place this at the bottom of it

"lint-staged": {
    "**/*.{js,jsx,ts,tsx}": [
      "prettier --write",
      "eslint --max-warnings=0"
    ],
    "**/*.{css,less,html,json,md}": [
      "prettier --write"
    ]
  }
// Place this file in a stylelint.config.js file in the root folder

export default {
  extends: ['stylelint-config-standard-less', 'stylelint-prettier/recommended'],
  ignoreFiles: ['node_modules', 'frontend/dist/**'],
  rules: {
    'block-no-empty': true,
    'selector-class-pattern': [
      '^[a-zA-Z]*[-_a-zA-Z0-9]*$',
      {
        message: (selector) =>
          `Expected class selector "${selector}" to be camelCase, PascalCase or following BEM naming convention`,
      },
    ],
    'keyframes-name-pattern': [
      '^[a-z][a-zA-Z0-9]*$',
      {
        message: (name) => `Expected keyframe name "${name}" to be camelCase`,
      },
    ],
    'color-function-notation': 'legacy',
  },
};

commitlint.config.cjs - place the file in the root folder

npm install --save-dev @commitlint/config-conventional
npm install --save-dev @commitlint/cli@19.8.1
// Place this file in a commitlint.config.cjs file in the root folder

module.exports = {
  extends: ['@commitlint/config-conventional'],
  'scope-enum': [2, 'always'],
};