Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
metagrover committed Nov 9, 2017
0 parents commit 5e15fb9
Show file tree
Hide file tree
Showing 10 changed files with 159 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015", "react"]
}
14 changes: 14 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
engines:
eslint:
enabled: true
channel: "eslint-3"
ratings:
paths:
- "app/**"
exclude_paths:
- "lib/**"
- "dist/**"
- "umd/**"
- "playground/**"
- "node_modules/**"
- "bower_components/**"
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true


# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,jsx,html,sass}]
charset = utf-8
indent_style = tab
trim_trailing_whitespace = true
43 changes: 43 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"browser": true,
"node": true
},
"parser": "babel-eslint",
"extends": "airbnb",
"rules": {
"no-tabs": 0,
"one-var": 0,
"max-len": 0,
"func-names": 0,
"no-multi-assign": 0,
"no-underscore-dangle": 0,
"no-param-reassign": 0,
"newline-per-chained-call": 0,
"class-methods-use-this": 0,
"max-lines": ["error", 300],
"indent": [2, "tab", { "SwitchCase": 1 }],
"quotes": ["error", "double"],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"comma-dangle": ["error", "never"],
"object-curly-spacing": [2, "always"],
// linebreak-style: ["error", "windows"],
"react/require-default-props": 0,
"react/require-extension": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/jsx-boolean-value": 0,
"react/forbid-prop-types": 1,
"react/react-in-jsx-scope": 2,
"react/jsx-indent": [2, "tab"],
"react/jsx-indent-props": [2, "tab"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
},
"plugins": [
"react"
]
}
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git

node_modules
npm-debug.log.*
bower_components
website/bower_components

#SWP files
*.swp

# .DS_Store
.DS_Store
Empty file added .gitmodules
Empty file.
4 changes: 4 additions & 0 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import "@storybook/addon-knobs/register";
import "storybook-readme/register";
import "@storybook/addon-options/register";
import "./styles.css";
18 changes: 18 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { configure } from "@storybook/react";
import { setOptions } from "@storybook/addon-options";

setOptions({
name: "reactivesearch",
url: "https://github.com/appbaseio/reactivesearch",
goFullScreen: false,
showLeftPanel: true,
showDownPanel: true,
showSearchBox: false,
downPanelInRight: false,
});

function loadStories() {
require("../app/stories");
}

configure(loadStories, module);
3 changes: 3 additions & 0 deletions .storybook/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.hljs {
display: inline;
}
23 changes: 23 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
module: {
rules: [
{
test: /node_modules\/JSONStream\/index\.js$/,
use: ["shebang-loader", "babel-loader"]
},
{
test: /\.md$/,
loader: "raw-loader"
},
{
test: /\.css$/,
use: ["style-loader", "css-loader"]
},
{
test: /\.(ttf|eot|svg|woff(2)?)(\?[a-z0-9=&.]+)?$/,
use : "file-loader"
}
]
},
externals: ["ws"]
}

0 comments on commit 5e15fb9

Please sign in to comment.