Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ued2345/eslint-config

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ued2345/eslint-config - npm Package Compare versions

Comparing version 0.4.7 to 0.5.0-beta.1

16

package.json
{
"name": "@ued2345/eslint-config",
"version": "0.4.7",
"version": "0.5.0-beta.1",
"description": "ESLint config by UED2345",

@@ -21,12 +21,14 @@ "main": "index.js",

"devDependencies": {
"babel-eslint": "*",
"eslint": "^6.0.0",
"eslint-plugin-vue": ">= 6",
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"eslint-plugin-vue": "^6.2.2",
"lodash.merge": "^4.6.2"
},
"peerDependencies": {
"eslint": "^5.0.0 || ^6.0.0",
"eslint-plugin-vue": ">= 6",
"vue-eslint-parser": "^6.0.5"
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0"
},
"optionalDependencies": {
"eslint-plugin-vue": "^6.2.2"
}
}
module.exports = {
parser: 'babel-eslint',
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2020,

@@ -5,0 +5,0 @@ sourceType: 'module',

@@ -11,3 +11,3 @@ module.exports = {

'no-control-regex': [2],
'no-debugger': [2],
'no-debugger': process.env.NODE_ENV === 'production' ? [2] : [0],
'no-dupe-args': [2],

@@ -14,0 +14,0 @@ 'no-dupe-keys': [2],

@@ -24,2 +24,5 @@ // get proper parser package

parser,
parserOptions: {
parser: 'babel-eslint',
},
env: {

@@ -31,4 +34,2 @@ 'node': true, // 因为 Vue 项目的根目录会有一些配置文件(运行在 Node 下)

],
// 避免和 ESLint 的 'indent' 规则冲突
// ref: https://eslint.vuejs.org/rules/script-indent.html#options
'overrides': [

@@ -38,3 +39,11 @@ {

'rules': {
// 避免和 ESLint 的 'indent' 规则冲突
// ref: https://eslint.vuejs.org/rules/script-indent.html#options
'indent': 'off',
// max-len 规则对 Vue 文件的检查存在两个问题:
// (1) 模板代码本身很容易超长
// (2) 无法忽略 SCSS 代码中超长的 DataURI
// 我们希望这条规则只检查 <script> 中的 JS 代码,但目前似乎还无法通过配置让这条规则忽略 <template> 和 <style> 中的代码,
// 因此决定在 Vue 文件中完全关闭此规则。
'max-len': 'off',
},

@@ -41,0 +50,0 @@ },

@@ -18,6 +18,6 @@ module.exports = {

'vue/max-attributes-per-line': [2, {
singleline: 2,
singleline: 3,
multiline: {
max: 1,
allowFirstLine: false,
allowFirstLine: true,
},

@@ -24,0 +24,0 @@ }],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc