-
Notifications
You must be signed in to change notification settings - Fork 0
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
32 changed files
with
2,461 additions
and
7,509 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
presets: [ | ||
// Compile to environments listed in .browserslistrc | ||
"@babel/env", | ||
"@babel/typescript", | ||
"@babel/react", | ||
], | ||
plugins: [ | ||
// class { handleThing = () => { } } | ||
"@babel/proposal-class-properties", | ||
// { ...spread } | ||
"@babel/proposal-object-rest-spread", | ||
], | ||
} |
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,14 @@ | ||
# 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 | ||
|
||
[*.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/coverage | ||
/dist | ||
/examples | ||
/node_modules |
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,47 @@ | ||
module.exports = { | ||
plugins: [ | ||
"@typescript-eslint", | ||
"jest", | ||
], | ||
extends: [ | ||
"airbnb-typescript", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:jest/recommended", | ||
"prettier", | ||
"prettier/react", | ||
"prettier/@typescript-eslint", | ||
], | ||
env: { | ||
node: true, | ||
browser: true, | ||
jest: true, | ||
}, | ||
rules: { | ||
"no-console": "off", | ||
// Too restrictive, writing ugly code to defend against a very unlikely scenario: https://eslint.org/docs/rules/no-prototype-builtins | ||
"no-prototype-builtins": "off", | ||
// https://basarat.gitbooks.io/typescript/docs/tips/defaultIsBad.html | ||
"import/prefer-default-export": "off", | ||
"import/no-default-export": "error", | ||
// Too restrictive: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/destructuring-assignment.md | ||
"react/destructuring-assignment": "off", | ||
// No jsx extension: https://github.com/facebook/create-react-app/issues/87#issuecomment-234627904 | ||
"react/jsx-filename-extension": "off", | ||
// add devDependencies for webpack https://github.com/airbnb/javascript/issues/1168 | ||
'import/no-extraneous-dependencies': ['error', { | ||
devDependencies: [ | ||
'spec/**', | ||
'test/**', | ||
'tests/**', | ||
'**/__tests__/**', | ||
'webpack.config.js', | ||
'webpack.config.*.js', | ||
'webpack.*.config.js', // add this file type | ||
'src/server/**', | ||
'gulpfile.js', | ||
'Gruntfile', | ||
], | ||
optionalDependencies: 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
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,12 @@ | ||
default: true | ||
|
||
# Some services use a linebreak-sensitive renderer, e.g. GitHub comment and BitBucket | ||
line-length: false | ||
|
||
no-trailing-punctuation: | ||
# Allow headings to end with question mark for FAQ | ||
punctuation: ".,;:" | ||
|
||
# Prettier handles these: | ||
list-marker-space: false | ||
no-multiple-blanks: 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/coverage | ||
/dist | ||
/examples | ||
/node_modules | ||
/yarn.lock | ||
|
Oops, something went wrong.