Skip to content

Commit b8ea164

Browse files
magicmatatjahujonaslagoniboyney123David Boyne
authored
feat: replace old studio with new implementation (#133)
Co-authored-by: Jonas Lagoni <jonas-lt@live.dk> Co-authored-by: David Boyne <boyneyy123@gmail.com> Co-authored-by: David Boyne <davidboyne@Davids-MBP.lan>
1 parent b05a3d3 commit b8ea164

File tree

215 files changed

+101237
-16701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+101237
-16701
lines changed

.editorconfig

Lines changed: 0 additions & 13 deletions
This file was deleted.

.env-template

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
public
3+
docs
4+
lib

.eslintrc

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
env:
2+
es6: true
3+
browser: true
4+
5+
parser: "@typescript-eslint/parser"
6+
7+
plugins:
8+
- "@typescript-eslint"
9+
- sonarjs
10+
- security
11+
- react
12+
13+
extends:
14+
- eslint:recommended
15+
- plugin:@typescript-eslint/eslint-recommended
16+
- plugin:@typescript-eslint/recommended
17+
- plugin:sonarjs/recommended
18+
- plugin:react/recommended
19+
- plugin:security/recommended
20+
21+
parserOptions:
22+
ecmaVersion: 2018
23+
sourceType: module
24+
ecmaFeatures:
25+
jsx: true
26+
settings:
27+
react:
28+
version: detect
29+
30+
rules:
31+
# Ignore Rules
32+
strict: 0
33+
no-underscore-dangle: 0
34+
no-mixed-requires: 0
35+
no-process-exit: 0
36+
no-warning-comments: 0
37+
curly: 0
38+
no-multi-spaces: 0
39+
no-alert: 0
40+
consistent-return: 0
41+
consistent-this: [0, self]
42+
func-style: 0
43+
max-nested-callbacks: 0
44+
camelcase: 0
45+
46+
# Warnings
47+
no-debugger: 1
48+
no-empty: 1
49+
no-invalid-regexp: 1
50+
no-unused-expressions: 0
51+
no-native-reassign: 1
52+
no-fallthrough: 1
53+
sonarjs/cognitive-complexity: 1
54+
55+
# Errors
56+
eqeqeq: 2
57+
no-undef: 2
58+
no-dupe-keys: 2
59+
no-empty-character-class: 2
60+
no-self-compare: 2
61+
valid-typeof: 2
62+
no-unused-vars: [2, { "args": "none" }]
63+
handle-callback-err: 2
64+
no-shadow-restricted-names: 2
65+
no-new-require: 2
66+
no-mixed-spaces-and-tabs: 2
67+
block-scoped-var: 2
68+
no-else-return: 2
69+
no-throw-literal: 2
70+
no-void: 2
71+
radix: 2
72+
wrap-iife: [2, outside]
73+
no-shadow: 0
74+
no-path-concat: 2
75+
valid-jsdoc: [0, {requireReturn: false, requireParamDescription: false, requireReturnDescription: false}]
76+
77+
# stylistic errors
78+
no-spaced-func: 2
79+
semi-spacing: 2
80+
quotes: [2, 'single']
81+
key-spacing: [2, { beforeColon: false, afterColon: true }]
82+
indent: [2, 2]
83+
no-lonely-if: 2
84+
no-floating-decimal: 2
85+
brace-style: [2, 1tbs, { allowSingleLine: true }]
86+
comma-style: [2, last]
87+
no-multiple-empty-lines: [2, {max: 1}]
88+
no-nested-ternary: 2
89+
operator-assignment: [2, always]
90+
padded-blocks: [2, never]
91+
quote-props: [2, as-needed]
92+
keyword-spacing: [2, {'before': true, 'after': true, 'overrides': {}}]
93+
space-before-blocks: [2, always]
94+
array-bracket-spacing: [2, never]
95+
computed-property-spacing: [2, never]
96+
space-in-parens: [2, never]
97+
space-unary-ops: [2, {words: true, nonwords: false}]
98+
wrap-regex: 2
99+
linebreak-style: 0
100+
semi: [2, always]
101+
arrow-spacing: [2, {before: true, after: true}]
102+
no-class-assign: 2
103+
no-const-assign: 2
104+
no-dupe-class-members: 2
105+
no-this-before-super: 2
106+
no-var: 2
107+
object-shorthand: [2, always]
108+
prefer-arrow-callback: 2
109+
prefer-const: 2
110+
prefer-spread: 2
111+
prefer-template: 2
112+
113+
# React
114+
react/jsx-uses-react: off
115+
react/react-in-jsx-scope: off
116+
117+
# TypeScript
118+
"@typescript-eslint/no-empty-interface": "off"
119+
# disable JS rule
120+
no-use-before-define: "off"
121+
"@typescript-eslint/no-use-before-define": ["error"]
122+
"@typescript-eslint/no-empty-function": "off"
123+
"@typescript-eslint/ban-ts-comment": "off"
124+
"@typescript-eslint/no-explicit-any": "off"
125+
"@typescript-eslint/explicit-module-boundary-types": "off"
126+
"@typescript-eslint/no-this-alias": "off"
127+
128+
overrides:
129+
- files:
130+
- "*.spec.ts"
131+
- "*.spec.tsx"
132+
- "*.test.ts"
133+
- "*.test.tsx"
134+
rules:
135+
no-undef: "off"
136+
no-console: "off"
137+
prefer-arrow-callback: 0
138+
sonarjs/no-duplicate-string: 0
139+
security/detect-object-injection: 0

.eslintrc.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
1-
node_modules
2-
.next
3-
cache/*
4-
!cache/.gitkeep
5-
.env
6-
src/pages/_plugins/*
7-
!src/pages/_plugins/[...].js
8-
config/ui.json
1+
/node_modules
2+
.vscode/

.sonarcloud.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Disable specific file since it would introduce more complexity to reduce it - mainly code complexity and complex template literals
2+
sonar.exclusions=public/js/monaco/**
3+
# Disable duplicate code in tests since it would introduce more complexity to reduce it.
4+
sonar.cpd.exclusions=public/js/monaco/**

CHECKS

Lines changed: 0 additions & 3 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 21 deletions
This file was deleted.

Dockerfile-dev

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)