🚨 Removed linter warnings
This commit is contained in:
parent
24aa6401fb
commit
7cc063712b
5 changed files with 3 additions and 21 deletions
|
@ -1,5 +1,4 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import PropTypes from "prop-types";
|
|
||||||
import Logo from "../Logo";
|
import Logo from "../Logo";
|
||||||
import { FormattedMessage, FormattedHTMLMessage } from "react-intl";
|
import { FormattedMessage, FormattedHTMLMessage } from "react-intl";
|
||||||
import IconButton from "@material-ui/core/IconButton";
|
import IconButton from "@material-ui/core/IconButton";
|
||||||
|
|
|
@ -482,7 +482,6 @@ Pattern.prototype.resolveDependency = function(
|
||||||
graph = this.config.dependencies,
|
graph = this.config.dependencies,
|
||||||
deps = []
|
deps = []
|
||||||
) {
|
) {
|
||||||
console.log("resolving", part, JSON.stringify(graph));
|
|
||||||
if (typeof seen[part] === "undefined") seen[part] = true;
|
if (typeof seen[part] === "undefined") seen[part] = true;
|
||||||
if (typeof graph[part] === "string") {
|
if (typeof graph[part] === "string") {
|
||||||
if (deps.indexOf(graph[part]) === -1) deps.push(graph[part]);
|
if (deps.indexOf(graph[part]) === -1) deps.push(graph[part]);
|
||||||
|
|
|
@ -4,9 +4,6 @@ import commonjs from "rollup-plugin-commonjs";
|
||||||
import json from "rollup-plugin-json";
|
import json from "rollup-plugin-json";
|
||||||
import minify from "rollup-plugin-babel-minify";
|
import minify from "rollup-plugin-babel-minify";
|
||||||
import yaml from "rollup-plugin-yaml";
|
import yaml from "rollup-plugin-yaml";
|
||||||
import url from "rollup-plugin-url";
|
|
||||||
import postcss from "rollup-plugin-postcss";
|
|
||||||
import svgr from "@svgr/rollup";
|
|
||||||
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
||||||
import {
|
import {
|
||||||
name,
|
name,
|
||||||
|
@ -14,8 +11,7 @@ import {
|
||||||
description,
|
description,
|
||||||
author,
|
author,
|
||||||
license,
|
license,
|
||||||
main,
|
main
|
||||||
module
|
|
||||||
} from "./package.json";
|
} from "./package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -30,14 +26,9 @@ export default {
|
||||||
plugins: [
|
plugins: [
|
||||||
peerDepsExternal(),
|
peerDepsExternal(),
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
url(),
|
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
yaml(),
|
yaml(),
|
||||||
svgr(),
|
|
||||||
postcss({
|
|
||||||
modules: true
|
|
||||||
}),
|
|
||||||
babel({
|
babel({
|
||||||
exclude: "node_modules/**",
|
exclude: "node_modules/**",
|
||||||
plugins: ["@babel/plugin-proposal-object-rest-spread"]
|
plugins: ["@babel/plugin-proposal-object-rest-spread"]
|
||||||
|
|
|
@ -51,7 +51,9 @@ let options = {};
|
||||||
let optionGroups = {};
|
let optionGroups = {};
|
||||||
let parts = {};
|
let parts = {};
|
||||||
let versions = {};
|
let versions = {};
|
||||||
|
console.log(Object.keys(patterns));
|
||||||
for (let pattern of Object.keys(patterns)) {
|
for (let pattern of Object.keys(patterns)) {
|
||||||
|
console.log(pattern);
|
||||||
let instance = new patterns[pattern]();
|
let instance = new patterns[pattern]();
|
||||||
let p = pattern.toLowerCase();
|
let p = pattern.toLowerCase();
|
||||||
options[p] = patternOptions(instance.config);
|
options[p] = patternOptions(instance.config);
|
||||||
|
|
|
@ -108,15 +108,6 @@ export default {
|
||||||
"wristCircumference"
|
"wristCircumference"
|
||||||
],
|
],
|
||||||
dependencies: {
|
dependencies: {
|
||||||
frontBase: "base",
|
|
||||||
backBase: "base",
|
|
||||||
back: "backBase",
|
|
||||||
front: "frontBase",
|
|
||||||
frontRight: "front",
|
|
||||||
frontLeft: "front",
|
|
||||||
buttonPlacket: "front",
|
|
||||||
buttonholePlacket: "front",
|
|
||||||
yoke: "backBase",
|
|
||||||
sleeve: ["sleeveBase", "front", "back"]
|
sleeve: ["sleeveBase", "front", "back"]
|
||||||
},
|
},
|
||||||
inject: {
|
inject: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue