Skip to content

Commit 14c679d

Browse files
committed
feat(logging): added basic lerna package for the logging module
1 parent cdd1d1a commit 14c679d

20 files changed

+12972
-604
lines changed

.eslintrc.js

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
module.exports = {
22
env: {
3-
"jest": true,
4-
"browser": false,
5-
"node": true,
6-
"es2020": true
3+
'jest': true,
4+
'browser': false,
5+
'node': true,
6+
'es2020': true
77
},
8-
parser: "@typescript-eslint/parser",
8+
parser: '@typescript-eslint/parser',
99
extends: [
10-
"plugin:@typescript-eslint/eslint-recommended",
11-
"plugin:@typescript-eslint/recommended"
10+
'plugin:@typescript-eslint/eslint-recommended',
11+
'plugin:@typescript-eslint/recommended'
1212
],
13-
plugins: [ "@typescript-eslint" ],
13+
plugins: ['@typescript-eslint'],
1414
rules: {
15-
"no-console": 0,
16-
"semi": [ "error", "never"],
17-
"newline-before-return": 2,
18-
"indent": ["error", 2, { "SwitchCase": 1 }],
19-
"quotes": [ "error", "single", { "allowTemplateLiterals": true } ],
20-
"object-curly-spacing": [ "error", "always" ],
21-
"array-bracket-spacing": [ "error", "always", { "singleValue": false } ],
22-
"arrow-body-style": [ "error", "as-needed" ],
23-
"computed-property-spacing": [ "error", "never" ],
24-
"no-multiple-empty-lines": [ "error", { "max": 1, "maxBOF": 0 } ],
25-
"prefer-arrow-callback": "error",
26-
"func-style": [ "warn", "expression" ],
27-
"no-multi-spaces": [ "error", { "ignoreEOLComments": false } ],
28-
"keyword-spacing": "error",
29-
"@typescript-eslint/semi": ["error", "never"],
30-
"@typescript-eslint/indent": ["error", 2, { "SwitchCase": 1 }],
31-
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
32-
"@typescript-eslint/member-delimiter-style": ["error", { "multiline": { "delimiter": "none" } }],
33-
"@typescript-eslint/interface-name-prefix": [ "off" ],
34-
"@typescript-eslint/camelcase": [ "off" ],
35-
"@typescript-eslint/no-use-before-define": [ "off" ],
36-
"@typescript-eslint/ban-ts-ignore": [ "off" ],
37-
"@typescript-eslint/no-inferrable-types": [ "off" ],
38-
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
39-
"@typescript-eslint/no-explicit-any": "error",
40-
"@typescript-eslint/explicit-member-accessibility": "error"
15+
'no-console': 0,
16+
'semi': [ 'error', 'always' ],
17+
'newline-before-return': 2,
18+
'indent': [ 'error', 2, { 'SwitchCase': 1 } ],
19+
'quotes': [ 'error', 'single', { 'allowTemplateLiterals': true } ],
20+
'object-curly-spacing': [ 'error', 'always' ],
21+
'array-bracket-spacing': [ 'error', 'always', { 'singleValue': false } ],
22+
'arrow-body-style': [ 'error', 'as-needed' ],
23+
'computed-property-spacing': [ 'error', 'never' ],
24+
'no-multiple-empty-lines': [ 'error', { 'max': 1, 'maxBOF': 0 } ],
25+
'prefer-arrow-callback': 'error',
26+
'func-style': [ 'warn', 'expression' ],
27+
'no-multi-spaces': [ 'error', { 'ignoreEOLComments': false } ],
28+
'keyword-spacing': 'error',
29+
'@typescript-eslint/semi': [ 'error', 'always' ],
30+
'@typescript-eslint/indent': [ 'error', 2, { 'SwitchCase': 1 } ],
31+
'@typescript-eslint/explicit-function-return-type': [ 'error', { 'allowExpressions': true } ],
32+
'@typescript-eslint/member-delimiter-style': [ 'error', { 'multiline': { 'delimiter': 'none' } } ],
33+
'@typescript-eslint/interface-name-prefix': ['off'],
34+
'@typescript-eslint/camelcase': ['off'],
35+
'@typescript-eslint/no-use-before-define': ['off'],
36+
'@typescript-eslint/ban-ts-ignore': ['off'],
37+
'@typescript-eslint/no-inferrable-types': ['off'],
38+
'@typescript-eslint/no-unused-vars': [ 'error', { 'argsIgnorePattern': '^_' } ],
39+
'@typescript-eslint/no-explicit-any': 'error',
40+
'@typescript-eslint/explicit-member-accessibility': 'error'
4141
}
4242
};

.github/workflows/test.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Install modules
14-
run: npm install
13+
- name: Install Lerna
14+
run: npm install -g [email protected]
15+
- name: Install packages
16+
run: lerna exec -- npm install
1517
- name: Run lint
16-
run: npm run lint
18+
run: lerna exec -- npm run lint
1719
- name: Run tests
18-
run: npm run test
20+
run: lerna exec -- npm run test
1921
- name: Report Coverage
2022
if: ${{ github.event_name == 'pull_request' }}
2123
uses: romeovs/[email protected]

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules
2-
/lib
3-
/coverage
2+
lib
3+
coverage
44
.idea/

commitlint.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
extends: ["@commitlint/config-conventional"]
2+
extends: ['@commitlint/config-conventional']
33
};

jestconfig-pr.js

-22
This file was deleted.

jestconfig.js

-24
This file was deleted.

lerna.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "0.0.0",
6+
"npmClient": "npm"
7+
}

0 commit comments

Comments
 (0)