web: move eslint-storj to separate repo

For some reason our build process cannot handle relative path packages,
it's easier to create a new repository than to figure out,
why npm/docker etc. don't like it.

Change-Id: I94b7cb9611f453246b596f97114fe5c54d9a4008
This commit is contained in:
Egon Elbre 2021-10-05 14:49:46 +03:00
parent aa80d37053
commit bb55c30594
8 changed files with 27 additions and 70 deletions

View File

@ -1,46 +0,0 @@
// Copyright (C) 2021 Storj Labs, Inc.
// See LICENSE for copying information.
module.exports = {
rules: {
"vue/require-annotation": {
meta: {
fixable: "code",
},
create: function(context) {
return {
Decorator(node) {
let isComponent = false;
const expr = node.expression;
if(expr.name === "Component"){
isComponent = true;
} else if (expr.callee && expr.callee.name === "Component"){
isComponent = true;
}
if(!isComponent){ return; }
const commentsBefore = context.getCommentsBefore(node);
const decoratorLine = node.loc.start.line;
let annotated = false;
commentsBefore.forEach(comment => {
if(comment.loc.start.line === decoratorLine - 1){
if(comment.value.trim() === "@vue/component") {
annotated = true;
}
}
})
if(!annotated){
context.report({
node: node,
message: '@Component requires // @vue/component',
fix: function(fixer) {
return fixer.insertTextBefore(node, "// @vue/component\n");
}
});
}
}
};
}
}
}
};

View File

@ -1,5 +0,0 @@
{
"name": "eslint-plugin-storj",
"version": "1.0.0",
"main": "index.js"
}

View File

@ -5,7 +5,6 @@
"requires": true,
"packages": {
"": {
"name": "multinode",
"version": "0.0.1",
"dependencies": {
"chart.js": "2.9.4",
@ -34,7 +33,7 @@
"compression-webpack-plugin": "6.0.0",
"core-js": "3.6.5",
"eslint": "6.7.2",
"eslint-plugin-storj": "file:../eslint-storj",
"eslint-plugin-storj": "github:storj/eslint-storj",
"eslint-plugin-vue": "7.16.0",
"jest-fetch-mock": "3.0.0",
"sass": "1.37.0",
@ -54,7 +53,7 @@
"../eslint-storj": {
"name": "eslint-plugin-storj",
"version": "1.0.0",
"dev": true
"extraneous": true
},
"node_modules/@babel/code-frame": {
"version": "7.14.5",
@ -10730,8 +10729,9 @@
}
},
"node_modules/eslint-plugin-storj": {
"resolved": "../eslint-storj",
"link": true
"version": "0.0.2",
"resolved": "git+https://git@github.com/storj/eslint-storj.git#5f952ffab7141e752cc095e5f024c39bab89679f",
"dev": true
},
"node_modules/eslint-plugin-vue": {
"version": "7.16.0",
@ -36229,7 +36229,9 @@
}
},
"eslint-plugin-storj": {
"version": "file:../eslint-storj"
"version": "git+https://git@github.com/storj/eslint-storj.git#5f952ffab7141e752cc095e5f024c39bab89679f",
"dev": true,
"from": "eslint-plugin-storj@https://github.com/storj/eslint-storj"
},
"eslint-plugin-vue": {
"version": "7.16.0",

View File

@ -37,8 +37,8 @@
"compression-webpack-plugin": "6.0.0",
"core-js": "3.6.5",
"eslint": "6.7.2",
"eslint-plugin-storj": "github:storj/eslint-storj",
"eslint-plugin-vue": "7.16.0",
"eslint-plugin-storj": "file:../eslint-storj",
"jest-fetch-mock": "3.0.0",
"sass": "1.37.0",
"sass-loader": "8.0.0",

View File

@ -52,7 +52,7 @@
"babel-eslint": "10.1.0",
"compression-webpack-plugin": "6.0.0",
"eslint": "6.7.2",
"eslint-plugin-storj": "file:../eslint-storj",
"eslint-plugin-storj": "github:storj/eslint-storj",
"eslint-plugin-vue": "7.16.0",
"jest-fetch-mock": "3.0.3",
"sass": "1.37.0",
@ -72,7 +72,7 @@
"../eslint-storj": {
"name": "eslint-plugin-storj",
"version": "1.0.0",
"dev": true
"extraneous": true
},
"node_modules/@babel/code-frame": {
"version": "7.14.5",
@ -11809,8 +11809,9 @@
}
},
"node_modules/eslint-plugin-storj": {
"resolved": "../eslint-storj",
"link": true
"version": "0.0.2",
"resolved": "git+https://git@github.com/storj/eslint-storj.git#5f952ffab7141e752cc095e5f024c39bab89679f",
"dev": true
},
"node_modules/eslint-plugin-vue": {
"version": "7.16.0",
@ -39533,7 +39534,9 @@
}
},
"eslint-plugin-storj": {
"version": "file:../eslint-storj"
"version": "git+https://git@github.com/storj/eslint-storj.git#5f952ffab7141e752cc095e5f024c39bab89679f",
"dev": true,
"from": "eslint-plugin-storj@https://github.com/storj/eslint-storj"
},
"eslint-plugin-vue": {
"version": "7.16.0",

View File

@ -56,8 +56,8 @@
"babel-eslint": "10.1.0",
"compression-webpack-plugin": "6.0.0",
"eslint": "6.7.2",
"eslint-plugin-storj": "github:storj/eslint-storj",
"eslint-plugin-vue": "7.16.0",
"eslint-plugin-storj": "file:../eslint-storj",
"jest-fetch-mock": "3.0.3",
"sass": "1.37.0",
"sass-loader": "10.0.2",

View File

@ -35,7 +35,7 @@
"compression-webpack-plugin": "6.0.0",
"core-js": "3.6.5",
"eslint": "6.7.2",
"eslint-plugin-storj": "file:../eslint-storj",
"eslint-plugin-storj": "github:storj/eslint-storj",
"eslint-plugin-vue": "7.16.0",
"jest-fetch-mock": "3.0.0",
"sass": "1.37.0",
@ -55,7 +55,7 @@
"../eslint-storj": {
"name": "eslint-plugin-storj",
"version": "1.0.0",
"dev": true
"extraneous": true
},
"node_modules/@babel/code-frame": {
"version": "7.14.5",
@ -10737,8 +10737,9 @@
}
},
"node_modules/eslint-plugin-storj": {
"resolved": "../eslint-storj",
"link": true
"version": "0.0.2",
"resolved": "git+https://git@github.com/storj/eslint-storj.git#5f952ffab7141e752cc095e5f024c39bab89679f",
"dev": true
},
"node_modules/eslint-plugin-vue": {
"version": "7.16.0",
@ -36242,7 +36243,9 @@
}
},
"eslint-plugin-storj": {
"version": "file:../eslint-storj"
"version": "git+https://git@github.com/storj/eslint-storj.git#5f952ffab7141e752cc095e5f024c39bab89679f",
"dev": true,
"from": "eslint-plugin-storj@https://github.com/storj/eslint-storj"
},
"eslint-plugin-vue": {
"version": "7.16.0",

View File

@ -38,8 +38,8 @@
"compression-webpack-plugin": "6.0.0",
"core-js": "3.6.5",
"eslint": "6.7.2",
"eslint-plugin-storj": "github:storj/eslint-storj",
"eslint-plugin-vue": "7.16.0",
"eslint-plugin-storj": "file:../eslint-storj",
"jest-fetch-mock": "3.0.0",
"sass": "1.37.0",
"sass-loader": "8.0.0",