Skip to content

Commit

Permalink
refactor: upgraded the development environment (rsuite#1202)
Browse files Browse the repository at this point in the history
* refactor: upgraded the development environment

Upgraded the development environment, refactored Button and Affix

* chore: add package-lock.json

* test(affix): update tests for affix

* test(affix): update test cor affix

* fix(affix): fix invalid dependency of useEffect

* test: update tests

* fix(affix): set the dependency of Effect
  • Loading branch information
simonguo authored Jul 27, 2020
1 parent 29be7c1 commit 07c7a03
Show file tree
Hide file tree
Showing 106 changed files with 27,811 additions and 21,235 deletions.
7 changes: 5 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended'
'plugin:prettier/recommended',
'plugin:react-hooks/recommended'
],
parserOptions: {},
plugins: ['@typescript-eslint', 'react'],
Expand All @@ -27,7 +28,9 @@ module.exports = {
'@typescript-eslint/no-unused-vars': ERROR,
'@typescript-eslint/no-explicit-any': OFF,
'@typescript-eslint/explicit-function-return-type': OFF,
'@typescript-eslint/explicit-member-accessibility': OFF
'@typescript-eslint/explicit-member-accessibility': OFF,
'@typescript-eslint/no-namespace': OFF,
'@typescript-eslint/explicit-module-boundary-types': OFF
},
settings: {
react: {
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ node_modules
# Optional REPL history
.node_repl_history


# custom

.vscode
Expand All @@ -46,4 +45,5 @@ es/
karma.sauce.conf.js
dev-publish.sh
dist
docs/out/
docs/out/
types
4 changes: 3 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module.exports = {
printWidth: 100,
tabWidth: 2,
singleQuote: true
singleQuote: true,
arrowParens: 'avoid',
trailingComma: 'none'
};
Loading

0 comments on commit 07c7a03

Please sign in to comment.