Skip to content

Commit 737c033

Browse files
committed
build(dependencies): 📝 build update configuration
Removes Codacy integration adds markdownlint and remark.
1 parent 6b04b2b commit 737c033

31 files changed

+830
-150
lines changed

.codacy.yml

-25
This file was deleted.

.codeclimate.yml

+18-10
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,35 @@
11
version: '2'
2+
checks:
3+
method-complexity:
4+
config:
5+
threshold: 7
26
plugins:
7+
duplication:
8+
enabled: true
39
editorconfig:
410
enabled: true
5-
tslint:
6-
enabled: false
711
eslint:
812
enabled: true
13+
channel: "eslint-7"
914
config:
1015
config: .eslintrc-cc.json
16+
extensions:
17+
- .ts
18+
- .js
19+
- .mjs
1120
fixme:
1221
enabled: true
1322
git-legal:
1423
enabled: true
24+
markdownlint:
25+
enabled: true
26+
structure:
27+
enabled: true
1528
exclude_patterns:
1629
- '**/.github'
17-
- '**/.circleci'
30+
- '**/.husky'
1831
- '**/.vscode'
32+
- '**/fixtures'
1933
- '**/dist'
20-
- '**/temp'
2134
- '**/test'
22-
- '**/docs'
23-
- '**/node_modules/'
24-
- '**/src/*.spec.ts'
25-
- '**/fixtures'
26-
- '**/.husky'
27-
- '**/commitlint.config.js'
35+
- '**/node_modules'

.conventionalCommit.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"types": {
3+
"build": {
4+
"description": "Changes which affect CI configuration files and scripts"
5+
},
6+
"chore": {
7+
"description": "Changes which aren't user-facing"
8+
},
9+
"enh": {
10+
"description": "Changes which improve a feature"
11+
},
12+
"docs": {
13+
"description": "Changes which affect documentation"
14+
},
15+
"feat": {
16+
"description": "Changes which introduce a new feature"
17+
},
18+
"fix": {
19+
"description": "Changes which patch a bug"
20+
},
21+
"perf": {
22+
"description": "Changes which improve performance."
23+
},
24+
"refactor": {
25+
"description": "Changes which neither fix a bug nor add a feature"
26+
},
27+
"revert": {
28+
"description": "Changes which revert a previous commit"
29+
},
30+
"style": {
31+
"description": "Changes which don't affect code logic, such as white-spaces, formatting, missing semi-colons"
32+
},
33+
"test": {
34+
"description": "Changes which add missing tests or correct existing tests"
35+
}
36+
},
37+
"scopes": {
38+
"codeclimate": {
39+
"description": "Changes which affect Code Climate integration"
40+
},
41+
"github": {
42+
"description": "Changes which affect GitHub integration"
43+
},
44+
"release": {
45+
"description": "Changes which affect a release"
46+
},
47+
"vscode": {
48+
"description": "Changes which affect VisualStudio Code integration"
49+
}
50+
}
51+
}

.dictionary

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CLI
2+
conventional-changelog-cli
3+
defaultProps
4+
displayName
5+
gregoranders
6+
localhost
7+
npm
8+
markdownlint
9+
propTypes
10+
sexualized
11+
socio-economic

.eslintignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
docs/
2+
CODE_OF_CONDUCT.md
3+
README.md
4+
SECURITY.md
5+
CHANGELOG.md
6+
LICENSE
7+
commitlint.config.js

.eslintrc-cc.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"root": true,
33
"parser": "@typescript-eslint/parser",
4-
"plugins": ["prettier", "jest", "unicorn", "@typescript-eslint"],
4+
"plugins": ["prettier", "jest", "@typescript-eslint"],
55
"extends": [
66
"plugin:jest/recommended",
7-
"plugin:unicorn/recommended",
87
"plugin:prettier/recommended"
98
],
109
"parserOptions": {
@@ -19,6 +18,9 @@
1918
"jest": true
2019
},
2120
"rules": {
21+
"quotes": [
22+
2, "single", { "avoidEscape": true }
23+
],
2224
"@typescript-eslint/explicit-module-boundary-types": "off"
2325
},
2426
"settings": {}

