mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Updated hooks v2
This commit is contained in:
@@ -11,15 +11,15 @@ repos:
|
||||
args: ["-rn", "-sn", "--fail-under=5"]
|
||||
- id: prettier
|
||||
name: prettier
|
||||
entry: prettier frontend/ --config frontend/.prettierrc.json --write --ignore-unknown
|
||||
entry: prettier --config frontend/.prettierrc.json --write --ignore-unknown
|
||||
language: node
|
||||
types: [javascript, jsx, ts, tsx]
|
||||
types_or: [javascript, jsx, ts, tsx, vue]
|
||||
additional_dependencies: ["prettier"]
|
||||
- id: eslint
|
||||
name: eslint
|
||||
language: node
|
||||
types: [javascript, jsx, ts, tsx]
|
||||
entry: eslint -c frontend/.eslintrc.js --ignore-pattern frontend/ --fix
|
||||
types_or: [javascript, jsx, ts, tsx, vue]
|
||||
entry: eslint -c frontend/.eslint.conf.js --fix
|
||||
additional_dependencies: ["eslint-plugin-vue"]
|
||||
- repo: https://github.com/psf/black
|
||||
rev: "24.2.0"
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
import pluginVue from 'eslint-plugin-vue'
|
||||
|
||||
export default [
|
||||
...pluginVue.configs['flat/recommended'],
|
||||
{
|
||||
rules: {
|
||||
'vue/component-name-in-template-casing': [
|
||||
'error',
|
||||
'PascalCase',
|
||||
{
|
||||
registeredComponentsOnly: true,
|
||||
ignores: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
ignores: [
|
||||
'.DS_Store',
|
||||
'node_modules',
|
||||
'/dist',
|
||||
'.env.local',
|
||||
'.env.*.local',
|
||||
'npm-debug.log*',
|
||||
'yarn-debug.log*',
|
||||
'yarn-error.log*',
|
||||
'pnpm-debug.log*',
|
||||
'.idea',
|
||||
'.vscode',
|
||||
'*.suo',
|
||||
'*.ntvs*',
|
||||
'*.njsproj',
|
||||
'.sln',
|
||||
'*.sw?',
|
||||
],
|
||||
},
|
||||
]
|
||||
@@ -1,22 +0,0 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/dist
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# Log files
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
@@ -1,17 +0,0 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true,
|
||||
},
|
||||
extends: ['plugin:vue/vue3-recommended', 'eslint:recommended'],
|
||||
rules: {
|
||||
'vue/component-name-in-template-casing': [
|
||||
'error',
|
||||
'PascalCase',
|
||||
{
|
||||
registeredComponentsOnly: true,
|
||||
ignores: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
module.exports = {
|
||||
output: {
|
||||
path: './src/locale',
|
||||
locales: [
|
||||
'en',
|
||||
'br',
|
||||
'cs',
|
||||
'de',
|
||||
'el',
|
||||
'es',
|
||||
'fi',
|
||||
'fr',
|
||||
'it',
|
||||
'ja',
|
||||
'nl',
|
||||
'pl',
|
||||
'pt',
|
||||
'ru',
|
||||
'sv',
|
||||
'tr',
|
||||
'zh',
|
||||
],
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"output": {
|
||||
"path": "./src/locale",
|
||||
"locales": [
|
||||
"en",
|
||||
"br",
|
||||
"cs",
|
||||
"de",
|
||||
"el",
|
||||
"es",
|
||||
"fi",
|
||||
"fr",
|
||||
"it",
|
||||
"ja",
|
||||
"nl",
|
||||
"pl",
|
||||
"pt",
|
||||
"ru",
|
||||
"sv",
|
||||
"tr",
|
||||
"zh"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user