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