Skip to content

Commit

Permalink
Merge 477b431 into e9ed2b6
Browse files Browse the repository at this point in the history
  • Loading branch information
Can-Sahin committed Jul 3, 2020
2 parents e9ed2b6 + 477b431 commit 416e99c
Show file tree
Hide file tree
Showing 534 changed files with 23,102 additions and 24,444 deletions.
37 changes: 30 additions & 7 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"login": "julienben",
"name": "Julien Benchetrit",
"avatar_url": "https://avatars2.githubusercontent.com/u/8948127?v=4",
"profile": "https://julien.engineering/",
"profile": "https://julien.dev/",
"contributions": [
"code",
"question",
Expand All @@ -48,6 +48,30 @@
"maintenance"
]
},
{
"login": "Can-Sahin",
"name": "Can Sahin",
"avatar_url": "https://avatars2.githubusercontent.com/u/33245689",
"profile": "https://github.com/Can-Sahin",
"contributions": [
"code",
"doc",
"ideas",
"review",
"test"
]
},
{
"login": "receptiryaki",
"name": "Recep Tiryaki",
"avatar_url": "https://avatars0.githubusercontent.com/u/3495307",
"profile": "https://github.com/receptiryaki",
"contributions": [
"code",
"ideas",
"design"
]
},
{
"login": "justingreenberg",
"name": "Justin Greenberg",
Expand Down Expand Up @@ -170,13 +194,12 @@
]
},
{
"login": "Can-Sahin",
"name": "Can Sahin",
"avatar_url": "https://avatars2.githubusercontent.com/u/33245689?v=4",
"profile": "https://github.com/Can-Sahin",
"login": "joeyparis",
"name": "Joey Paris",
"avatar_url": "https://avatars0.githubusercontent.com/u/1377422?s=180&v=4",
"profile": "https://leadjig.com",
"contributions": [
"code",
"doc",
"code"
]
}
],
Expand Down
5 changes: 5 additions & 0 deletions .babel-plugin-macrosrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
styledComponents: {
displayName: process.env.NODE_ENV !== 'production',
},
};
14 changes: 0 additions & 14 deletions .editorconfig

This file was deleted.

2 changes: 2 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BROWSER=none
EXTEND_ESLINT=true
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GENERATE_SOURCEMAP=false
90 changes: 9 additions & 81 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,92 +6,20 @@ const prettierOptions = JSON.parse(
);

module.exports = {
parser: 'babel-eslint',
extends: ['airbnb', 'prettier', 'prettier/react'],
plugins: ['prettier', 'redux-saga', 'react', 'react-hooks', 'jsx-a11y'],
env: {
jest: true,
browser: true,
node: true,
es6: true,
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
extends: [
'react-app',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
],
plugins: ['prettier'],
rules: {
'prettier/prettier': ['error', prettierOptions],
'arrow-body-style': [2, 'as-needed'],
'class-methods-use-this': 0,
'import/imports-first': 0,
'import/newline-after-import': 0,
'import/no-dynamic-require': 0,
'import/no-named-as-default': 0,
'import/no-unresolved': 2,
'import/no-webpack-loader-syntax': 0,
'import/prefer-default-export': 0,
indent: [
2,
2,
{
SwitchCase: 1,
},
],
'jsx-a11y/aria-props': 2,
'jsx-a11y/heading-has-content': 0,
'jsx-a11y/label-has-associated-control': [
2,
{
// NOTE: If this error triggers, either disable it or add
// your custom components, labels and attributes via these options
// See https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-associated-control.md
controlComponents: ['Input'],
},
],
'jsx-a11y/label-has-for': 0,
'jsx-a11y/mouse-events-have-key-events': 2,
'jsx-a11y/role-has-required-aria-props': 2,
'jsx-a11y/role-supports-aria-props': 2,
'max-len': 0,
'newline-per-chained-call': 0,
'no-confusing-arrow': 0,
'no-console': 1,
'no-unused-vars': 2,
'no-use-before-define': 0,
'prefer-template': 2,
'react/destructuring-assignment': 0,
'react-hooks/rules-of-hooks': 'error',
'react/jsx-closing-tag-location': 0,
'react/forbid-prop-types': 0,
'react/jsx-first-prop-new-line': [2, 'multiline'],
'react/jsx-filename-extension': 0,
'react/jsx-props-no-spreading': 0,
'react/jsx-no-target-blank': 0,
'react/jsx-uses-vars': 2,
'react/require-default-props': 0,
'react/require-extension': 0,
'react/self-closing-comp': 0,
'react/sort-comp': 0,
'redux-saga/no-yield-in-race': 2,
'redux-saga/yield-effects': 2,
'require-yield': 0,
},
overrides: [
{
files: ['internals/**/*.*', 'server/**/*.*'],
rules: {
'import/no-extraneous-dependencies': 0,
},
files: ['**/*.ts?(x)'],
rules: { 'prettier/prettier': ['warn', prettierOptions] },
},
],
settings: {
'import/resolver': {
webpack: {
config: './internals/webpack/webpack.prod.babel.js',
},
},
},
};

0 comments on commit 416e99c

Please sign in to comment.