Skip to content

Commit

Permalink
Merge pull request #194 from MOV-AI/compat/2.4.0
Browse files Browse the repository at this point in the history
Compat/2.4.0
  • Loading branch information
quirinpa authored Sep 1, 2023
2 parents 0263f6c + d81fb94 commit a98559b
Show file tree
Hide file tree
Showing 23 changed files with 731 additions and 503 deletions.
32 changes: 32 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "react"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
rules: {
// Add your rules here. For instance:
},
env: {
"browser": true,
"es2021": true
},
overrides: [],
parserOptions: {
"ecmaVersion": "latest",
"sourceType": "module"
},
rules: {
"react/prop-types": 0,
"react/display-name": 0,
'@typescript-eslint/no-use-before-define': ['error']
},
settings: {
react: {
version: "detect",
}
}
}
24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

31 changes: 6 additions & 25 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -1,33 +1,14 @@
[{
{
"$schema": "https://json.schemastore.org/swcrc",
"module": {
"type": "commonjs"
},
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": true,
"dynamicImport": false,
"privateMethod": false,
"functionBind": false,
"exportDefaultFrom": false,
"exportNamespaceFrom": false,
"decorators": false,
"decoratorsBeforeExport": false,
"topLevelAwait": false,
"importMeta": false,
"emotion": true
},
"target": "es2020",
"loose": false,
"externalHelpers": false,
"keepClassNames": false
},
"minify": false
}, {
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "ecmascript",
"jsx": true,
"dynamicImport": false,
"dynamicImport": true,
"privateMethod": false,
"functionBind": false,
"exportDefaultFrom": false,
Expand All @@ -44,4 +25,4 @@
"keepClassNames": false
},
"minify": false
}]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 5 additions & 3 deletions jest.config.cjs → jest.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module.exports = {
export default {
verbose: true,
transformIgnorePatterns: [
"/dist/",
"/node_modules/(?!(?:@mov-ai/.*|@babylonjs/core)/)",
"/../../libs/(?!(core)/)",
"/node_modules/(?!(@babylonjs/core|@mov-ai/mov-fe-lib-core)/)"
],
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
testEnvironment: "jsdom",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
moduleFileExtensions: ["ts", "tsx", "js", "mjs", "jsx", "json", "node"],
moduleNameMapper: {
"^@babylonjs/core$": "<rootDir>/__mocks__/@babylonjs/core.js",
"\\.(svg)$": "<rootDir>/__mocks__/mockSvg.js",
Expand All @@ -16,3 +17,4 @@ module.exports = {
"^.+\\.(js|jsx|ts|tsx)?$": "@swc/jest",
}
};

Loading

0 comments on commit a98559b

Please sign in to comment.