-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nicholas Fiorello
authored and
Nicholas Fiorello
committed
Nov 30, 2020
1 parent
9be582e
commit 376b037
Showing
11 changed files
with
6,045 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": true | ||
} | ||
} | ||
], | ||
"@babel/preset-react", | ||
"@babel/preset-flow" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-export-default-from", | ||
"flow-react-proptypes", | ||
"transform-react-remove-prop-types", | ||
"@babel/plugin-transform-flow-strip-types", | ||
"@babel/plugin-proposal-object-rest-spread", | ||
"@babel/plugin-transform-parameters", | ||
[ | ||
"@babel/plugin-transform-runtime", | ||
{ | ||
"helpers": false, | ||
"regenerator": true, | ||
"absoluteRuntime": "babel-runtime" | ||
} | ||
], | ||
"@babel/plugin-syntax-dynamic-import", | ||
"@babel/plugin-syntax-import-meta", | ||
"@babel/plugin-proposal-json-strings", | ||
[ | ||
"@babel/plugin-proposal-decorators", | ||
{ | ||
"legacy": true | ||
} | ||
], | ||
"@babel/plugin-proposal-function-sent", | ||
"@babel/plugin-proposal-export-namespace-from", | ||
"@babel/plugin-proposal-numeric-separator", | ||
"@babel/plugin-proposal-throw-expressions", | ||
"@babel/plugin-proposal-logical-assignment-operators", | ||
"@babel/plugin-proposal-optional-chaining", | ||
[ | ||
"@babel/plugin-proposal-pipeline-operator", | ||
{ | ||
"proposal": "minimal" | ||
} | ||
], | ||
"@babel/plugin-proposal-nullish-coalescing-operator", | ||
"@babel/plugin-proposal-do-expressions" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/package.json | ||
/bin | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"allowImportExportEverywhere": false, | ||
"codeFrame": true, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"extends": [ | ||
"plugin:prettier/recommended" | ||
], | ||
"rules": { | ||
"react/jsx-sort-props": "error", | ||
"react/jsx-uses-react": "error", | ||
"react/jsx-uses-vars": "error", | ||
"consistent-return": "error", | ||
"no-debugger": "error", | ||
"no-invalid-regexp": "error", | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-trailing-spaces": "error", | ||
"no-undef": "error", | ||
"no-unused-expression": [ | ||
true, | ||
"allow-fast-null-checks" | ||
], | ||
"no-unused-vars": [ | ||
"error", | ||
{ | ||
"vars": "all", | ||
"args": "none", | ||
"ignoreRestSiblings": false | ||
} | ||
], | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"quotes": [ | ||
2, | ||
"single", | ||
{ | ||
"avoidEscape": true | ||
} | ||
], | ||
"semi": [ | ||
2, | ||
"always" | ||
], | ||
"strict": 0 | ||
}, | ||
"globals": { | ||
"__dirname": false, | ||
"$ReadOnlyArray": false, | ||
"Blob": false, | ||
"Class": false, | ||
"ClipboardEvent": false, | ||
"Component": false, | ||
"DataTransferItem": false, | ||
"Document": true, | ||
"DragEvent": true, | ||
"Element": false, | ||
"Event": false, | ||
"EventTarget": false, | ||
"File": false, | ||
"FileReader": false, | ||
"HTMLElement": false, | ||
"HTMLLIElement": false, | ||
"HTMLTableElement": false, | ||
"Image": false, | ||
"KeyboardEvent": false, | ||
"Map": false, | ||
"MouseEvent": false, | ||
"MutationObserver": false, | ||
"Promise": false, | ||
"Set": false, | ||
"SyntheticEvent": false, | ||
"SyntheticInputEvent": false, | ||
"SyntheticMouseEvent": false, | ||
"cancelAnimationFrame": false, | ||
"clearTimeout": false, | ||
"console": false, | ||
"document": false, | ||
"module": false, | ||
"process": false, | ||
"require": false, | ||
"requestAnimationFrame": false, | ||
"setTimeout": false, | ||
"window": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
module.exports = { | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"allowImportExportEverywhere": false, | ||
"codeFrame": true, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
}, | ||
"plugins": ["react"], | ||
"rules": { | ||
"react/jsx-sort-props": "error", | ||
"react/jsx-uses-react": "error", | ||
"react/jsx-uses-vars": "error", | ||
"consistent-return": "error", | ||
"no-debugger": "error", | ||
"no-invalid-regexp": "error", | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-trailing-spaces": "error", | ||
"no-undef": "error", | ||
"no-unused-expression": [true, "allow-fast-null-checks"], | ||
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false }], | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"quotes": [2, "single", { "avoidEscape": true }], | ||
"semi": [2, "always"], | ||
"strict": 0 | ||
}, | ||
"globals": { | ||
"__dirname": false, | ||
"$ReadOnlyArray": false, | ||
"Blob": false, | ||
"Class": false, | ||
"Component": false, | ||
"Document": true, | ||
"Element": false, | ||
"Event": false, | ||
"HTMLElement": false, | ||
"Image": false, | ||
"Map": false, | ||
"MouseEvent": false, | ||
"MutationObserver": false, | ||
"Promise": false, | ||
"Set": false, | ||
"SyntheticEvent": false, | ||
"SyntheticInputEvent": false, | ||
"SyntheticMouseEvent": false, | ||
"cancelAnimationFrame": false, | ||
"clearTimeout": false, | ||
"console": false, | ||
"document": false, | ||
"module": false, | ||
"process": false, | ||
"require": false, | ||
"requestAnimationFrame": false, | ||
"setTimeout": false, | ||
"window": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"bracketSpacing": false, | ||
"singleQuote": true, | ||
"trailingComma": "es5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This is a comment. | ||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence, | ||
# @MO-Movia and @rodgersgb will be requested for | ||
# review when someone opens a pull request. | ||
* @MO-Movia @rodgersgb | ||
|
||
# Order is important; the last matching pattern takes the most | ||
# precedence. When someone opens a pull request that only | ||
# modifies JS files, only @js-owner and not the global | ||
# owner(s) will be requested for a review. | ||
*.js @MO-Movia @melgish | ||
*.ts @MO-Movia @melgish | ||
*.css @MO-Movia @melgish | ||
|
||
# You can also use email addresses if you prefer. They'll be | ||
# used to look up users just like we do for commit author | ||
# emails. | ||
# *.go [email protected] | ||
|
||
# In this example, @doctocat owns any files in the build/logs | ||
# directory at the root of the repository and any of its | ||
# subdirectories. | ||
# /build/logs/ @doctocat | ||
|
||
# The `docs/*` pattern will match files like | ||
# `docs/getting-started.md` but not further nested files like | ||
# `docs/build-app/troubleshooting.md`. | ||
# docs/* [email protected] | ||
|
||
# In this example, @octocat owns any file in an apps directory | ||
# anywhere in your repository. | ||
# apps/ @octocat | ||
|
||
# In this example, @doctocat owns any file in the `/docs` | ||
# directory in the root of your repository. | ||
# /docs/ @doctocat | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# licit-doc-attrs-step | ||
Module that extend Step, overriding the apply, invert, map, getMap and fromJSON methods, and registering your class with a unique JSON-serialization identifier using Step.jsonID. | ||
|
||
## Build | ||
|
||
- npm install | ||
- npm pack | ||
|
||
## Usage | ||
|
||
Put the *modusoperandi-licit-doc-attrs-step-0.0.1.tgz* file in your project location, open command prompt and run: | ||
|
||
*npm install modusoperandi-licit-doc-attrs-step-0.0.1.tgz --save* | ||
|
||
In the source code, | ||
`import { SetDocAttrStep } from '@modusoperandi/licit-doc-attrs-step';` |
Oops, something went wrong.