Skip to content

Commit

Permalink
First pass of Grommet 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alansouzati committed Jul 19, 2017
1 parent c281e92 commit a1dc887
Show file tree
Hide file tree
Showing 1,492 changed files with 4,168 additions and 82,740 deletions.
16 changes: 9 additions & 7 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"presets": [ "es2015", "react" ],
"plugins": [
"add-module-exports",
"transform-object-rest-spread",
"transform-react-es6-displayname",
"transform-object-assign"
]
"plugins": ["styled-components"],
"env": {
"es6": {
"presets": [ ["es2015", { "modules": false }], "stage-1", "react" ]
},
"default": {
"presets": [ "es2015", "stage-1", "react" ]
}
}
}
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ max_line_length = 0
trim_trailing_whitespace = false

[COMMIT_EDITMSG]
max_line_length = 0
max_line_length = 0
10 changes: 3 additions & 7 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
src/js/utils/AlphaNum.js
src/js/utils/Cookies.js
src/js/components/icons/base/**
src/js/index.js
src/js/index-icons.js
src/js/messages/**
src/js/mixins/**
node_modules/**
dist/**
coverage/**
128 changes: 40 additions & 88 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,88 +1,40 @@
---
parser: babel-eslint

parserOptions:
ecmaFeatures:
experimentalObjectRestSpread: true
jsx: true
sourceType: "module"

plugins:
- react

env:
browser: true
node: true
es6: true

globals:
__DEV__: true
__THEME__: true
__DEV_MODE__: true
__SOCKET_HOST__: true
IntlPolyfill: true
Modernizr: true
describe: true
it: true
beforeEach: true
afterEach: true
before: true
after: true

rules:
# ERRORS
space-before-blocks: 2
indent: [2, 2, { SwitchCase: 1 }]
brace-style: 2
comma-dangle: 2
no-unused-expressions: 2
eol-last: 2
dot-notation: 2
no-unused-vars: [2, args: none]
semi: [2, "always"]
max-len: 2

# DISABLED
#change soon back to max-len: [1, 80]
no-underscore-dangle: 0
new-cap: 0
no-use-before-define: 0
key-spacing: 0
eqeqeq: 0
strict: 0
space-unary-ops: 0
yoda: 0
no-loop-func: 0
no-trailing-spaces: 0
no-multi-spaces: 0
no-shadow: 0
no-alert: 0
no-process-exit: 0
no-extend-native: 0
block-scoped-var: 0
quotes: 0
jsx-quotes: 0
consistent-return: 0

# REACT DISABLED
react/display-name: 0
react/jsx-sort-prop-types: 0
react/prop-types: 0
react/no-did-mount-set-state: 0
react/no-did-update-set-state: 0
react/jsx-max-props-per-line: 0
react/jsx-sort-props: 0
react/no-multi-comp: 0
react/jsx-boolean-value: 0
react/no-danger: 0

react/jsx-curly-spacing: 1
react/jsx-no-duplicate-props: 1
react/jsx-no-undef: 1
react/jsx-uses-react: 1
react/jsx-uses-vars: 1
react/no-unknown-property: 1
react/react-in-jsx-scope: 1
react/self-closing-comp: 1
react/sort-comp: 1
react/jsx-wrap-multilines: 1
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"node": true,
"es6": true
},
"globals": {
"it": true,
"expect": true,
"describe": true,
"jest": true,
"document": true,
"test": true,
"window": true,
"fetch": true,
"WebSocket": true,
"alert": true,
"URLSearchParams": true
},
"rules": {
"comma-dangle": ["error", "always-multiline"],
"jsx-quotes": ["error", "prefer-single"],
"no-console": 0,
"quote-props": ["error", "consistent"],
"react/forbid-prop-types": 0, // Soft requirement now, try hard requ in future
"react/jsx-boolean-value": [1, "always"],
"react/jsx-filename-extension": 0,
"react/jsx-first-prop-new-line": [1, "multiline"],
"react/jsx-max-props-per-line": [1, { "when": "multiline" }],
"react/no-multi-comp": 0, // Soft requirement now, try hard requ in future
"react/prefer-stateless-function": 0, // Soft requirement now, try hard requ in future
"react/no-find-dom-node": 0,
"react/prop-types": 0,
"react/sort-comp": 0,
"import/no-extraneous-dependencies": 0,
"no-alert": 0,
"jsx-a11y/href-no-hash": 0
}
}
33 changes: 7 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
**bower_components**
node_modules
**/dist*/**
**/dist-bower*/**
notes.txt
.DS_Store
.sass-cache
*.flags.json
*.iml
.idea/**
*.log
*tmp*
**sublime-project**
**sublime-workspace**
**requests.csv**
**coverage**
**lcov.info**
src/js/baseIcons.js
**iconsMap**
**index-icons**
**.publish**
server/css**
server/server-routes.js
.nyc_output
grommet*.tgz
grommet*licenses.json
/.idea/
/node_modules/
/dist/
.eslintcache
coverage
.vscode
npm-debug.log
yarn-error.log
.DS_Store
181 changes: 0 additions & 181 deletions CONTRIBUTING.md

This file was deleted.

Loading

0 comments on commit a1dc887

Please sign in to comment.