Skip to content

Commit e4c115d

Browse files
committed
style: Update
1 parent 65e52b8 commit e4c115d

File tree

567 files changed

+11889
-11984
lines changed

Some content is hidden

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

567 files changed

+11889
-11984
lines changed

.commitlintrc.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional'],
3-
rules: {
4-
'subject-case': [2, 'always', ['sentence-case']],
5-
'scope-case': [2, 'always', ['lower-case', 'upper-case']],
6-
'body-max-line-length': [1, 'never'],
7-
'footer-max-line-length': [1, 'never'],
8-
},
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'subject-case': [2, 'always', ['sentence-case']],
5+
'scope-case': [2, 'always', ['lower-case', 'upper-case']],
6+
'body-max-line-length': [1, 'never'],
7+
'footer-max-line-length': [1, 'never'],
8+
},
99
};

.cz-config.js

+65-65
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
module.exports = {
2-
types: [
3-
{ value: 'feat', name: 'feat: A new feature' },
4-
{ value: 'fix', name: 'fix: A bug fix' },
5-
{ value: 'docs', name: 'docs: Documentation only changes' },
6-
{
7-
value: 'style',
8-
name: 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)',
9-
},
10-
{
11-
value: 'refactor',
12-
name: 'refactor: A code change that neither fixes a bug nor adds a feature',
13-
},
14-
{
15-
value: 'perf',
16-
name: 'perf: A code change that improves performance',
17-
},
18-
{ value: 'test', name: 'test: Adding missing tests' },
19-
{
20-
value: 'ci',
21-
name: 'ci: Changes related to continious integration',
22-
},
23-
{ value: 'build', name: 'build: Changes related to build process' },
24-
{
25-
value: 'chore',
26-
name: 'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation',
27-
},
28-
{ value: 'revert', name: 'revert: Revert to a commit' },
29-
{ value: 'WIP', name: 'WIP: Work in progress' },
30-
],
2+
types: [
3+
{ value: 'feat', name: 'feat: A new feature' },
4+
{ value: 'fix', name: 'fix: A bug fix' },
5+
{ value: 'docs', name: 'docs: Documentation only changes' },
6+
{
7+
value: 'style',
8+
name: 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)',
9+
},
10+
{
11+
value: 'refactor',
12+
name: 'refactor: A code change that neither fixes a bug nor adds a feature',
13+
},
14+
{
15+
value: 'perf',
16+
name: 'perf: A code change that improves performance',
17+
},
18+
{ value: 'test', name: 'test: Adding missing tests' },
19+
{
20+
value: 'ci',
21+
name: 'ci: Changes related to continious integration',
22+
},
23+
{ value: 'build', name: 'build: Changes related to build process' },
24+
{
25+
value: 'chore',
26+
name: 'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation',
27+
},
28+
{ value: 'revert', name: 'revert: Revert to a commit' },
29+
{ value: 'WIP', name: 'WIP: Work in progress' },
30+
],
3131

32-
scopes: [
33-
{ name: 'hide field' },
34-
{ name: 'configuration' },
35-
{ name: 'custom decorators' },
36-
{ name: 'compatibility' },
37-
{ name: 'mongodb' },
38-
{ name: 'other' },
39-
],
32+
scopes: [
33+
{ name: 'hide field' },
34+
{ name: 'configuration' },
35+
{ name: 'custom decorators' },
36+
{ name: 'compatibility' },
37+
{ name: 'mongodb' },
38+
{ name: 'other' },
39+
],
4040

41-
allowTicketNumber: false,
42-
isTicketNumberRequired: false,
43-
ticketNumberPrefix: '#',
44-
ticketNumberRegExp: '\\d{1,5}',
41+
allowTicketNumber: false,
42+
isTicketNumberRequired: false,
43+
ticketNumberPrefix: '#',
44+
ticketNumberRegExp: '\\d{1,5}',
4545

46-
// it needs to match the value for field type. Eg.: 'fix'
47-
/*
46+
// it needs to match the value for field type. Eg.: 'fix'
47+
/*
4848
scopeOverrides: {
4949
fix: [
5050
@@ -55,28 +55,28 @@ module.exports = {
5555
]
5656
},
5757
*/
58-
// override the messages, defaults are as follows
59-
messages: {
60-
type: "Select the type of change that you're committing:",
61-
scope: '\nDenote the SCOPE of this change (optional):',
62-
// used if allowCustomScopes is true
63-
customScope: 'Denote the SCOPE of this change:',
64-
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
65-
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
66-
breaking: 'List any BREAKING CHANGES (optional):\n',
67-
footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
68-
confirmCommit: 'Are you sure you want to proceed with the commit above?',
69-
},
58+
// override the messages, defaults are as follows
59+
messages: {
60+
type: "Select the type of change that you're committing:",
61+
scope: '\nDenote the SCOPE of this change (optional):',
62+
// used if allowCustomScopes is true
63+
customScope: 'Denote the SCOPE of this change:',
64+
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
65+
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
66+
breaking: 'List any BREAKING CHANGES (optional):\n',
67+
footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
68+
confirmCommit: 'Are you sure you want to proceed with the commit above?',
69+
},
7070

