Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Fiorello authored and Nicholas Fiorello committed Nov 30, 2020
1 parent 9be582e commit 376b037
Show file tree
Hide file tree
Showing 11 changed files with 6,045 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .babelrc
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"
]
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/package.json
/bin
/dist
93 changes: 93 additions & 0 deletions .eslintrc
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
}
}
60 changes: 60 additions & 0 deletions .eslintrc.js
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
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"bracketSpacing": false,
"singleQuote": true,
"trailingComma": "es5"
}
40 changes: 40 additions & 0 deletions CODEOWNERS
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

16 changes: 16 additions & 0 deletions README.md
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';`
Loading

0 comments on commit 376b037

Please sign in to comment.