Skip to content

Commit

Permalink
[ms-3002] update libs and fix code style (#42)
Browse files Browse the repository at this point in the history
* [ms-3002] update libs

* [ms-3002] fix indentation

* [ms-3002] fix code style

Co-authored-by: Marcin <marcin_privbate@wp.pl>
  • Loading branch information
Class66 and Marcin committed Oct 17, 2021
1 parent 27fffae commit 2ea0cbf
Show file tree
Hide file tree
Showing 24 changed files with 15,070 additions and 20,997 deletions.
21 changes: 11 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
"jest": true,
"node": true
},
"plugins": [
"react-hooks"
],
"plugins": ["react-hooks"],
"rules": {
"arrow-parens": "off",
"brace-style": ["error", "1tbs"],
Expand All @@ -21,7 +19,7 @@
"import/extensions": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"import/prefer-default-export": "off",
"indent": ["error", 2, { "SwitchCase": 1 }],
"indent": ["error", 4, { "SwitchCase": 1 }],
"max-len": ["warn", 100, { "ignoreComments": true }],
"no-var": "error",
"no-case-declarations": 0,
Expand All @@ -45,8 +43,8 @@
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-boolean-value": ["error", "always"],
"react/jsx-indent-props": ["error", 2],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 4],
"react/jsx-indent": ["error", 4],
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/no-unused-prop-types": "off",
Expand All @@ -56,9 +54,12 @@
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": [2, {
"controlComponents": ["Input"],
"depth": 3
}]
"jsx-a11y/label-has-associated-control": [
2,
{
"controlComponents": ["Input"],
"depth": 3
}
]
}
}
14 changes: 7 additions & 7 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-react',
],
plugins: [
'@babel/plugin-proposal-class-properties',
],
presets: [
'@babel/preset-env',
'@babel/preset-react',
],
plugins: [
'@babel/plugin-proposal-class-properties',
],
};
20 changes: 10 additions & 10 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const StylelintPlugin = require('stylelint-webpack-plugin')

module.exports = {
webpack: function (config, env) {
if (env === 'development') {
config.plugins.push(
new StylelintPlugin({
// options here
})
)
}
webpack: function (config, env) {
if (env === 'development') {
config.plugins.push(
new StylelintPlugin({
// options here
})
)
}

return config
}
return config
}
}
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
moduleNameMapper: {
'^.+\\.(css|scss)$': 'identity-obj-proxy',
},
moduleNameMapper: {
'^.+\\.(css|scss)$': 'identity-obj-proxy',
},
};

0 comments on commit 2ea0cbf

Please sign in to comment.