Skip to content

Commit

Permalink
feat: move order of doctoc and other things
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Nov 22, 2017
1 parent ae9ad82 commit bf4d73f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
1 change: 0 additions & 1 deletion install.js

This file was deleted.

1 change: 1 addition & 0 deletions jest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./dist/config/jest.config')
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@
"validate": "node src validate",
"precommit": "node src precommit"
},
"files": ["dist", "babel.js", "eslint.js", "config.js"],
"files": [
"dist",
"babel.js",
"eslint.js",
"config.js",
"prettier.js",
"jest.js"
],
"keywords": [],
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions prettier.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./dist/config/prettierrc')
10 changes: 5 additions & 5 deletions src/config/lintstagedrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ const doctoc = resolveBin('doctoc')
module.exports = {
concurrent: false,
linters: {
'README.md': [`${doctoc} --maxlevel 3 --notitle`, 'git add'],
'.all-contributorsrc': [
`${kcdScripts} contributors generate`,
'git add README.md',
],
'**/*.+(js|json|less|css|ts)': [
isOptedOut('autoformat', null, `${kcdScripts} format`),
`${kcdScripts} lint`,
`${kcdScripts} test --findRelatedTests`,
isOptedOut('autoformat', null, 'git add'),
].filter(Boolean),
'.all-contributorsrc': [
`${kcdScripts} contributors generate`,
'git add README.md',
],
'README.md': [`${doctoc} --maxlevel 2 --notitle`, 'git add'],
},
}
1 change: 0 additions & 1 deletion uninstall.js

This file was deleted.

0 comments on commit bf4d73f

Please sign in to comment.