Name: felint
Owner: ??
Description: A smart way to eslint and stylelint for front end
Created: 2016-04-18 08:52:13.0
Updated: 2018-05-20 15:10:56.0
Pushed: 2017-07-19 06:16:15.0
Homepage: http://youzan.github.io/felint/
Size: 191
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A smart way to eslint stylelint and git hooks for front end
felint ?????? eslint?stylelint?git hook ??????????
felint ????????????
install -g felint
??????????
nt init
felint
???????????????????????
elintrc // ?????? felint init ?????????????????????????
elint // felint config???
slintrc.json // eslint ?????????js???????????????
slintignore // eslint ignore????
tylelintrc.js // stylelint ?????????css???????????????
tylelintignore // stylelint ignore????
???felint
????????? git hook?????? git commit
??????????????????????????????????
??????????? git ??
??????????????????????????????
nt init
??????????????????????????????? git hook ??????
????????? felint ?????????????????????????????????? felint init
???
nt init -p planname
name:
???????
?? felint init
????felint??.felintrc??? felint config
git???? ? ??????https://github.com/youzan/felint-config????.felintrc?????????????????????? .felint
?????
???????????felint
?????????????????????? git hook???????????
???????????felint-config??
nt use [options]
ons:
value]: ??????????????
alue: ??????????????
??????????????felint-config??
?????
project
|_ B page(es5 page source fold)
|_ C page(es6 page source fold)
?????B?C?????????????? ????:
project
nt init -p es5
page fold
nt use -p es6
felint use
????c page fold
????????????????C page fold
???????????????????
?????????????????felint init
????????????
?????? felint use / felint hooks
?????????????????????? felint init
(????????????????)?????? ??????
? ???
?????????????? felint hooks
?????
.felintrc????felint-config
?git????????????????????????????????????????
e.g.
configReg // ???????felint-config????
plan // ???????????????????es5/es6/vue/react?
ruleExtends // ??????????????????
????????????felint-config??????fork????????felint-config??????? felint-config ? readme ?????.felintrc???configRep??????????? felint-config ?????
???????? felint init
???
?????????felint init -p value
?????????????????default??
??????????stylelint????eslint???????????????????????.eslintrc.json
?.stylelintrc.js
???????????felint init
???????????????????????????????
????????felint-config
?rules
??????????????merge???????????
e.g.
"plan": "es6",
".eslintrc_es6.json": {
"rules": {
"no-console": 0
}
}
felint???init
?use
????????.eslintrc.json
????????felint-config???rules/.eslintrc_es6.json????.felintrc??.eslintrc_es6.json???
felint?????felint init
???????????????????felint?????????????????
????? MIT???????????????