Sign In

@cbnb/front-standard

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cbnb/front-standard - npm Package Compare versions

Comparing version
1.0.2
to
1.0.3
+66
-101
eslint/eslintrc.vue2.js
module.exports = {
root: true,
env: {
browser: true,
commonjs: true,
es6: true,
jquery: true,
node: true
},
extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'],
parser: 'vue-eslint-parser',
extends: [
"standard-with-typescript",
"plugin:vue/recommended",
"plugin:@typescript-eslint/recommended"
],
parser: "vue-eslint-parser",
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true
}
createDefaultProgram: true,
ecmaVersion: "latest",
extraFileExtensions: [".vue"],
parser: "@typescript-eslint/parser",
project: "tsconfig.json",
sourceType: "module",
tsconfigRootDir: __dirname
},
plugins: [
"html",
"vue",
"@typescript-eslint"
],
root: true,
rules: {
//'no-undef': 2,
'no-console': 'off',
'no-debugger': 'off',
'comma-dangle': ['error', 'never'],
'no-unused-vars': 'off',
'vue/no-v-html': 'off',
'vue/html-self-closing': [
'error',
{
html: {
void: 'any',
normal: 'any',
component: 'always'
},
svg: 'always',
math: 'always'
}
],
// Vue.js风格指南(https://cn.vuejs.org/v2/style-guide/)
// Vue组件排序
'vue/order-in-components': [
'warn',
{
order: [
'el',
'name',
'key',
'parent',
'functional',
['delimiters', 'comments'],
['components', 'directives', 'filters'],
'extends',
'mixins',
['provide', 'inject'],
'ROUTER_GUARDS',
'layout',
'middleware',
'validate',
'scrollToTop',
'transition',
'loading',
'inheritAttrs',
'model',
['props', 'propsData'],
'emits',
'setup',
'fetch',
'asyncData',
'data',
'head',
'computed',
'watch',
'watchQuery',
'LIFECYCLE_HOOKS',
'methods',
['template', 'render'],
'renderError'
]
}
]
// Vue属性排序
// 'vue/attributes-order': [
// 'warn',
// {
// order: [
// 'DEFINITION',
// 'LIST_RENDERING',
// 'CONDITIONALS',
// 'RENDER_MODIFIERS',
// 'GLOBAL',
// 'UNIQUE',
// 'TWO_WAY_BINDING',
// 'OTHER_DIRECTIVES',
// 'OTHER_ATTR',
// 'EVENTS',
// 'CONTENT'
// ],
// alphabetical: false //字母顺序
// }
// ]
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
}
/* eslint-disable quote-props */
"@typescript-eslint/indent": ["error", "tab"], // ts
"@typescript-eslint/no-inferrable-types": ["off"], // ts
"@typescript-eslint/no-unused-vars": ["error"], // ts
"@typescript-eslint/quotes": ["error", "double"], // ts
"@typescript-eslint/semi": ["error", "always"], // ts
"@typescript-eslint/space-before-function-paren": ["error", "never"], // ts
"@typescript-eslint/strict-boolean-expressions": ["off"], // ts
"eol-last": ["error", "never"],
"handle-callback-err": ["error", "err"],
"indent": ["error", "tab"],
"lines-between-class-members": ["error", "never"],
"multiline-ternary": ["off"],
"no-async-promise-executor": ["off"],
"no-console": ["off"],
"no-extend-native": ["off"],
"no-extra-semi": ["error"],
"no-new": ["off"],
"no-proto": ["off"],
"no-return-assign": ["off"],
"no-sequences": ["off"],
"no-tabs": ["off"],
"no-unreachable": ["off"],
"no-useless-constructor": ["off"],
"no-var": ["error"],
"object-curly-spacing": ["error", "always"],
"operator-linebreak": ["error", "before"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"switch-colon-spacing": ["error"],
"vue/component-definition-name-casing": ["error", "kebab-case"], // vue
"vue/component-tags-order": ["error", { order: ["template", "style", "script"] }], // vue
"vue/html-indent": ["error", "tab"], // vue
"vue/html-self-closing": ["off"], // vue
"vue/max-attributes-per-line": ["off"], // vue
"vue/multi-word-component-names": ["off"], // vue
"vue/mustache-interpolation-spacing": ["error", "never"], // vue
"vue/name-property-casing": ["error", "kebab-case"], // vue
"vue/singleline-html-element-content-newline": ["off"] // vue
/* eslint-enable quote-props */
}
};
{
"name": "@cbnb/front-standard",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

@@ -5,0 +5,0 @@ "type": "module",