Commit 321cd216 by Jaxon

fix: @dj/car-life移除已有的lint配置.以使用根项目的eslint配置

1 parent 3a58c177
# 忽略目录
build/
tests/
node_modules/
# node 覆盖率文件
coverage/
# 忽略文件
**/*-min.js
**/*.min.js
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/prettier'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
parser: 'babel-eslint'
}
}
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'
}
}
.DS_Store
node_modules
/dist
/.history
/cache
/copyDirTarget
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
\ No newline at end of file \ No newline at end of file
{
"singleQuote": false,
"semi": false,
"trailingComma": "none"
}
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
"default-passive-events": "^2.0.0", "default-passive-events": "^2.0.0",
"echarts": "^5.3.2", "echarts": "^5.3.2",
"element-ui": "2.13.2", "element-ui": "2.13.2",
"eslint-plugin-standard": "^5.0.0",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"flex.css": "^1.1.7", "flex.css": "^1.1.7",
"fuse.js": "^3.4.4", "fuse.js": "^3.4.4",
...@@ -69,22 +68,14 @@ ...@@ -69,22 +68,14 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.16", "@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@kazupon/vue-i18n-loader": "^0.4.1", "@kazupon/vue-i18n-loader": "^0.4.1",
"@vue/cli-plugin-babel": "~5.0.8", "@vue/cli-plugin-babel": "~5.0.8",
"@vue/cli-plugin-eslint": "~5.0.8",
"@vue/cli-plugin-unit-jest": "~5.0.8", "@vue/cli-plugin-unit-jest": "~5.0.8",
"@vue/cli-service": "~5.0.8", "@vue/cli-service": "~5.0.8",
"@vue/eslint-config-standard": "^6.1.0",
"@vue/test-utils": "1.0.0-beta.29", "@vue/test-utils": "1.0.0-beta.29",
"@vue/vue2-jest": "^27.0.0-alpha.3", "@vue/vue2-jest": "^27.0.0-alpha.3",
"babel-core": "7.0.0-bridge.0", "babel-core": "7.0.0-bridge.0",
"babel-jest": "^23.6.0", "babel-jest": "^23.6.0",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-vue": "^7.0.0",
"jest": "^27.1.0", "jest": "^27.1.0",
"md5": "^2.3.0", "md5": "^2.3.0",
"postcss-preset-env": "^7.7.2", "postcss-preset-env": "^7.7.2",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!