.eslintrc.json

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
{
22
"root": true,
33
"parser": "@typescript-eslint/parser",
4-
"plugins": ["prettier", "jest", "unicorn", "@typescript-eslint"],
4+
"plugins": ["@typescript-eslint", "jest", "prettier", "unicorn"],
55
"extends": [
6+
"plugin:@typescript-eslint/recommended",
67
"plugin:jest/recommended",
7-
"plugin:unicorn/recommended",
8-
"plugin:prettier/recommended"
8+
"plugin:prettier/recommended",
9+
"plugin:unicorn/recommended"
910
],
1011
"parserOptions": {
11-
"ecmaVersion": 2020,
12+
"ecmaVersion": "latest",
1213
"sourceType": "module",
13-
"ecmaFeatures": {}
14+
"ecmaFeatures": {
15+
}
1416
},
1517
"env": {
16-
"es2020": true,
17-
"es6": true,
18+
"es2022": true,
1819
"browser": false,
20+
"node": true,
1921
"jest": true
2022
},
2123
"rules": {
24+
"quotes": [
25+
2, "single", { "avoidEscape": true }
26+
],
2227
"@typescript-eslint/explicit-module-boundary-types": "off",
2328
"sort-imports": [
2429
"error",
@@ -30,5 +35,6 @@
3035
}
3136
]
3237
},
33-
"settings": {}
38+
"settings": {
39+
}
3440
}

.github/workflows/development.yml

-6
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ jobs:
5656
coverageCommand: npm test
5757
coverageLocations: |
5858
./test/coverage/lcov.info:lcov
59-
- name: run codacy-coverage-reporter
60-
if: matrix.os == 'ubuntu-latest'
61-
uses: codacy/codacy-coverage-reporter-action@master
62-
with:
63-
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
64-
coverage-reports: ./test/coverage/lcov.info
6559
- name: Publish Unit Test Results
6660
uses: EnricoMi/publish-unit-test-result-action/composite@v1
6761
with:

.github/workflows/feature.yml

-6
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ jobs:
5656
coverageCommand: npm test
5757
coverageLocations: |
5858
./test/coverage/lcov.info:lcov
59-
- name: run codacy-coverage-reporter
60-
if: matrix.os == 'ubuntu-latest'
61-
uses: codacy/codacy-coverage-reporter-action@master
62-
with:
63-
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
64-
coverage-reports: ./test/coverage/lcov.info
6559
- name: Publish Unit Test Results
6660
uses: EnricoMi/publish-unit-test-result-action/composite@v1
6761
with:

.github/workflows/master.yml

-6
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ jobs:
5656
coverageCommand: npm test
5757
coverageLocations: |
5858
./test/coverage/lcov.info:lcov
59-
- name: run codacy-coverage-reporter
60-
if: matrix.os == 'ubuntu-latest'
61-
uses: codacy/codacy-coverage-reporter-action@master
62-
with:
63-
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
64-
coverage-reports: ./test/coverage/lcov.info
6559
- name: Publish Unit Test Results
6660
uses: EnricoMi/publish-unit-test-result-action/composite@v1
6761
with:

.github/workflows/release.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Release CI
2+
3+
on:
4+
release:
5+
types:
6+
- edited
7+
8+
env:
9+
CI: true
10+
GITHUB_BRANCH: ${{ github.ref }}
11+
GITHUB_HEAD_REF: ${{ github.head_ref }}
12+
GITHUB_BASE_REF: ${{ github.base_ref }}
13+
GITHUB_COMMIT: ${{ github.sha }}
14+
15+
jobs:
16+
build:
17+
runs-on: ${{ matrix.os }}
18+
19+
permissions:
20+
contents: read
21+
packages: write
22+
23+
strategy:
24+
matrix:
25+
os: [ubuntu-latest]
26+
node-version: [16.x]
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
with:
31+
submodules: recursive
32+
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
33+
uses: actions/setup-node@v1
34+
with:
35+
node-version: ${{ matrix.node-version }}
36+
registry-url: 'https://registry.npmjs.org/'
37+
- name: nodejs project information
38+
id: projectinfo
39+
uses: gregoranders/nodejs-project-info@master
40+
- name: npm install
41+
run: |
42+
npm install
43+
- name: npm test
44+
run: |
45+
npm test
46+
- name: npm run build
47+
run: |
48+
npm run build
49+
- name: code coverage
50+
if: matrix.os == 'ubuntu-latest'
51+
uses: coverallsapp/github-action@master
52+
with:
53+
github-token: ${{ secrets.GITHUB_TOKEN }}
54+
path-to-lcov: ./test/coverage/lcov.info
55+
- name: publish code coverage to code climate
56+
if: matrix.os == 'ubuntu-latest'
57+
uses: paambaati/[email protected]
58+
env:
59+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
60+
with:
61+
coverageCommand: npm test
62+
coverageLocations: |
63+
./test/coverage/lcov.info:lcov

.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx --no -- commitlint --edit
4+
npx --no -- commitlint --edit

.husky/pre-commit

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
lint-staged && npm test && npm run build
4+
lint-staged
5+
npm test
6+
npm run build

.husky/pre-push

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npm run clear && npm install && lint-staged && npm test && npm run build && npm run codeclimate
4+
npm run clear
5+
npm install
6+
npm test
7+
npm run build
8+
npm run lint
9+
npm run codeclimate

.markdownlintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/**
2+
CHANGELOG.md
3+
LICENSE

0 commit comments

Comments
 (0)