add node and sort-requires plugin
This commit is contained in:
parent
e778efbd21
commit
60892bb086
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -5,7 +5,7 @@ pipeline {
|
||||
VERSION = VersionNumber([
|
||||
versionNumberString:
|
||||
'${BUILDS_ALL_TIME}',
|
||||
versionPrefix: '1.1.',
|
||||
versionPrefix: '1.2.',
|
||||
worstResultForIncrement: 'SUCCESS'
|
||||
])
|
||||
publish = 0
|
||||
|
27
index.js
27
index.js
@ -14,13 +14,16 @@ module.exports = {
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:jsdoc/recommended',
|
||||
'plugin:vue/recommended'
|
||||
'plugin:vue/recommended',
|
||||
'plugin:node/recommended'
|
||||
],
|
||||
|
||||
plugins: [
|
||||
'eslint-plugin-jsdoc',
|
||||
'eslint-plugin-vue',
|
||||
'eslint-plugin-import'
|
||||
'eslint-plugin-import',
|
||||
'eslint-plugin-node',
|
||||
'eslint-plugin-sort-requires-by-path'
|
||||
],
|
||||
|
||||
rules: {
|
||||
@ -303,7 +306,25 @@ module.exports = {
|
||||
'error',
|
||||
{ contexts: ['Properties'] }
|
||||
],
|
||||
'jsdoc/require-description': 'error'/*,
|
||||
'jsdoc/require-description': 'error',
|
||||
|
||||
// node
|
||||
'node/exports-style': 'error',
|
||||
'node/file-extension-in-import': 'error',
|
||||
'node/prefer-global/buffer': 'error',
|
||||
'node/prefer-global/console': 'error',
|
||||
'node/prefer-global/process': 'error',
|
||||
'node/prefer-global/text-decoder': 'error',
|
||||
'node/prefer-global/text-encodeURI': 'error',
|
||||
'node/prefer-global/url-search-params': 'error',
|
||||
'node/prefer-global/url': 'error',
|
||||
'node/prefer-promises/dns': 'error',
|
||||
'node/prefer-promises/fs': 'error',
|
||||
|
||||
// sort-requires-by-path
|
||||
'eslint-plugin-sort-requires-by-path/sort-requires-by-path': 'error'
|
||||
|
||||
/*,
|
||||
|
||||
// import (deactivated until wide adoption of es6 import/export)
|
||||
'import/no-unresolved': 'error',
|
||||
|
15
package-lock.json
generated
15
package-lock.json
generated
@ -389,7 +389,6 @@
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-3.0.0.tgz",
|
||||
"integrity": "sha512-6/Jb/J/ZvSebydwbBJO1R9E5ky7YeElfK56Veh7e4QGFHCXoIXGH9HhVz+ibJLM3XJ1XjP+T7rKBLUa/Y7eIng==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"eslint-utils": "^2.0.0",
|
||||
"regexpp": "^3.0.0"
|
||||
@ -399,7 +398,6 @@
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.0.0.tgz",
|
||||
"integrity": "sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"eslint-visitor-keys": "^1.1.0"
|
||||
}
|
||||
@ -407,8 +405,7 @@
|
||||
"regexpp": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.0.0.tgz",
|
||||
"integrity": "sha512-Z+hNr7RAVWxznLPuA7DIh8UNX1j9CDrUQxskw9IrBE1Dxue2lyXT+shqEIeLUjrokxIP8CMy1WkjgG3rTsd5/g==",
|
||||
"dev": true
|
||||
"integrity": "sha512-Z+hNr7RAVWxznLPuA7DIh8UNX1j9CDrUQxskw9IrBE1Dxue2lyXT+shqEIeLUjrokxIP8CMy1WkjgG3rTsd5/g=="
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -474,7 +471,6 @@
|
||||
"version": "11.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.0.0.tgz",
|
||||
"integrity": "sha512-chUs/NVID+sknFiJzxoN9lM7uKSOEta8GC8365hw1nDfwIPIjjpRSwwPvQanWv8dt/pDe9EV4anmVSwdiSndNg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"eslint-plugin-es": "^3.0.0",
|
||||
"eslint-utils": "^2.0.0",
|
||||
@ -488,7 +484,6 @@
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.0.0.tgz",
|
||||
"integrity": "sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"eslint-visitor-keys": "^1.1.0"
|
||||
}
|
||||
@ -496,8 +491,7 @@
|
||||
"ignore": {
|
||||
"version": "5.1.4",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.4.tgz",
|
||||
"integrity": "sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A==",
|
||||
"dev": true
|
||||
"integrity": "sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A=="
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -507,6 +501,11 @@
|
||||
"integrity": "sha512-VoM09vT7bfA7D+upt+FjeBO5eHIJQBUWki1aPvB+vbNiHS3+oGIJGIeyBtKQTME6UPXXy3vV07OL1tHd3ANuDw==",
|
||||
"dev": true
|
||||
},
|
||||
"eslint-plugin-sort-requires-by-path": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-sort-requires-by-path/-/eslint-plugin-sort-requires-by-path-1.0.2.tgz",
|
||||
"integrity": "sha512-xTjiwPeanMwgGtkfGfBlO9MDvog7u+oxrR0NPnBydfjUKHSVkRTLPz0QA2boKCuYiIRBr9OERQLvInaeJYCngg=="
|
||||
},
|
||||
"eslint-plugin-standard": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.0.1.tgz",
|
||||
|
@ -22,13 +22,14 @@
|
||||
"devDependencies": {
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-config-standard": "^14.1.0",
|
||||
"eslint-plugin-node": "^11.0.0",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-standard": "^4.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"eslint-plugin-import": "^2.20.0",
|
||||
"eslint-plugin-jsdoc": "^20.3.1",
|
||||
"eslint-plugin-node": "^11.0.0",
|
||||
"eslint-plugin-sort-requires-by-path": "^1.0.2",
|
||||
"eslint-plugin-vue": "^6.1.2"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user