UPD: Refactor package.json

This commit is contained in:
Robert Kossessa
2024-02-05 12:50:08 +01:00
parent 58c9dae65b
commit d5d3a26cbe
3 changed files with 59 additions and 59 deletions

52
.eslintrc.js Normal file
View File

@@ -0,0 +1,52 @@
module.export = {
root: true,
env: {
node: true,
},
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 2020,
requireConfigFile: false,
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'plugin:@intlify/vue-i18n/recommended',
'prettier',
],
settings: {
'vue-i18n': {
localeDir: '@/lang/*.{json,json5,yaml,yml}',
messageSyntaxVersion: '^9.0.0',
},
},
rules: {
indent: 'off',
camelcase: 'off',
'space-before-function-paren': 'off',
'object-curly-spacing': 'off',
'comma-dangle': 'off',
'vue/html-self-closing': 'warn',
'@intlify/vue-i18n/no-v-html': 'off',
'@intlify/vue-i18n/no-dynamic-keys': 'off',
'@intlify/vue-i18n/no-raw-text': [
'warn',
{
ignorePattern: '^(([\\W\\d]+)|(http.*))|()$',
ignoreNodes: [
'code',
],
},
],
'@intlify/vue-i18n/no-unused-keys': [
'error',
{
extensions: [
'.js',
'.ts',
'.vue',
],
},
],
},
}

7
.prettierrc.js Normal file
View File

@@ -0,0 +1,7 @@
module.export = {
trailingComma: 'es5',
printWidth: 120,
tabWidth: 2,
semi: false,
singleQuote: true,
}

View File

@@ -62,64 +62,5 @@
"prettier": "3.2.4", "prettier": "3.2.4",
"tailwindcss": "^3.4.1" "tailwindcss": "^3.4.1"
}, },
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"parserOptions": {
"parser": "@babel/eslint-parser",
"emcaVersion": 2020,
"requireConfigFile": false
},
"extends": [
"eslint:recommended",
"plugin:vue/vue3-recommended",
"plugin:@intlify/vue-i18n/recommended",
"prettier"
],
"settings": {
"vue-i18n": {
"localeDir": "@/lang/*.{json,json5,yaml,yml}",
"messageSyntaxVersion": "^9.0.0"
}
},
"rules": {
"indent": "off",
"camelcase": "off",
"space-before-function-paren": "off",
"object-curly-spacing": "off",
"comma-dangle": "off",
"vue/html-self-closing": "warn",
"@intlify/vue-i18n/no-v-html": "off",
"@intlify/vue-i18n/no-dynamic-keys": "off",
"@intlify/vue-i18n/no-raw-text": [
"warn",
{
"ignorePattern": "^(([\\W\\d]+)|(http.*))|()$",
"ignoreNodes": [
"code"
]
}
],
"@intlify/vue-i18n/no-unused-keys": [
"error",
{
"extensions": [
".js",
".ts",
".vue"
]
}
]
}
},
"prettier": {
"trailingComma": "es5",
"printWidth": 120,
"tabWidth": 2,
"semi": false,
"singleQuote": true
},
"web-types": "./web-types.json" "web-types": "./web-types.json"
} }