Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
8,551 additions
and
1,442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
|
||
[*.json] | ||
indent_style = space | ||
indent_size = 2 | ||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.publish/* | ||
dist/* | ||
example/assets/* | ||
lib/* | ||
example/* | ||
test/* | ||
node_modules/* | ||
coverage/* | ||
webpack.* | ||
config/* | ||
scripts/* | ||
Gruntfile.js | ||
package.json | ||
webpack.*.js | ||
src/utils/zipData.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
module.exports = { | ||
'extends': 'eslint-config-airbnb', | ||
'parser': 'babel-eslint', | ||
'env': { | ||
'browser': true, | ||
'node': true, | ||
'es6': true, | ||
'jest': true | ||
}, | ||
'ecmaFeatures': { | ||
'jsx': true | ||
}, | ||
'rules': { | ||
'react/jsx-no-bind': 'error', | ||
'react/no-multi-comp': 'off', | ||
'no-restricted-syntax': [ | ||
'error', | ||
'DebuggerStatement', | ||
'ForInStatement', | ||
'WithStatement' | ||
], | ||
'newline-after-var': ['error', 'always'], | ||
'newline-before-return': 'error', | ||
'comma-dangle': ['error', 'always-multiline'], // https://github.com/airbnb/javascript/commit/788208295469e19b806c06e01095dc8ba1b6cdc9 | ||
'indent': ['error', 2, {'SwitchCase': 1}], | ||
'no-console': 0, | ||
'no-alert': 0, | ||
'no-underscore-dangle': 'off', | ||
'max-len': [ 'error', 150, 2, { 'ignoreUrls': true, 'ignoreComments': false, } ], | ||
'react/require-default-props': 'off', | ||
'react/jsx-curly-spacing': [ 'error', 'always', { 'allowMultiline': true } ], | ||
'arrow-body-style': 'off', | ||
'no-mixed-operators': ['error', { | ||
'groups': [ | ||
['&', '|', '^', '~', '<<', '>>', '>>>'], | ||
['==', '!=', '===', '!==', '>', '>=', '<', '<='], | ||
['&&', '||'], | ||
['in', 'instanceof'] | ||
], | ||
'allowSamePrecedence': true | ||
} ], | ||
'react/jsx-filename-extension': ['error', { 'extensions': ['.js', '.jsx'] }], | ||
'react/no-string-refs': 'off', | ||
'arrow-parens': ['error', 'always'], | ||
'jsx-a11y/no-static-element-interactions': 'off', | ||
'react/prefer-stateless-function': 'off', | ||
'no-param-reassign': 'off', | ||
'no-unused-vars': ['error', { 'ignoreRestSiblings': true }], | ||
'import/no-unresolved': [2, { ignore: ['react', 'react-dom', 'react-twzipcode'] }], | ||
'import/extensions': 'off', | ||
'import/no-extraneous-dependencies': ['error', { | ||
devDependencies: [ | ||
'test/**', // tape, common npm pattern | ||
'tests/**', // also common npm pattern | ||
'spec/**', // mocha, rspec-like pattern | ||
'**/__tests__/**', // jest pattern | ||
'**/__mocks__/**', // jest pattern | ||
'test.js', // repos with a single test file | ||
'test-*.js', // repos with multiple top-level test files | ||
'**/*.test.js', // tests where the extension denotes that it is a test | ||
'**/webpack.config.js', // webpack config | ||
'**/webpack.config.*.js', // webpack config | ||
'**/rollup.config.js', // rollup config | ||
'**/gulpfile.js', // gulp config | ||
'**/gulpfile.*.js', // gulp config | ||
'**/Gruntfile', // grunt config | ||
'config/jest/**', | ||
'src/testUtils/**', | ||
'*.js' | ||
], | ||
optionalDependencies: false, | ||
}], | ||
indent: ['error', 2, { | ||
SwitchCase: 1, | ||
VariableDeclarator: 1, | ||
outerIIFEBody: 1, | ||
MemberExpression: 1, | ||
// CallExpression: { | ||
// parameters: null, | ||
// }, | ||
FunctionDeclaration: { | ||
parameters: 1, | ||
body: 1 | ||
}, | ||
FunctionExpression: { | ||
parameters: 1, | ||
body: 1 | ||
} | ||
}], | ||
'no-plusplus': ['error', { "allowForLoopAfterthoughts": true }] | ||
}, | ||
'plugins': [ | ||
'react', | ||
'import', | ||
'security' | ||
], | ||
'globals': { | ||
'__DEVELOPMENT__': true, | ||
'__CLIENT__': true, | ||
'__SERVER__': true, | ||
'__DISABLE_SSR__': true, | ||
'__DEVTOOLS__': true, | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,50 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Coverage tools | ||
lib-cov | ||
coverage | ||
coverage.html | ||
.cover* | ||
|
||
# Dependency directory | ||
node_modules | ||
|
||
# Example build directory | ||
example/dist | ||
.publish | ||
|
||
# Editor and other tmp files | ||
*.swp | ||
*.un~ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
*.sublime-* | ||
.idea/ | ||
*.DS_Store | ||
### SublimeText ### | ||
*.sublime-workspace | ||
|
||
### JetBrains ### | ||
.idea | ||
|
||
### OSX ### | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Visual Studio | ||
*.history | ||
*.vscode | ||
.vscode/ | ||
.history/ | ||
|
||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
### Windows ### | ||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# App specific | ||
|
||
dist/ | ||
node_modules/ | ||
.tmp | ||
/src/main.js | ||
.grunt/ | ||
.history/ | ||
npm-debug.log | ||
|
||
coverage | ||
build/** | ||
dist/** | ||
example/** | ||
test/** | ||
coverage/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
language: node_js | ||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
node_js: | ||
- "5.11.1" | ||
after_success: npm run coverage | ||
after_script: npm run coveralls | ||
- "7.2.1" | ||
before_script: yarn add react@^16.0.0 react-dom@^16.0.0 --peer | ||
after_success: yarn run coverage | ||
after_script: yarn run coveralls |
Oops, something went wrong.