Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
indent_style = spaces
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*{js, ts}]
tab_width = 2
126 changes: 126 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"plugins": [
"react"
],
"rules": {
"comma-dangle": [2,"always-multiline"],
"no-cond-assign": [2,"always"],
"no-console": 2,
"no-constant-condition": 2,
"no-control-regex": 2,
"no-debugger": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 2,
"no-empty": 2,
"no-ex-assign": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": [2,"all"],
"no-extra-semi": 2,
"no-func-assign": 2,
"no-inner-declarations": [2,"both"],
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-negated-in-lhs": 2,
"no-obj-calls": 2,
"no-regex-spaces": 2,
"no-sparse-arrays": 2,
"no-unreachable": 2,
"use-isnan": 2,
"valid-typeof": 2,
"no-unexpected-multiline": 2,
"block-scoped-var": 2,
"complexity": [2,10],
"consistent-return": 2,
"curly": [2,"all"],
"dot-notation": 2,
"dot-location": [2,"property"],
"eqeqeq": [2,"smart"],
"guard-for-in": 2,
"no-alert": 2,
"no-caller": 2,
"no-div-regex": 2,
"no-else-return": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-extra-bind": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-iterator": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-native-reassign": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-new": 2,
"no-octal-escape": 2,
"no-octal": 2,
"no-param-reassign": [2,{"props":true}],
"no-proto": 2,
"no-redeclare": [2,{"builtinGlobals":true}],
"no-return-assign": [2,"always"],
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-throw-literal": 2,
"no-unused-expressions": 2,
"no-useless-call": 2,
"no-void": 2,
"no-with": 2,
"vars-on-top": 2,
"wrap-iife": 2,
"no-catch-shadow": 2,
"no-label-var": 2,
"no-shadow-restricted-names": 2,
"no-shadow": [2,{"builtinGlobals":true,"hoist":"all"}],
"no-undef-init": 2,
"no-unused-vars": 2,
"no-use-before-define": [2,"nofunc"],
"camelcase": [2,{"properties":"always"}],
"comma-spacing": [2,{"after":true}],
"comma-style": 2,
"consistent-this": 2,
"eol-last": 2,
"func-names": 2,
"func-style": [2,"declaration"],
"linebreak-style": [2,"unix"],
"no-mixed-spaces-and-tabs": [2,"smart-tabs"],
"no-multiple-empty-lines": [2,{"max":2}],
"no-nested-ternary": 2,
"no-new-object": 2,
"no-spaced-func": 2,
"no-trailing-spaces": [2,{"skipBlankLines":false}],
"no-underscore-dangle": 2,
"no-unneeded-ternary": 2,
"object-curly-spacing": [2,"always",{"arraysInObjects":true,"objectsInObjects":true}],
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": [2,{"words":true}],
"wrap-regex": 2,
"arrow-parens": [2,"as-needed"],
"arrow-spacing": [2,{"before":true,"after":true}],
"constructor-super": 2,
"no-class-assign": 2,
"no-const-assign": 2,
"no-this-before-super": 2,
"no-var": 2,
"object-shorthand": [2,"always"],
"prefer-const": 2,
"prefer-spread": 2,
"prefer-reflect": 2,
"require-yield": 2,
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error"
}
}
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
dist: trusty
cache:
directories:
- "node_modules"
language: node_js
node_js:
- "6"
- "7"
- "stable"
install:
- npm install
script:
- npm run test
- npm run lint
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# This is a fork because I needed some fixes
- The last update was 7 months
- There is no testing whatsoever
- There is no linting whatsoever (that's more taste)
- There are obvious bugs that are not getting fixed :)

[![Build Status](https://travis-ci.org/chilimatic/riek.svg?branch=code-cleanup-and-bugfixes)](https://travis-ci.org/chilimatic/riek)

#React Inline Edit Kit
An assortment of common HTML form elements, editable in-line the React way.

Try out [the demo](http://kaivi.github.io/riek/) and see what it looks like.

#Installation
`npm install riek --save-dev` *(`--save-dev` because you don't usually want to build and pack JS/CSS when in production)*
`npm install rieke --save-dev` *(`--save-dev` because you don't usually want to build and pack JS/CSS when in production)*

#Usage
```javascript
Expand Down Expand Up @@ -57,4 +63,4 @@ The build process does not work with Node v6 at the moment: use [Node Version Ma
3. Do `npm run build` to compile the lib and demo
4. Open `index.html` and check if it works
5. ???
6. Submit a pull request
6. Submit a pull request
Loading