Skip to content

Commit 32e447d

Browse files
committed
chore: detach lint-staged from package.json
lint-staged를 package.json으로부터 분리하여, 현재 저장소가 lint-staged를 사용한다는 것을 명확하게 하였고, 히스토리 추적 시, lint-staged 관련 내용이 package.json에 반영되는 것을 방지하였습니다.
1 parent b6145b5 commit 32e447d

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

lint-staged.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
'*': 'yarn editorconfig-checker',
3+
'*.{js,ts,jsx,tsx,css}': 'yarn prettier',
4+
'src/**/*.md': ['yarn fix-headings', 'yarn textlint-lint'],
5+
'textlint/**/*.js': 'yarn textlint-test',
6+
'textlint/data/rules/translateGlossary.js': 'yarn textlint-docs',
7+
'textlint/generators/genTranslateGlossaryDocs.js': 'yarn textlint-docs',
8+
};

package.json

-11
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,5 @@
114114
"budget": null,
115115
"budgetPercentIncreaseRed": 10,
116116
"showDetails": true
117-
},
118-
"lint-staged": {
119-
"*": "yarn editorconfig-checker",
120-
"*.{js,ts,jsx,tsx,css}": "yarn prettier",
121-
"src/**/*.md": [
122-
"yarn fix-headings",
123-
"yarn textlint-lint"
124-
],
125-
"textlint/**/*.js": "yarn textlint-test",
126-
"textlint/data/rules/translateGlossary.js": "yarn textlint-docs",
127-
"textlint/generators/genTranslateGlossaryDocs.js": "yarn textlint-docs"
128117
}
129118
}

0 commit comments

Comments
 (0)