Permalink
Browse files

cleanup

  • Loading branch information...
metagrover committed Nov 9, 2017
0 parents commit 5e15fb9d5e2eada83e814e8dbdb776183e5c63f3
Showing with 159 additions and 0 deletions.
  1. +3 −0 .babelrc
  2. +14 −0 .codeclimate.yml
  3. +14 −0 .editorconfig
  4. +43 −0 .eslintrc
  5. +37 −0 .gitignore
  6. 0 .gitmodules
  7. +4 −0 .storybook/addons.js
  8. +18 −0 .storybook/config.js
  9. +3 −0 .storybook/styles.css
  10. +23 −0 .storybook/webpack.config.js
@@ -0,0 +1,3 @@
{
"presets": ["es2015", "react"]
}
@@ -0,0 +1,14 @@
engines:
eslint:
enabled: true
channel: "eslint-3"
ratings:
paths:
- "app/**"
exclude_paths:
- "lib/**"
- "dist/**"
- "umd/**"
- "playground/**"
- "node_modules/**"
- "bower_components/**"
@@ -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
@@ -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"
]
}
@@ -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
No changes.
@@ -0,0 +1,4 @@
import "@storybook/addon-knobs/register";
import "storybook-readme/register";
import "@storybook/addon-options/register";
import "./styles.css";
@@ -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);
@@ -0,0 +1,3 @@
.hljs {
display: inline;
}
@@ -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.