Skip to content

Commit

Permalink
feat: updated ts, react-shadow and jsx settings (#492)
Browse files Browse the repository at this point in the history
* feat: updated ts, react-shadow and jsx settings

* chore: updated version and locked ts
  • Loading branch information
porcellus authored Jun 14, 2022
1 parent b75c28f commit 78a739a
Show file tree
Hide file tree
Showing 301 changed files with 5,110 additions and 4,223 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [0.22.3] - 2022-06-14

### Build changes

- Updated typescript to latest
- Using tsconfig to set jsx import source instead of pragma comments
- Updated react-shadow

## [0.22.2] - 2022-06-11

### Changes
Expand Down
20 changes: 0 additions & 20 deletions eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,6 @@
*/
module.exports = {
rules: {
"jsx-first-import": {
create: function (context) {
return {
Program(node) {
const importDeclarations = node.body.filter((n) => n.type === "ImportDeclaration");
importDeclarations.forEach((importDeclaration, index) => {
importDeclaration.specifiers.forEach((specifier) => {
if (specifier.imported && specifier.imported.name === "jsx" && index > 0) {
context.report(
node,
'/** @jsx jsx */\nimport { jsx } from "@emotion/react";\n must be the first import of the file.'
);
}
});
});
},
};
},
},

"no-direct-window-object": {
create: function (context) {
return {
Expand Down
1 change: 0 additions & 1 deletion lib/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ module.exports = {
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
"supertokens-auth-react/no-direct-window-object": "error",
"supertokens-auth-react/no-css-without-data-supertokens": "error",
"supertokens-auth-react/jsx-first-import": "error",
"typescript-eslint/indent": "off", // Prettier takes care of indentation.
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/member-delimiter-style": [
Expand Down
36 changes: 21 additions & 15 deletions lib/build/components/SuperTokensBranding.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 16 additions & 12 deletions lib/build/components/assets/arrowLeftIcon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 16 additions & 12 deletions lib/build/components/assets/arrowRightIcon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 14 additions & 10 deletions lib/build/components/assets/checkedIcon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 27 additions & 17 deletions lib/build/components/assets/checkedRoundIcon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 78a739a

Please sign in to comment.