71-
allowCustomScopes: true,
72-
allowBreakingChanges: ['feat', 'fix', 'refactor', 'chore'],
73-
// skip any questions you want
74-
skipQuestions: ['body'],
71+
allowCustomScopes: true,
72+
allowBreakingChanges: ['feat', 'fix', 'refactor', 'chore'],
73+
// skip any questions you want
74+
skipQuestions: ['body'],
7575

76-
// limit subject length
77-
subjectLimit: 100,
78-
// breaklineChar: '|', // It is supported for fields body and footer.
79-
footerPrefix: 'close:',
80-
// askForBreakingChangeFirst : true, // default is false
81-
upperCaseSubject: true,
76+
// limit subject length
77+
subjectLimit: 100,
78+
// breaklineChar: '|', // It is supported for fields body and footer.
79+
footerPrefix: 'close:',
80+
// askForBreakingChangeFirst : true, // default is false
81+
upperCaseSubject: true,
8282
};

.eslintrc.js

+113-113
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,120 @@
11
module.exports = {
2-
root: true,
3-
env: {
4-
es6: true,
5-
node: true,
6-
browser: true,
2+
root: true,
3+
env: {
4+
es6: true,
5+
node: true,
6+
browser: true,
7+
},
8+
extends: [
9+
'eslint:recommended',
10+
'plugin:@typescript-eslint/recommended',
11+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
12+
'plugin:unicorn/recommended',
13+
'plugin:import/warnings',
14+
'plugin:regexp/recommended',
15+
],
16+
parser: '@typescript-eslint/parser',
17+
parserOptions: {
18+
project: 'tsconfig.json',
19+
sourceType: 'module',
20+
ecmaFeatures: {
21+
jsx: false,
722
},
8-
extends: [
9-
'eslint:recommended',
10-
'plugin:@typescript-eslint/recommended',
11-
'plugin:@typescript-eslint/recommended-requiring-type-checking',
12-
'plugin:unicorn/recommended',
13-
'plugin:import/warnings',
14-
'plugin:regexp/recommended',
15-
],
16-
parser: '@typescript-eslint/parser',
17-
parserOptions: {
18-
project: 'tsconfig.json',
19-
sourceType: 'module',
20-
ecmaFeatures: {
21-
jsx: false,
23+
warnOnUnsupportedTypeScriptVersion: false,
24+
},
25+
plugins: [
26+
'unicorn',
27+
'import',
28+
'wix-editor',
29+
'@typescript-eslint',
30+
'prettier',
31+
'simple-import-sort',
32+
'sort-class-members',
33+
'etc',
34+
'only-warn',
35+
],
36+
rules: {
37+
// core
38+
'consistent-return': [0, { treatUndefinedAsUnspecified: false }],
39+
quotes: [1, 'single', { allowTemplateLiterals: true, avoidEscape: true }],
40+
semi: [1, 'always'],
41+
'max-lines': [1, { max: 300 }],
42+
'max-params': [1, { max: 5 }],
43+
'no-unneeded-ternary': [1],
44+
// wix-editor
45+
'wix-editor/no-instanceof-array': 1,
46+
'wix-editor/no-not-not': 1,
47+
'wix-editor/no-unneeded-match': 1,
48+
'wix-editor/prefer-filter': 1,
49+
'wix-editor/prefer-ternary': 1,
50+
'wix-editor/return-boolean': 1,
51+
'wix-editor/simplify-boolean-expression': 1,
52+
// unicorn
53+
'unicorn/prefer-spread': 0,
54+
'unicorn/catch-error-name': 0,
55+
'unicorn/prefer-node-protocol': 0,
56+
'unicorn/prevent-abbreviations': [
57+
1,
58+
{
59+
replacements: {
60+
args: false,
61+
err: false,
62+
prod: false,
63+
ref: false,
64+
params: false,
2265
},
23-
warnOnUnsupportedTypeScriptVersion: false,
24-
},
25-
plugins: [
26-
'unicorn',
27-
'import',
28-
'wix-editor',
29-
'@typescript-eslint',
30-
'prettier',
31-
'simple-import-sort',
32-
'sort-class-members',
33-
'etc',
34-
'only-warn',
66+
},
3567
],
36-
rules: {
37-
// core
38-
'consistent-return': [0, { treatUndefinedAsUnspecified: false }],
39-
quotes: [1, 'single', { allowTemplateLiterals: true, avoidEscape: true }],
40-
semi: [1, 'always'],
41-
'max-lines': [1, { max: 300 }],
42-
'max-params': [1, { max: 5 }],
43-
'no-unneeded-ternary': [1],
44-
// wix-editor
45-
'wix-editor/no-instanceof-array': 1,
46-
'wix-editor/no-not-not': 1,
47-
'wix-editor/no-unneeded-match': 1,
48-
'wix-editor/prefer-filter': 1,
49-
'wix-editor/prefer-ternary': 1,
50-
'wix-editor/return-boolean': 1,
51-
'wix-editor/simplify-boolean-expression': 1,
52-
// unicorn
53-
'unicorn/prefer-spread': 0,
54-
'unicorn/catch-error-name': 0,
55-
'unicorn/prefer-node-protocol': 0,
56-
'unicorn/prevent-abbreviations': [
57-
1,
58-
{
59-
replacements: {
60-
args: false,
61-
err: false,
62-
prod: false,
63-
ref: false,
64-
params: false,
65-
},
66-
},
67-
],
68-
// import
69-
'import/max-dependencies': [1, { max: 15 }],
70-
// simple-import-sort with recomended settings
71-
'simple-import-sort/imports': 1,
72-
'sort-imports': 'off',
73-
'import/order': 'off',
74-
// typescript-eslint
75-
'@typescript-eslint/no-floating-promises': 1,
76-
'@typescript-eslint/no-unnecessary-condition': 1,
77-
'@typescript-eslint/explicit-module-boundary-types': 0,
78-
'@typescript-eslint/unbound-method': 0,
79-
// sort-class-members
80-
'sort-class-members/sort-class-members': [
81-
1,
82-
{
83-
order: [
84-
'[static-properties]',
85-
'[static-methods]',
86-
'[properties]',
87-
'[conventional-private-properties]',
88-
'constructor',
89-
'[methods]',
90-
'[conventional-private-methods]',
91-
],
92-
accessorPairPositioning: 'getThenSet',
93-
},
68+
// import
69+
'import/max-dependencies': [1, { max: 15 }],
70+
// simple-import-sort with recomended settings
71+
'simple-import-sort/imports': 1,
72+
'sort-imports': 'off',
73+
'import/order': 'off',
74+
// typescript-eslint
75+
'@typescript-eslint/no-floating-promises': 1,
76+
'@typescript-eslint/no-unnecessary-condition': 1,
77+
'@typescript-eslint/explicit-module-boundary-types': 0,
78+
'@typescript-eslint/unbound-method': 0,
79+
// sort-class-members
80+
'sort-class-members/sort-class-members': [
81+
1,
82+
{
83+
order: [
84+
'[static-properties]',
85+
'[static-methods]',
86+
'[properties]',
87+
'[conventional-private-properties]',
88+
'constructor',
89+
'[methods]',
90+
'[conventional-private-methods]',
9491
],
95-
// etc
96-
'etc/no-deprecated': 1,
97-
'etc/no-assign-mutated-array': 1,
98-
},
99-
overrides: [
100-
{
101-
files: ['*.spec.ts', '**/{test,@generated}/**/*.ts'],
102-
rules: {
103-
'consistent-return': 0,
104-
'max-lines': 0,
105-
'regexp/strict': 0,
106-
'@typescript-eslint/no-misused-promises': 0,
107-
'@typescript-eslint/no-explicit-any': 0,
108-
'@typescript-eslint/no-unsafe-member-access': 0,
109-
'@typescript-eslint/no-floating-promises': 0,
110-
'@typescript-eslint/no-non-null-assertion': 0,
111-
'@typescript-eslint/camelcase': 0,
112-
'@typescript-eslint/no-unsafe-assignment': 0,
113-
'@typescript-eslint/no-unused-vars': 0,
114-
'@typescript-eslint/no-unsafe-return': 0,
115-
'@typescript-eslint/no-non-null-asserted-optional-chain': 0,
116-
'import/max-dependencies': 0,
117-
},
118-
},
92+
accessorPairPositioning: 'getThenSet',
93+
},
11994
],
95+
// etc
96+
'etc/no-deprecated': 1,
97+
'etc/no-assign-mutated-array': 1,
98+
},
99+
overrides: [
100+
{
101+
files: ['*.spec.ts', '**/{test,@generated}/**/*.ts'],
102+
rules: {
103+
'consistent-return': 0,
104+
'max-lines': 0,
105+
'regexp/strict': 0,
106+
'@typescript-eslint/no-misused-promises': 0,
107+
'@typescript-eslint/no-explicit-any': 0,
108+
'@typescript-eslint/no-unsafe-member-access': 0,
109+
'@typescript-eslint/no-floating-promises': 0,
110+
'@typescript-eslint/no-non-null-assertion': 0,
111+
'@typescript-eslint/camelcase': 0,
112+
'@typescript-eslint/no-unsafe-assignment': 0,
113+
'@typescript-eslint/no-unused-vars': 0,
114+
'@typescript-eslint/no-unsafe-return': 0,
115+
'@typescript-eslint/no-non-null-asserted-optional-chain': 0,
116+
'import/max-dependencies': 0,
117+
},
118+
},
119+
],
120120
};

0 commit comments

Comments
 (0)