Skip to content

Commit

Permalink
Merge branch 'master' into FE-1650-responsive-grid
Browse files Browse the repository at this point in the history
  • Loading branch information
DlgSHi authored Mar 12, 2020
2 parents b267036 + 581a6b5 commit 3c1f2a7
Show file tree
Hide file tree
Showing 423 changed files with 15,554 additions and 12,398 deletions.
109 changes: 102 additions & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,108 @@
{
"extends": "./node_modules/carbon-factory/.eslintrc",
"parser": "babel-eslint",
"rules": {
"strict": 0,
"array-bracket-spacing": ["error", "never"],
"arrow-body-style": "off",
"class-methods-use-this": "off",
"comma-dangle": ["error", "never"],
"func-names": "off",
"function-paren-newline": ["error", "consistent"],
"guard-for-in": "off",
"import/extensions": ["off", "never"],
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"indent": ["error", 2, {
"VariableDeclarator": 2,
"SwitchCase": 1
}],
"jsx-a11y/anchor-is-valid": "warn",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/label-has-for": "warn",
"jsx-a11y/mouse-events-have-key-events": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"jsx-quotes": ["error", "prefer-single"],
"linebreak-style": ["error", "unix"],
"max-len": ["error", 120],
"max-params": ["error", 5],
"multiline-ternary": ["error", "never"],
"no-param-reassign": ["error", { "props": false }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-restricted-syntax": "off",
"no-trailing-spaces": ["error"],
"no-underscore-dangle": "off",
"no-use-before-define": ["error", { "functions": false, "classes": false }],
"one-var": "off",
"one-var-declaration-per-line": "off",
"prefer-const": ["error", {"destructuring": "any"}],
"prefer-destructuring": ["error", {
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": false,
"object": false
}
}],
"react/jsx-one-expression-per-line": 0,
"react/destructuring-assignment": 0,
"react/no-this-in-sfc": 0,
"react/jsx-curly-spacing": ["error", "always"],
"react/jsx-filename-extension": "off",
"react/jsx-max-props-per-line": ["error", { "maximum": 2 }],
"react/jsx-uses-react": "warn",
"react/jsx-uses-vars": "warn",
"react/jsx-wrap-multilines": ["error", {
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "parens-new-line",
"condition": "parens-new-line",
"logical": "parens-new-line",
"prop": "parens-new-line"
}],
"react/forbid-prop-types": "off",
"react/no-array-index-key": "warn",
"react/require-default-props": "off",
"react/sort-comp": ["error", {
"order": [
"static-methods",
"lifecycle",
"/^on.+$/",
"/^(?!(InitialState$|DefaultProps$|ChildContext$)).+$/",
"everything-else",
"/^render.+$/",
"render"
]
}],
"semi": ["error", "always"],
"semi-spacing": ["error", {"before": false, "after": true}],
"space-before-function-paren": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
// Copy from airbnb with UNSAFE_ ignore added
"camelcase": ["error", {
"allow": ["^UNSAFE_"],
"properties": "never",
"ignoreDestructuring": false
}]
},
"camelcase": ["error", {
"allow": ["^UNSAFE_"],
"properties": "never",
"ignoreDestructuring": false
}]
},
"env": {
"es6": true,
"browser": true,
"jasmine": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb"
],
"plugins": [
"react",
"react-hooks"
],
"globals": {
"jest": false,
"global": false,
Expand Down
17 changes: 17 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Configuration for probot-stale - https://github.com/probot/stale
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 365
# Number of days of inactivity before a stale issue is closed
daysUntilClose: false
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had recent activity. If you believe this issue is still valid and required please comment below.
It will be reviewed by the core Carbon team and may be closed if no further activity occurs. Thank you for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
Binary file added .storybook/assets/fonts/Lato-Regular.eot
Binary file not shown.
Loading

0 comments on commit 3c1f2a7

Please sign in to comment.