feat: introduce Gatekeeper application, Directus utilities, and monorepo configuration for linting, testing, and husky hooks.
This commit is contained in:
8
packages/husky-config/commitlint.js
Normal file
8
packages/husky-config/commitlint.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export default {
|
||||
extends: ["@commitlint/config-conventional"],
|
||||
rules: {
|
||||
"header-max-length": [2, "always", 150],
|
||||
"subject-case": [0],
|
||||
"subject-full-stop": [0],
|
||||
},
|
||||
};
|
||||
2
packages/husky-config/index.js
Normal file
2
packages/husky-config/index.js
Normal file
@@ -0,0 +1,2 @@
|
||||
export { default as commitlint } from "./commitlint.js";
|
||||
export { default as lintStaged } from "./lint-staged.js";
|
||||
4
packages/husky-config/lint-staged.js
Normal file
4
packages/husky-config/lint-staged.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export default {
|
||||
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
|
||||
"*.{json,md,css,scss}": ["prettier --write"],
|
||||
};
|
||||
18
packages/husky-config/package.json
Normal file
18
packages/husky-config/package.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "@mintel/husky-config",
|
||||
"version": "1.0.0",
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"registry": "https://npm.infra.mintel.me"
|
||||
},
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"exports": {
|
||||
".": "./index.js",
|
||||
"./commitlint": "./commitlint.js",
|
||||
"./lint-staged": "./lint-staged.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@commitlint/config-conventional": "^20.4.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user