put all config in separate js files

This commit is contained in:
Pavel Mineev
2020-04-13 21:58:01 +03:00
parent 8d02ad432c
commit 51fc0f7a92
6 changed files with 30 additions and 41 deletions
+1
View File
@@ -6,3 +6,4 @@ public
!.lintstagedrc.js
!.stylelintrc.js
!.size-limit.js
!.huskyrc.js
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
hooks: {
'pre-commit': 'lint-staged',
'post-commit': 'git update-index --again',
'pre-push': 'run-s check test',
},
};
+5
View File
@@ -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'],
};
-17
View File
@@ -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"
}
}
]
}
+17
View File
@@ -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',
},
},
],
};
-24
View File
@@ -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"
]
}
}