Skip to content

Commit

Permalink
Merge pull request #87 from justin-hackin/svg-widget-studio
Browse files Browse the repository at this point in the history
refactoring of widget-agnostic code into separate library svg-widget-studio
  • Loading branch information
justin-hackin committed Jun 1, 2023
2 parents d4eee26 + b91a6b5 commit dac3897
Show file tree
Hide file tree
Showing 165 changed files with 15,923 additions and 31,540 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# SVG Widgets Monorepo

A monorepo of SVG scripting libraries. It contains the following packages:
* [widgets](packages/widgets/README.md): aka Polyhedz Studio, the root web app serving SVG widgets at [https://polyhedz-studio.vercel.app](https://polyhedz-studio.vercel.app)
* [widgets](packages/widgets/README.md): formerly Polyhedz Studio, the root web app serving SVG widgets at [https://polyhedz-studio.vercel.app]. (https://polyhedz-studio.vercel.app)
* [fluent-svg-path-ts](packages/fluent-svg-path-ts/README.md): library (unpublished) for manipulating SVG path data
* `eslint-config-custom`: TS eslint config extended from airbnb-base + airbnb-typescript (no React)
* `eslint-config-custom-ts`: TS eslint config extended from airbnb-base + airbnb-typescript (no React)

This repo is under heavy refactoring. The UI/state code for creating widgets will be extracted into a separate library `svg-widget-studio` of which the particular widgets created will depend on.
25,558 changes: 13,800 additions & 11,758 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"directories": {
"doc": "docs-site"
},
"engines": {
"node": ">=v16.20.0",
"npm": ">=8.19.3"
},
"scripts": {
"prepare-husky": "husky install",
"build-docs": "typedoc",
Expand Down
30 changes: 30 additions & 0 deletions packages/eslint-config-custom-react/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const sharedTsRules = require('eslint-config-custom-ts/rules/sharedTsRules');

module.exports = {
extends: ['eslint-config-custom-ts'],
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
extends: ['eslint-config-airbnb', 'eslint-config-airbnb-typescript'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['react', 'jsx-a11y','@typescript-eslint', 'import'],
rules: {
...sharedTsRules,
'react/jsx-props-no-spreading': 0,
'react/prop-types': 0,
'react/no-array-index': 0,
'react/no-array-index-key': 0,
'react/require-default-props': 0,
'react/function-component-definition': 0,
},
},
],
};
24 changes: 24 additions & 0 deletions packages/eslint-config-custom-react/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "eslint-config-custom-react",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"eslint-config-custom-ts": "*",
"eslint-config-airbnb": "^19.0.4"
},
"peerDependencies": {
"eslint-import-resolver-typescript": ">= 3",
"eslint-plugin-import": ">= 2",
"@typescript-eslint/eslint-plugin": ">= 5",
"eslint": ">= 8",
"eslint-plugin-jsx-a11y": ">= 6",
"eslint-plugin-react": ">= 7",
"typescript": ">= 4"
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "eslint-config-custom",
"name": "eslint-config-custom-ts",
"version": "1.0.0",
"description": "Monorepo shared eslint config",
"main": "index.js",
Expand All @@ -10,12 +10,14 @@
"license": "ISC",
"dependencies": {
"@typescript-eslint/parser": "^5.59.7",
"eslint-config-airbnb-typescript": "^17.0.0"
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-airbnb-base": "^15.0.0"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": ">= 5",
"eslint": ">= 8",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-import-resolver-typescript": ">= 3",
"eslint-plugin-import": ">= 2",
"typescript": ">= 4"
}
}
Loading

1 comment on commit dac3897

@vercel
Copy link

@vercel vercel bot commented on dac3897 Jun 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.