Skip to content

Commit

Permalink
Fix code analysis, add remaining deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Nov 17, 2023
1 parent ad6c535 commit bbefcea
Show file tree
Hide file tree
Showing 6 changed files with 4,783 additions and 2,082 deletions.
53 changes: 53 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"extends": ["react-app", "prettier", "plugin:jsx-a11y/recommended"],
"plugins": ["prettier", "react-hooks", "jsx-a11y"],
"env": {
"es6": true,
"browser": true,
"node": true,
"mocha": true,
"jasmine": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"legacyDecorators": true
}
},
"rules": {
"import/no-unresolved": 0,
"no-alert": 1,
"no-console": 1,
"no-debugger": 1,
"prettier/prettier": [
"error",
{ "trailingComma": "all", "singleQuote": true }
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/react-in-jsx-scope": "off"
},
"settings": {
"react": {
"version": "17.0.2"
}
},
"globals": {
"root": true,
"__DEVELOPMENT__": true,
"__CLIENT__": true,
"__SERVER__": true,
"__DISABLE_SSR__": true,
"__DEVTOOLS__": true,
"__DEBUG__": true,
"__SSR__": true,
"__SENTRY__": true,
"cy": true,
"Cypress": true,
"jest": true,
"socket": true,
"webpackIsomorphicTools": true
}
}
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"trailingComma": "all",
"singleQuote": true,
"overrides": [
{
"files": "*.overrides",
"options": {
"parser": "less"
}
}
]
}
33 changes: 33 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"extends": [
"stylelint-config-prettier",
"stylelint-config-idiomatic-order"
],
"plugins": [
"stylelint-prettier"
],
"overrides": [
{
"files": [
"**/*.less"
],
"customSyntax": "postcss-less"
},
{
"files": [
"**/*.overrides"
],
"customSyntax": "postcss-less"
},
{
"files": [
"**/*.scss"
],
"customSyntax": "postcss-scss"
}
],
"rules": {
"prettier/prettier": true,
"order/properties-alphabetical-order": null
}
}
60 changes: 18 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,56 +21,32 @@
"@plone/volto": ">=13.8.0"
},
"devDependencies": {
"@babel/eslint-parser": "7.22.15",
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@plone/scripts": "^2.1.2",
"@plone/scripts": "^3.0.0",
"@release-it/conventional-changelog": "^5.0.0",
"prettier": "2.0.5",
"release-it": "15.0.0",
"stylelint": "13.3.3",
"stylelint-config-idiomatic-order": "8.1.0",
"stylelint-config-prettier": "8.0.1",
"stylelint-prettier": "1.1.2"
"eslint": "8.49.0",
"eslint-config-prettier": "9.0.0",
"eslint-config-react-app": "7.0.1",
"eslint-plugin-flowtype": "8.0.3",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"postcss-syntax": "^0.36.2",
"prettier": "3.0.3",
"release-it": "^16.1.5",
"stylelint": "15.10.3",
"stylelint-config-idiomatic-order": "9.0.0",
"stylelint-config-prettier": "9.0.4",
"stylelint-prettier": "4.0.2"
},
"repository": {
"type": "git",
"url": "git@github.com:collective/volto-authomatic.git"
},
"prettier": {
"trailingComma": "all",
"singleQuote": true,
"overrides": [
{
"files": "*.overrides",
"options": {
"parser": "less"
}
}
]
},
"stylelint": {
"extends": [
"stylelint-config-idiomatic-order"
],
"plugins": [
"stylelint-prettier"
],
"rules": {
"prettier/prettier": true,
"rule-empty-line-before": [
"always-multi-line",
{
"except": [
"first-nested"
],
"ignore": [
"after-comment"
]
}
]
},
"ignoreFiles": "theme/themes/default/**/*.overrides"
},
"scripts": {
"ci:test-acceptance-server": "make test-acceptance-server",
"cy:test:fixture:setup": "node cypress/support/reset-fixture.js",
Expand Down
2 changes: 1 addition & 1 deletion src/components/AuthProvider/AuthProvider.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
display: inline-flex;
width: 300px;
align-items: center;
margin: 0.5rem auto;
border-radius: 3px;
margin: 0.5rem auto;
box-shadow: rgba(0, 0, 0, 0.5) 0 1px 2px;
}

Expand Down
Loading

0 comments on commit bbefcea

Please sign in to comment.