@jxstjh/eslint-config-standard
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -17,9 +17,5 @@ /** | ||
env: { | ||
browser: true, // 浏览器全局变量 | ||
node: true, // Node.js 全局变量和 Node.js 作用域 | ||
es6: true // 启用 ES6 语法支持 及 新的 ES6 全局变量 | ||
node: true // Node.js 全局变量和 Node.js 作用域 | ||
}, | ||
extends: [ | ||
'@vue/standard', | ||
'plugin:vue/strongly-recommended', | ||
], // 一个配置文件可以从基础配置中继承已启用的规则,每个配置继承它前面的配置 | ||
@@ -26,0 +22,0 @@ |
{ | ||
"name": "@jxstjh/eslint-config-standard", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "@jxstjh内部vue eslint规则", | ||
@@ -21,6 +21,4 @@ "main": "index.js", | ||
"devDependencies": { | ||
"chalk": "^4.1.0", | ||
"eslint": "^7.12.1", | ||
"eslint-plugin-vue": "^7.1.0" | ||
"chalk": "^4.1.0" | ||
} | ||
} |
/* eslint-disable max-len */ | ||
const emoji = require('node-emoji'); | ||
const chalk = require('chalk'); | ||
const fs = require('fs'); | ||
const { resolve } = require('path'); | ||
@@ -13,4 +14,13 @@ const log = console.log; | ||
// make vscode setting.json start | ||
console.log(__dirname) | ||
console.log(process.cwd()) | ||
console.log(resolve('./')) | ||
function hasSettingsJsonFile() { | ||
const pwd = (resolve('./.vscode/settings.json')); | ||
console.log(pwd) | ||
if (fs.existsSync(pwd)) { | ||
console.log('The path exists.'); | ||
} else { | ||
console.log('The path not exists.'); | ||
} | ||
} | ||
@@ -20,2 +30,2 @@ function getSettingsJsonFile() { | ||
} | ||
console.log('1' + resolve('./')) | ||
hasSettingsJsonFile(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4536
1
115
2