Skip to content

Commit 60fffe0

Browse files
authored
chore(core): 🔨 add project scopes (#15)
Closes #4
1 parent 19fc890 commit 60fffe0

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.commitlintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ module.exports = {
33
rules: {
44
'header-max-length': [1, 'always', 50],
55
'body-max-line-length': [2, 'always', 72],
6+
'scope-enum': [
7+
2,
8+
'always',
9+
['editor', 'config', 'changelog', 'writeup', 'release', 'deps', 'commitlint', 'core'],
10+
],
611
},
712
};

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"build": "next build",
88
"start": "next start",
99
"debug": "cross-env NODE_OPTIONS='--inspect' next dev --hostname 127.0.0.1 --port 2662",
10-
"lint": "eslint . && prettier --check \"./**/*.{css,md,json}\" --config ./.prettierrc --loglevel warn",
11-
"format": "eslint --fix . && prettier --write \"./**/*.{css,md,json}\" --config ./.prettierrc --loglevel warn",
10+
"lint": "eslint . && prettier --check \"./**/*.{css,md,json,js}\" --config ./.prettierrc --loglevel warn",
11+
"format": "eslint --fix . && prettier --write \"./**/*.{css,md,json,js}\" --config ./.prettierrc --loglevel warn",
1212
"test": "jest",
1313
"test:watch": "jest --watch",
1414
"test:coverage": "jest --coverage",
@@ -106,11 +106,8 @@
106106
}
107107
},
108108
"lint-staged": {
109-
"./**/*.{js,jsx,ts,tsx}": [
110-
"eslint --fix"
111-
],
112-
"./**/*.{css,md,json}": [
113-
"prettier --write --config ./.prettierrc --loglevel warn"
109+
"*": [
110+
"npm run format"
114111
]
115112
}
116113
}

0 commit comments

Comments
 (0)