Skip to content

Commit f363505

Browse files
authored
Console refresh (#843)
* Console refresh Signed-off-by: Jason Porter <[email protected]> * linting Signed-off-by: Jason Porter <[email protected]> * Fixed jest config Signed-off-by: Jason Porter <[email protected]> * Updated README Signed-off-by: Jason Porter <[email protected]> * Fixed package vulnerabilities Signed-off-by: Jason Porter <[email protected]> * Upgrading protobufjs Signed-off-by: Jason Porter <[email protected]> * Trying protobuf fix again Signed-off-by: Jason Porter <[email protected]> * Trying protobuf fix again+1 Signed-off-by: Jason Porter <[email protected]> * now fixing semver Signed-off-by: Jason Porter <[email protected]> * Updated README, removed unused env vars Signed-off-by: Jason Porter <[email protected]> --------- Signed-off-by: Jason Porter <[email protected]>
1 parent a162fb0 commit f363505

File tree

1,483 files changed

+62194
-94829
lines changed

Some content is hidden

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

1,483 files changed

+62194
-94829
lines changed

.dockerignore

+33-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
1+
# Packages
2+
bin/
3+
build/
4+
dist/
5+
lib/
16

2-
# *
3-
# !package.json
4-
# !yarn.lock
5-
# !packages/
6-
# !node_modules/
7-
# !jes
8-
.storybook/
9-
stories-intro/
10-
Dockerfile*
11-
.dockerignore
12-
README*
7+
# yarn related
8+
node_modules/**
9+
.pnp.*
10+
**/.yarn/*
11+
!**/.yarn/plugins
12+
!**/.yarn/releases
13+
!**/.yarn/sdks
14+
!**/.yarn/versions
15+
# patches contain the patchfiles which have been generated with the `yarn patch-commit` command.
16+
# We always want them in repository, since they are necessary to install dependencies.
17+
!.yarn/patches
18+
19+
# results of tsc build
20+
tsconfig.tsbuildinfo
21+
22+
# result of linting
23+
.eslintcache
24+
25+
#coverage
26+
.coverage
27+
28+
# misc
29+
.DS_Store
30+
.srl
31+
yarn-error.log
32+
33+
# generated data
34+
certificate

.eslintignore

+17-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
LICENSE
2-
src/generated/
3-
.github/
4-
.dist/
1+
# ignore infrastracture
2+
node_modules/
3+
bin/
4+
build/
55
dist/
66
lib/
7-
node_modules/
87
tsd/
9-
webpack.common.config.ts
10-
webpack.dev.config.ts
11-
webpack.prod.config.ts
8+
9+
# generated files
10+
generated/
11+
gen/
12+
13+
# webpack settings
14+
webpack.*
15+
16+
# Storybook md pages
17+
stories-intro/
18+
19+
# package generator
20+
scripts/generator

.eslintrc.js

+73-90
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
/** @type {import('eslint').Linter.Config} */
12
module.exports = {
2-
root: true,
33
env: {
44
browser: true,
55
es2021: true,
66
jest: true,
77
},
8+
root: true,
89
globals: {
910
// global variables, that should be assumed by eslint as defined
1011
JSX: true,
1112
RequiredNonNullable: true,
1213
Dictionary: true,
14+
NodeJS: true,
1315
},
1416
parser: '@typescript-eslint/parser',
1517
parserOptions: {
@@ -20,101 +22,89 @@ module.exports = {
2022
sourceType: 'module',
2123
},
2224
extends: ['plugin:react/recommended', 'airbnb', 'prettier'],
23-
plugins: ['react', '@typescript-eslint'],
25+
plugins: ['custom-rules', 'react', '@typescript-eslint', 'import'],
2426
settings: {
2527
'import/resolver': {
2628
node: {
2729
extensions: ['.js', '.jsx', '.ts', '.tsx'],
2830
},
2931
},
32+
'import/core-modules': [
33+
'@clients/locale',
34+
'@clients/ui-atoms',
35+
'@clients/primitives',
36+
'@clients/theme',
37+
'@clients/common',
38+
'@clients/db',
39+
],
3040
},
3141
rules: {
32-
/**
33-
* Rules we don't want to be enabled
34-
* "off" or 0: turn off the rule completely; "warn" or 1; "error" or 2
35-
*/
42+
// "off" or 0 - turn the rule off; "warn" or 1; "error" or 2
3643
'arrow-body-style': 'off',
37-
'import/extensions': 'off',
38-
'import/no-unresolved': 'off',
39-
'import/prefer-default-export': 'off',
40-
'react/jsx-boolean-value': 'off',
41-
'react/jsx-filename-extension': [2, { extensions: ['.jsx', '.tsx'] }],
42-
'lines-between-class-members': [
44+
'consistent-return': 'off',
45+
'no-use-before-define': 'warn',
46+
'no-shadow': 'off',
47+
'no-nested-ternary': 'off',
48+
'no-unused-vars': 'off',
49+
'no-redeclare': 'off',
50+
'prefer-destructuring': 'warn',
51+
'prefer-promise-reject-errors': 'warn',
52+
'no-restricted-syntax': 'warn',
53+
'guard-for-in': 'warn',
54+
'no-param-reassign': 'warn',
55+
'no-unused-expressions': 'warn',
56+
'no-continue': 'warn',
57+
'no-restricted-globals': 'warn',
58+
'default-case': 'warn',
59+
'no-underscore-dangle': 'warn',
60+
'no-return-assign': 'warn',
61+
'no-throw-literal': 'warn',
62+
63+
'no-restricted-imports': [
4364
'error',
44-
'always',
45-
{ exceptAfterSingleLine: true },
65+
{
66+
patterns: [
67+
{
68+
group: ['@mui/styles', '@naterial/styles'],
69+
importNames: ['makeStyles'],
70+
message:
71+
"MUIv5 styles are incompatible with JSS, use 'styled' pattern or 'sx' prop instead.",
72+
},
73+
],
74+
},
4675
],
76+
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
4777

78+
// typescript specific
79+
'@typescript-eslint/no-shadow': 'off',
4880
// disabled to let "@typescript-eslint/*" rules do it's job
49-
'no-unused-vars': 'off',
5081
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
51-
'no-redeclare': 'off',
52-
'@typescript-eslint/no-redeclare': [
53-
'warn',
54-
{ ignoreDeclarationMerge: true },
55-
], // still will warn on exporting enums :(
56-
57-
/**
58-
* Up for discussion
59-
* */
60-
'react/function-component-definition': 'off',
61-
'react/destructuring-assignment': 'off',
62-
63-
/**
64-
* temporarily off or warn
65-
* */
66-
// some setup of eslint or prettier needed
67-
'import/no-extraneous-dependencies': 'off', // 715 - !important
68-
'react/jsx-props-no-spreading': 'off', // 119
82+
'@typescript-eslint/no-redeclare': ['warn', { ignoreDeclarationMerge: true }], // still will warn on exporting enums :(
6983

7084
// classic
71-
'no-use-before-define': 'off', // 49
72-
'no-shadow': 'off', // 104
73-
'no-param-reassign': 'off', // 28
74-
'no-unused-expressions': 'warn', // 5
75-
'prefer-destructuring': 'off', // 34
76-
'no-empty-function': 'off',
77-
'no-useless-constructor': 'warn', // 1
78-
'no-useless-computed-key': 'off',
79-
'no-restricted-syntax': 'off',
80-
'no-else-return': 'off',
8185
'no-plusplus': 'off',
82-
'no-var': 'off',
83-
'no-continue': 'off',
84-
'no-unsafe-optional-chaining': 'off',
85-
'no-throw-literal': 'off',
86-
'no-lonely-if': 'off',
87-
'no-useless-return': 'off',
88-
'no-return-await': 'off',
89-
'no-nested-ternary': 'off',
90-
'no-restricted-globals': 'off',
91-
'no-return-assign': 'off',
92-
'no-await-in-loop': 'off',
93-
'no-undef-init': 'off',
94-
'no-unneeded-ternary': 'off',
95-
'no-underscore-dangle': 'off',
96-
'prefer-object-spread': 'off',
97-
'prefer-template': 'off',
98-
'default-case': 'off',
99-
'valid-typeof': 'off',
100-
'object-shorthand': 'off',
101-
'operator-assignment': 'off',
10286
'array-callback-return': 'off',
103-
'global-require': 'off',
104-
'dot-notation': 'off',
105-
'guard-for-in': 'off',
106-
'one-var': 'off',
107-
'vars-on-top': 'off',
108-
'consistent-return': 'off',
109-
'prefer-promise-reject-errors': 'off',
110-
'prefer-arrow-callback': 'off',
111-
'func-names': 'off',
112-
eqeqeq: 'warn', // 12
113-
11487
// import
115-
'import/no-dynamic-require': 'warn', // 1
88+
'import/extensions': 'off',
89+
'import/prefer-default-export': 'off',
90+
'import/no-extraneous-dependencies': 'off',
91+
'import/no-cycle': 2,
92+
'import/no-unresolved': 'off',
93+
'import/no-unused-modules': [1, { unusedExports: true }],
94+
95+
// up for discussion
96+
'react/function-component-definition': 'off',
97+
eqeqeq: 'warn', // 12
11698

11799
// react
100+
'react/destructuring-assignment': 'off',
101+
'react/jsx-props-no-spreading': 'off',
102+
'react/jsx-filename-extension': [
103+
2,
104+
{
105+
extensions: ['.jsx', '.tsx'],
106+
},
107+
],
118108
'react/button-has-type': 'off', // 5
119109
'react/jsx-no-useless-fragment': 'off', // 15
120110
'react/no-access-state-in-setstate': 'warn', // 2
@@ -136,32 +126,25 @@ module.exports = {
136126
'jsx-a11y/no-noninteractive-element-interactions': 'off', // 1
137127
'jsx-a11y/click-events-have-key-events': 'off', // 7
138128
'jsx-a11y/no-static-element-interactions': 'off', // 6
129+
'jsx-a11y/control-has-associated-label': 'warn',
130+
131+
// custom-rules
132+
'custom-rules/enforce-path': 'error',
139133
},
140134
overrides: [
141135
{
142136
// overrides for test files
143-
files: [
144-
'*.spec.*',
145-
'*.test.*',
146-
'*.stories.*',
147-
'src/**/test/*',
148-
'src/**/mocks/*',
149-
],
137+
files: ['*.spec.*', '*.test.*', 'scripts/*'],
150138
rules: {
151-
camelcase: 'off',
152139
'@typescript-eslint/no-explicit-any': 'off',
153140
'import/no-extraneous-dependencies': 'off',
154-
'no-console': 'off',
155-
156-
'jsx-a11y/aria-role': 'off',
157-
'jsx-a11y/control-has-associated-label': 'off',
158141
},
159142
},
160143
{
161-
// rules which not make sense for TS files
162-
files: ['*.ts', '*.tsx'],
144+
// overrides for test files
145+
files: ['*.json'],
163146
rules: {
164-
'no-undef': 'off',
147+
bracketSpacing: 2,
165148
},
166149
},
167150
],

.gitignore

+20-55
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,18 @@
1-
.env
2-
*.swp
3-
# direnv
4-
.envrc
5-
6-
# C extensions
7-
*.so
8-
9-
# Snyk
10-
.dccache
11-
121
# Packages
132
bin/
143
build/
154
dist/
16-
downloads/
17-
env/
185
lib/
19-
lib64/
20-
parts/
21-
sdist/
22-
var/
23-
24-
# Translations
25-
*.mo
26-
27-
# build packages or files that shouldn't be in repo
28-
node_modules
29-
bower_components
30-
.sass-cache
31-
.tmp
32-
app/public/dist
33-
app/public/styles/*.css
34-
35-
# Mr Developer (mac, editor, IDEs, etc)
36-
.mr.developer.cfg
37-
.project
38-
.pydevproject
39-
.vagrant
40-
.ropeproject
41-
.tmp
42-
.sass-cache
43-
.DS_Store
44-
.zedstate
45-
.idea
46-
.cache/
47-
venv/
48-
*.tsbuildinfo
49-
*.log
50-
**.orig
516

52-
# Frontend
53-
.awcache/
54-
.dist/
55-
npm-debug.log
56-
jest
57-
jest_0
58-
.coverage/
7+
# git
8+
!.vscode/
599

6010
# yarn related
6111
node_modules
6212
.pnp.*
6313
*.yalc
6414
yalc.lock
6515
**/.yarn/*
66-
yarn-error.log
6716
!**/.yarn/plugins
6817
!**/.yarn/releases
6918
!**/.yarn/sdks
@@ -72,6 +21,22 @@ yarn-error.log
7221
# We always want them in repository, since they are necessary to install dependencies.
7322
!.yarn/patches
7423

75-
# Certs
24+
# results of tsc build
25+
*.tsbuildinfo
26+
27+
# result of linting
28+
.eslintcache
29+
30+
#coverage
31+
.coverage
32+
.jest-cache
33+
34+
# misc
35+
.DS_Store
7636
.srl
77-
certificate/
37+
yarn-error.log
38+
.dccache
39+
40+
# generated data
41+
certificate
42+
.env

0 commit comments

Comments
 (0)