diff --git a/.bento.yml b/.bento.yml new file mode 100644 index 0000000..77d1cc9 --- /dev/null +++ b/.bento.yml @@ -0,0 +1,238 @@ +formatter: + stylish: {} +tools: + r2c.eslint: + ignore: + - '@typescript-eslint/camelcase' + - '@typescript-eslint/member-delimiter-style' + - array-bracket-newline + - array-bracket-spacing + - array-element-newline + - arrow-parens + - block-spacing + - brace-style + - camelcase + - capitalized-comments + - comma-dangle + - comma-spacing + - comma-style + - computed-property-spacing + - consistent-this + - curly + - eol-last + - func-call-spacing + - func-name-matching + - func-names + - func-style + - function-call-argument-newline + - function-paren-newline + - id-blacklist + - id-length + - id-match + - implicit-arrow-linebreak + - import/dynamic-import-chunkname + - import/exports-last + - import/extensions + - import/first + - import/group-exports + - import/max-dependencies + - import/newline-after-import + - import/no-anonymous-default-export + - import/no-cycle + - import/no-default-export + - import/no-duplicates + - import/no-named-default + - import/no-named-export + - import/no-namespace + - import/no-unassigned-import + - import/order + - import/prefer-default-export + - indent + - jsx-a11y/alt-text + - jsx-a11y/anchor-has-content + - jsx-a11y/aria-activedescendant-has-tabindex + - jsx-a11y/click-events-have-key-events + - jsx-a11y/html-has-lang + - jsx-a11y/iframe-has-title + - jsx-a11y/img-redundant-alt + - jsx-a11y/interactive-supports-focus + - jsx-a11y/label-has-associated-control + - jsx-a11y/media-has-caption + - jsx-a11y/mouse-events-have-key-events + - jsx-a11y/no-access-key + - jsx-a11y/no-autofocus + - jsx-a11y/no-distracting-elements + - jsx-a11y/no-noninteractive-element-interactions + - jsx-a11y/no-noninteractive-tabindex + - jsx-a11y/no-onchange + - jsx-a11y/no-redundant-roles + - jsx-a11y/no-static-element-interactions + - jsx-a11y/scope + - jsx-a11y/tabindex-no-positive + - jsx-quotes + - key-spacing + - keyword-spacing + - line-comment-position + - linebreak-style + - lines-around-comment + - lines-between-class-members + - max-depth + - max-len + - max-lines + - max-lines-per-function + - max-nested-callbacks + - max-params + - max-statements + - max-statements-per-line + - multiline-comment-style + - multiline-ternary + - new-cap + - new-parens + - newline-per-chained-call + - no-array-constructor + - no-bitwise + - no-case-declarations + - no-cond-assign + - no-console + - no-continue + - no-inline-comments + - no-lonely-if + - no-mixed-operators + - no-mixed-spaces-and-tabs + - no-multi-assign + - no-multiple-empty-lines + - no-negated-condition + - no-nested-ternary + - no-new-object + - no-plusplus + - no-restricted-syntax + - no-return-assign + - no-tabs + - no-ternary + - no-trailing-spaces + - no-underscore-dangle + - no-unneeded-ternary + - no-whitespace-before-property + - nonblock-statement-body-position + - object-curly-newline + - object-curly-spacing + - object-property-newline + - one-var + - one-var-declaration-per-line + - operator-assignment + - operator-linebreak + - padded-blocks + - padding-line-between-statements + - prefer-arrow-callback + - prefer-const + - prefer-destructuring + - prefer-named-capture-group + - prefer-numeric-literals + - prefer-object-spread + - prefer-promise-reject-errors + - prefer-reflect + - prefer-rest-params + - prefer-spread + - prefer-template + - quote-props + - quotes + - react/boolean-prop-naming + - react/button-has-type + - react/default-props-match-prop-types + - react/destructuring-assignment + - react/display-name + - react/forbid-component-props + - react/forbid-dom-props + - react/forbid-elements + - react/forbid-foreign-prop-types + - react/forbid-prop-types + - react/jsx-boolean-value + - react/jsx-closing-bracket-location + - react/jsx-closing-tag-location + - react/jsx-curly-brace-presence + - react/jsx-curly-newline + - react/jsx-curly-spacing + - react/jsx-equals-spacing + - react/jsx-filename-extension + - react/jsx-fragments + - react/jsx-handler-names + - react/jsx-indent + - react/jsx-indent-props + - react/jsx-key + - react/jsx-max-depth + - react/jsx-max-props-per-line + - react/jsx-no-literals + - react/jsx-one-expression-per-line + - react/jsx-pascal-case + - react/jsx-props-no-multi-spaces + - react/jsx-props-no-spreading + - react/jsx-sort-default-props + - react/jsx-sort-prop-types + - react/jsx-sort-props + - react/jsx-space-before-closing + - react/jsx-tag-spacing + - react/jsx-wrap-multilines + - react/no-children-prop + - react/no-find-dom-node + - react/no-multi-comp + - react/no-redundant-should-component-update + - react/no-set-state + - react/no-string-refs + - react/no-unknown-property + - react/prefer-es6-class + - react/prefer-read-only-props + - react/prefer-stateless-function + - react/prop-types + - react/react-in-jsx-scope + - react/require-default-props + - react/require-optimization + - react/self-closing-comp + - react/sort-comp + - react/sort-prop-types + - react/state-in-constructor + - react/static-property-placement + - react/style-prop-object + - semi + - semi-spacing + - semi-style + - sort-keys + - sort-vars + - space-before-blocks + - space-before-function-paren + - space-in-parens + - space-infix-ops + - space-unary-ops + - spaced-comment + - strict + - switch-colon-spacing + - template-tag-spacing + - unicode-bom + - wrap-regex + - accessor-pairs + - class-methods-use-this + - consistent-return + - dot-location + - dot-notation + - guard-for-in + - lines-around-directive + - max-classes-per-file + - no-div-regex + - no-else-return + - no-empty-function + - no-fallthrough + - no-floating-decimal + - no-implicit-globals + - no-invalid-this + - no-labels + - no-multi-spaces + - no-multi-str + - no-octal + - no-param-reassign + - no-redeclare + - no-script-url + - no-self-assign + - no-self-compare + - no-throw-literal + - no-void + - vars-on-top + - yoda diff --git a/.bentoignore b/.bentoignore new file mode 100644 index 0000000..625ffd6 --- /dev/null +++ b/.bentoignore @@ -0,0 +1,35 @@ +# Items added to this file will be ignored by bento. +# +# This file uses .gitignore syntax: +# +# To ignore a file anywhere it occurs in your project, enter a +# glob pattern here. E.g. "*.min.js". +# +# To ignore a directory anywhere it occurs in your project, add +# a trailing slash to the file name. E.g. "dist/". +# +# To ignore a file or directory only relative to the project root, +# include a slash anywhere except the last character. E.g. +# "/dist/", or "src/generated". +# +# Some parts of .gitignore syntax are not supported, and patterns +# using this syntax will be dropped from the ignore list: +# - Explicit "include syntax", e.g. "!kept/". +# - Multi-character expansion syntax, e.g. "*.py[cod]" +# +# To include ignore patterns from another file, start a line +# with ':include', followed by the path of the file. E.g. +# ":include path/to/other/ignore/file". +# +# To ignore a file with a literal ':' character, escape it with +# a backslash, e.g. "\:foo". + +# Ignore Bento environment files +.bento/ + +# Ignore git items +.gitignore +.git/ +:include .gitignore +example/build/ +/static/ diff --git a/.eslintrc.yml b/.eslintrc.yml new file mode 100644 index 0000000..3657b1d --- /dev/null +++ b/.eslintrc.yml @@ -0,0 +1,15 @@ +env: + browser: true + commonjs: true + es6: true + node: true +extends: +- airbnb +globals: + Atomics: readonly + SharedArrayBuffer: readonly +parserOptions: + ecmaFeatures: + jsx: true + ecmaVersion: 2018 +rules: {} diff --git a/.gitignore b/.gitignore index d4df319..54cbce1 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,6 @@ dist/ npm-debug.log* yarn-debug.log* yarn-error.log* + +# Ignore bento tool run paths (this line added by `bento init`) +.bento/