Skip to content

Commit de92127

Browse files
refactor(Lumi): completely rebuild Lumi
1 parent e01651e commit de92127

File tree

2,533 files changed

+72703
-215635
lines changed

Some content is hidden

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

2,533 files changed

+72703
-215635
lines changed

Diff for: .dcignore

-1
This file was deleted.

Diff for: .editorconfig

+3-18
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,9 @@
1-
# EditorConfig helps developers define and maintain consistent
2-
# coding styles between different editors and IDEs
3-
# http://editorconfig.org
4-
51
root = true
62

73
[*]
8-
# Change these settings to your own preference
9-
indent_style = space
10-
indent_size = 4
11-
12-
[package.json]
13-
# Change these settings to your own preference
14-
indent_style = space
15-
indent_size = 4
16-
17-
# We recommend you to keep these unchanged
18-
end_of_line = lf
194
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 2
208
trim_trailing_whitespace = true
219
insert_final_newline = true
22-
23-
[*.md]
24-
trim_trailing_whitespace = false

Diff for: .eslintignore

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
test/data
2-
build
3-
reporter-client/build
4-
/*.js
5-
builder-configs
6-
/h5p
7-
/dist
8-
/scorm-client
9-
/scripts
10-
/test
11-
/server/__mocks__
1+
// .eslintignore
2+
build/*
3+
dist/*
4+
public/*
5+
**/out/*
6+
**/node_modules/*
7+
commitlint.config.js

Diff for: .eslintrc

+155
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"browser": true,
5+
"es2021": true
6+
},
7+
"plugins": [
8+
"perfectionist",
9+
"unused-imports",
10+
"@typescript-eslint",
11+
"prettier"
12+
],
13+
"extends": ["airbnb", "airbnb-typescript", "airbnb/hooks", "prettier"],
14+
"parser": "@typescript-eslint/parser",
15+
"parserOptions": {
16+
"ecmaVersion": "latest",
17+
"sourceType": "module",
18+
"ecmaFeatures": {
19+
"jsx": true
20+
},
21+
"project": "./tsconfig.json"
22+
},
23+
"settings": {
24+
"import/resolver": {
25+
"typescript": {
26+
"alwaysTryTypes": true
27+
}
28+
}
29+
},
30+
"rules": {
31+
"no-alert": 0,
32+
"camelcase": 0,
33+
"no-console": 0,
34+
"no-unused-vars": 0,
35+
"import/no-extraneous-dependencies": 0,
36+
"no-await-in-loop": 0,
37+
"no-param-reassign": 0,
38+
"no-underscore-dangle": 0,
39+
"import/no-cycle": 0,
40+
"no-restricted-exports": 0,
41+
"react/no-children-prop": 0,
42+
"react/react-in-jsx-scope": 0,
43+
"jsx-a11y/anchor-is-valid": 0,
44+
"react/no-array-index-key": 0,
45+
"no-promise-executor-return": 0,
46+
"react/require-default-props": 0,
47+
"@typescript-eslint/default-param-last": 0,
48+
"react/jsx-props-no-spreading": 0,
49+
"import/prefer-default-export": 0,
50+
"react/function-component-definition": 0,
51+
"@typescript-eslint/naming-convention": 0,
52+
"jsx-a11y/control-has-associated-label": 0,
53+
"@typescript-eslint/no-use-before-define": 0,
54+
"react/jsx-no-useless-fragment": [
55+
1,
56+
{
57+
"allowExpressions": true
58+
}
59+
],
60+
"prefer-destructuring": [
61+
1,
62+
{
63+
"object": true,
64+
"array": false
65+
}
66+
],
67+
"react/no-unstable-nested-components": [
68+
1,
69+
{
70+
"allowAsProps": true
71+
}
72+
],
73+
"@typescript-eslint/no-unused-vars": [
74+
1,
75+
{
76+
"args": "none"
77+
}
78+
],
79+
"react/jsx-no-duplicate-props": [
80+
1,
81+
{
82+
"ignoreCase": false
83+
}
84+
],
85+
// unused-imports
86+
// https://www.npmjs.com/package/eslint-plugin-unused-imports
87+
"unused-imports/no-unused-imports": 1,
88+
"unused-imports/no-unused-vars": [
89+
0,
90+
{
91+
"vars": "all",
92+
"varsIgnorePattern": "^_",
93+
"args": "after-used",
94+
"argsIgnorePattern": "^_"
95+
}
96+
],
97+
// perfectionist
98+
// https://eslint-plugin-perfectionist.azat.io/
99+
"perfectionist/sort-named-imports": [
100+
1,
101+
{
102+
"order": "asc",
103+
"type": "line-length"
104+
}
105+
],
106+
"perfectionist/sort-named-exports": [
107+
1,
108+
{
109+
"order": "asc",
110+
"type": "line-length"
111+
}
112+
],
113+
"perfectionist/sort-exports": [
114+
1,
115+
{
116+
"order": "asc",
117+
"type": "line-length"
118+
}
119+
],
120+
"perfectionist/sort-imports": [
121+
1,
122+
{
123+
"order": "asc",
124+
"type": "line-length",
125+
"newlines-between": "always",
126+
"groups": [
127+
["builtin", "external"],
128+
"custom-mui",
129+
"custom-routes",
130+
"custom-hooks",
131+
"custom-utils",
132+
"internal",
133+
"custom-components",
134+
"custom-sections",
135+
"custom-types",
136+
["parent", "sibling", "index"],
137+
"object",
138+
"unknown"
139+
],
140+
"custom-groups": {
141+
"value": {
142+
"custom-mui": "@mui/**",
143+
"custom-routes": "src/routes/**",
144+
"custom-hooks": "src/hooks/**",
145+
"custom-utils": "src/utils/**",
146+
"custom-components": "src/components/**",
147+
"custom-sections": "src/sections/**",
148+
"custom-types": "src/types/**"
149+
}
150+
},
151+
"internal-pattern": ["src/**"]
152+
}
153+
]
154+
}
155+
}

Diff for: .eslintrc.js

-83
This file was deleted.

0 commit comments

Comments
 (0)