Skip to content

Commit

Permalink
Initial component commit
Browse files Browse the repository at this point in the history
  • Loading branch information
grxy committed Mar 12, 2017
1 parent 85b38ad commit 8e8dd06
Show file tree
Hide file tree
Showing 14 changed files with 4,774 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"compact": false,
"presets": ["env", "react", "stage-0"]
}
345 changes: 345 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,345 @@
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"globals": {
"sandbox": true,
"setFixtures": true
},
"parser": "babel-eslint",
"plugins": [
"react"
],
"root": true,
"rules": {
"arrow-body-style": [
"error",
"as-needed"
],
"arrow-parens": [
"error",
"always"
],
"arrow-spacing": [
"error",
{
"after": true,
"before": true
}
],
"brace-style": [
"error",
"1tbs"
],
"camelcase": [
"error",
{
"properties": "never"
}
],
"comma-dangle": [
"error",
"only-multiline"
],
"comma-spacing": [
"error",
{
"after": true,
"before": false
}
],
"comma-style": [
"error",
"last"
],
"constructor-super": [
"error"
],
"curly": [
"error"
],
"dot-location": [
"error",
"property"
],
"eol-last": [
"error"
],
"eqeqeq": [
"error",
"smart"
],
"generator-star-spacing": [
"error",
"before"
],
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"jsx-quotes": [
"error",
"prefer-double"
],
"key-spacing": [
"error",
{
"afterColon": true,
"beforeColon": false
}
],
"keyword-spacing": [
"error",
{
"after": true,
"before": true
}
],
"linebreak-style": [
"error",
"unix"
],
"max-depth": [
"warn",
4
],
"max-len": [
"error",
120
],
"new-parens": [
"error"
],
"newline-per-chained-call": [
"error",
{
"ignoreChainWithDepth": 2
}
],
"no-class-assign": [
"error"
],
"no-dupe-class-members": [
"error"
],
"no-duplicate-imports": [
"error"
],
"no-else-return": [
"error"
],
"no-eval": [
"error"
],
"no-floating-decimal": [
"error"
],
"no-loop-func": [
"error"
],
"no-mixed-operators": [
"error",
{
"allowSamePrecedence": true
}
],
"no-mixed-spaces-and-tabs": [
"error"
],
"no-multi-spaces": [
"error",
{
"exceptions": {
"ImportDeclaration": true,
"Property": true,
"VariableDeclarator": true
}
}
],
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-negated-condition": [
"error"
],
"no-nested-ternary": [
"error"
],
"no-self-compare": [
"error"
],
"no-this-before-super": [
"error"
],
"no-trailing-spaces": [
"error"
],
"no-unneeded-ternary": [
"error"
],
"no-useless-computed-key": [
"error"
],
"no-useless-constructor": [
"error"
],
"no-useless-rename": [
"error"
],
"no-var": [
"warn"
],
"no-whitespace-before-property": [
"error"
],
"object-curly-spacing": [
"error",
"always"
],
"object-property-newline": [
"error",
{
"allowMultiplePropertiesPerLine": true
}
],
"operator-linebreak": [
"error",
"before"
],
"padded-blocks": [
"error",
"never"
],
"prefer-arrow-callback": [
"error"
],
"prefer-const": [
"error",
{
"destructuring": "all"
}
],
"prefer-rest-params": [
"error"
],
"prefer-spread": [
"error"
],
"prefer-template": [
"error"
],
"quote-props": [
"error",
"consistent-as-needed"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"react/display-name": [
"error",
{
"ignoreTranspilerName": true
}
],
"react/jsx-closing-bracket-location": [
"error",
"tag-aligned"
],
"react/jsx-curly-spacing": [
"error",
"never"
],
"react/jsx-equals-spacing": [
"error",
"never"
],
"react/jsx-first-prop-new-line": [
"error",
"multiline"
],
"react/jsx-handler-names": [
"error"
],
"react/jsx-indent": [
"error",
4
],
"react/jsx-indent-props": [
"error",
4
],
"react/jsx-pascal-case": [
"error"
],
"react/jsx-sort-props": [
"error"
],
"react/jsx-space-before-closing": [
"error",
"always"
],
"react/prefer-es6-class": [
"error",
"always"
],
"react/require-render-return": [
"error"
],
"semi": [
"error",
"always"
],
"semi-spacing": [
"error",
{
"after": true,
"before": false
}
],
"sort-vars": [
"error"
],
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never"
}
],
"space-infix-ops": [
"error",
],
"space-unary-ops": [
"error",
{
"words": true,
"nonwords": false
}
],
"spaced-comment": [
"error",
"always"
],
"yoda": [
"error"
]
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/coverage
/dist
/node_modules
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/coverage
/node_modules
/src
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: node_js
node_js:
- 7
- 6
- 5
- 4
script:
- yarn lint
- yarn build
- yarn test
after_script:
- yarn coverage
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Grex
Copyright (c) 2017 Andrew Grexa

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 8e8dd06

Please sign in to comment.