put all config in separate js files
This commit is contained in:
@@ -6,3 +6,4 @@ public
|
||||
!.lintstagedrc.js
|
||||
!.stylelintrc.js
|
||||
!.size-limit.js
|
||||
!.huskyrc.js
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
hooks: {
|
||||
'pre-commit': 'lint-staged',
|
||||
'post-commit': 'git update-index --again',
|
||||
'pre-push': 'run-s check test',
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
'./**/*.{ts,tsx,js,jsx}': ['eslint --fix --max-warnings=0', 'prettier --write', 'git add'],
|
||||
'./**/*.{scss,pcss,css}': ['prettier --write', 'stylelint', 'git add'],
|
||||
'./iframe.html': ['prettier --write', 'stylelint', 'git add'],
|
||||
};
|
||||
@@ -1,17 +0,0 @@
|
||||
{
|
||||
"printWidth": 120,
|
||||
"useTabs": false,
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "es5",
|
||||
"bracketSpacing": true,
|
||||
"arrowParens": "avoid",
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ejs", "*.html"],
|
||||
"options": {
|
||||
"trailingComma": "none"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
printWidth: 120,
|
||||
useTabs: false,
|
||||
semi: true,
|
||||
singleQuote: true,
|
||||
trailingComma: 'es5',
|
||||
bracketSpacing: true,
|
||||
arrowParens: 'avoid',
|
||||
overrides: [
|
||||
{
|
||||
files: ['*.ejs', '*.html'],
|
||||
options: {
|
||||
trailingComma: 'none',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -123,29 +123,5 @@
|
||||
"webpack-bundle-analyzer": "^3.6.1",
|
||||
"webpack-cli": "^3.3.9",
|
||||
"webpack-dev-server": "^3.9.0"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged",
|
||||
"post-commit": "git update-index --again",
|
||||
"pre-push": "run-s check test"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"./**/*.{ts,tsx,js,jsx}": [
|
||||
"eslint --fix --max-warnings=0",
|
||||
"prettier --write",
|
||||
"git add"
|
||||
],
|
||||
"./**/*.{scss,pcss,css}": [
|
||||
"prettier --write",
|
||||
"stylelint",
|
||||
"git add"
|
||||
],
|
||||
"./iframe.html": [
|
||||
"prettier --write",
|
||||
"stylelint",
|
||||
"git add"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user