Commit e62e3e7b by Jaxon

style: 简单更新

1 parent 76bc07ee
module.exports = {
root: true,
parserOptions: {
// parser: '@babel/eslint-parser'
ecmaVersion: 2020
},
env: {
browser: true
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevent
// ion consider switching to `plugin:vue/strongly-recommended` or
// `plugin:vue/recommended` for stricter rules.
"plugin:vue/essential",
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
"standard",
"plugin:vue/strongly-recommended",
"@vue/standard"
// '@vue/typescript/recommended'
],
// required to lint *.vue files
plugins: ["vue"],
globals: {
NODE_ENV: false,
_: false,
echarts: false
},
rules: {
"vue/max-attributes-per-line": [
0,
{
singleline: 10,
multiline: {
max: 2,
allowFirstLine: false
}
}
],
"vue/html-closing-bracket-newline": [
"error",
{
singleline: "never",
multiline: "never"
}
],
"vue/singleline-html-element-content-newline": "off",
"vue/multiline-html-element-content-newline": "off",
"vue/name-property-casing": ["error", "PascalCase"],
"vue/no-v-html": "off",
"arrow-spacing": [
2,
{
before: true,
after: true
}
],
"no-var": "off",
eqeqeq: "off",
// 'no-eval': ['error', { allowIndirect: false }], // default is false
"no-eval": "off", // default is false
// allow async-await
"generator-star-spacing": "off",
// 'block-spacing': [2, 'always'],
"brace-style": [
2,
"1tbs",
{
allowSingleLine: true
}
],
"comma-dangle": [2, "never"],
"comma-spacing": [
2,
{
before: false,
after: true
}
],
"comma-style": [2, "last"],
curly: [2, "multi-line"],
"dot-location": [2, "property"],
indent: [
2,
2,
{
SwitchCase: 1
}
],
"key-spacing": [
2,
{
beforeColon: false,
afterColon: true
}
],
"keyword-spacing": [
2,
{
before: true,
after: true
}
],
"new-cap": [
2,
{
newIsCap: true,
capIsNew: false
}
],
"no-extra-parens": [2, "functions"],
"no-floating-decimal": 2,
"no-multi-spaces": 2,
"no-multiple-empty-lines": [
2,
{
max: 1
}
],
"no-trailing-spaces": 2,
quotes: [
0,
"single",
{
avoidEscape: true,
allowTemplateLiterals: true
}
],
semi: [2, "never"],
"space-before-blocks": [2, "always"],
// 'space-before-function-paren': [2, 'never'],
"space-before-function-paren": 0,
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [
2,
{
words: true,
nonwords: false
}
],
"spaced-comment": [2, "always"],
"prefer-const": 2,
"node/no-callback-literal": 'off',
"no-unused-expressions": "off",
camelcase: 'off',
"no-undef": 'off',
"vue/html-self-closing": 'off',
"array-callback-return": 'off'
}
}
module.exports = {
root: true,
parserOptions: {
// parser: '@babel/eslint-parser'
ecmaVersion: 2020
},
env: {
browser: true
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevent
// ion consider switching to `plugin:vue/strongly-recommended` or
// `plugin:vue/recommended` for stricter rules.
"plugin:vue/essential",
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
"standard",
"plugin:vue/strongly-recommended",
"@vue/standard"
// '@vue/typescript/recommended'
],
// required to lint *.vue files
plugins: ["vue"],
globals: {
NODE_ENV: false,
_: false,
echarts: false
},
rules: {
"vue/max-attributes-per-line": [
2,
{
singleline: 2,
multiline: {
max: 1,
allowFirstLine: true
}
}
],
"vue/html-closing-bracket-newline": [
"error",
{
singleline: "never",
multiline: "never"
}
],
"vue/singleline-html-element-content-newline": "off",
"vue/multiline-html-element-content-newline": "off",
"vue/name-property-casing": ["error", "PascalCase"],
"vue/no-v-html": "off",
"arrow-spacing": [
2,
{
before: true,
after: true
}
],
"no-var": "off",
eqeqeq: "off",
// 'no-eval': ['error', { allowIndirect: false }], // default is false
"no-eval": "off", // default is false
// allow async-await
"generator-star-spacing": "off",
// 'block-spacing': [2, 'always'],
"brace-style": [
2,
"1tbs",
{
allowSingleLine: true
}
],
"comma-dangle": [2, "never"],
"comma-spacing": [
2,
{
before: false,
after: true
}
],
"comma-style": [2, "last"],
curly: [2, "multi-line"],
"dot-location": [2, "property"],
indent: [
2,
2,
{
SwitchCase: 1
}
],
"key-spacing": [
2,
{
beforeColon: false,
afterColon: true
}
],
"keyword-spacing": [
2,
{
before: true,
after: true
}
],
"new-cap": [
2,
{
newIsCap: true,
capIsNew: false
}
],
"no-extra-parens": [2, "functions"],
"no-floating-decimal": 2,
"no-multi-spaces": 2,
"no-multiple-empty-lines": [
2,
{
max: 1
}
],
"no-trailing-spaces": 2,
quotes: [
0,
"single",
{
avoidEscape: true,
allowTemplateLiterals: true
}
],
semi: [2, "never"],
"space-before-blocks": [2, "always"],
// 'space-before-function-paren': [2, 'never'],
"space-before-function-paren": 0,
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [
2,
{
words: true,
nonwords: false
}
],
"spaced-comment": [2, "always"],
"prefer-const": 2,
"node/no-callback-literal": 'off',
"no-unused-expressions": "off",
camelcase: 'off',
"no-undef": 'off',
"vue/html-self-closing": 'off',
"array-callback-return": 'off'
}
}
......@@ -3662,27 +3662,6 @@
"whatwg-fetch": "^3.6.2"
},
"dependencies": {
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1",
"resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-15.11.1.tgz",
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"acorn-walk": {
"version": "8.2.0",
"resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz",
......@@ -3717,12 +3696,6 @@
}
}
},
"caniuse-lite": {
"version": "1.0.30001429",
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001429.tgz",
"integrity": "sha512-511ThLu1hF+5RRRt0zYCf2U2yRr9GPF6m5y90SBCWsvSoYoW7yAGlv/elyPaNfvGCkp6kj/KFZWU0BMA69Prsg==",
"dev": true
},
"debug": {
"version": "4.3.4",
"resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz",
......@@ -4072,6 +4045,27 @@
"lodash": "^4.17.4"
}
},
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz",
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"@vue/vue2-jest": {
"version": "27.0.0",
"resolved": "https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz",
......@@ -5398,9 +5392,9 @@
}
},
"caniuse-lite": {
"version": "1.0.30001388",
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001388.tgz",
"integrity": "sha512-znVbq4OUjqgLxMxoNX2ZeeLR0d7lcDiE5uJ4eUiWdml1J1EkxbnQq6opT9jb9SMfJxB0XA16/ziHwni4u1I3GQ==",
"version": "1.0.30001763",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001763.tgz",
"integrity": "sha512-mh/dGtq56uN98LlNX9qdbKnzINhX0QzhiWBFEkFfsFO4QyCvL8YegrJAazCwXIeqkIob8BlZPGM3xdnY+sgmvQ==",
"dev": true
},
"canvg": {
......@@ -14555,12 +14549,6 @@
}
}
},
"caniuse-lite": {
"version": "1.0.30001429",
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001429.tgz",
"integrity": "sha512-511ThLu1hF+5RRRt0zYCf2U2yRr9GPF6m5y90SBCWsvSoYoW7yAGlv/elyPaNfvGCkp6kj/KFZWU0BMA69Prsg==",
"dev": true
},
"electron-to-chromium": {
"version": "1.4.284",
"resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz",
......
......@@ -23,8 +23,10 @@
"@sentry/webpack-plugin": "^1.18.9",
"ali-oss": "^6.22.0",
"axios": "^0.18.0",
"baseline-browser-mapping": "^2.9.13",
"better-scroll": "^1.15.2",
"bignumber.js": "^9.1.1",
"caniuse-lite": "^1.0.30001763",
"core-js": "^3.8.3",
"dayjs": "^1.8.12",
"default-passive-events": "^2.0.0",
......@@ -94,5 +96,8 @@
"script-loader": "^0.7.2",
"vue-template-compiler": "^2.5.21",
"webpack": "^5.74.0"
},
"volta": {
"node": "14.21.3"
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!