@diplodoc/lint 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/bin/eslint +2 -1
- package/bin/husky +2 -1
- package/bin/lint-staged +2 -1
- package/bin/prettier +2 -1
- package/bin/stylelint +2 -1
- package/bin/svgo +2 -1
- package/eslint-common-config.js +2 -0
- package/package.json +1 -1
- package/scaffolding/.stylelintrc.js +1 -1
- package/.github/workflows/release.yml +0 -21
- package/.github/workflows/tests.yml +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.1.2](https://github.com/diplodoc-platform/lint/compare/v1.1.1...v1.1.2) (2024-08-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Handle jest config ([8df332d](https://github.com/diplodoc-platform/lint/commit/8df332d2c4ec1f44b01ab9b7955df23ca784cad8))
|
|
9
|
+
|
|
10
|
+
## [1.1.1](https://github.com/diplodoc-platform/lint/compare/v1.1.0...v1.1.1) (2024-08-12)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* Fix bin resolution for metapackage structure ([ab75994](https://github.com/diplodoc-platform/lint/commit/ab759946f7aad0cba84458bcbf3404e09c239dec))
|
|
16
|
+
|
|
3
17
|
## [1.1.0](https://github.com/diplodoc-platform/lint/compare/v1.0.3...v1.1.0) (2024-08-11)
|
|
4
18
|
|
|
5
19
|
|
package/bin/eslint
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
SRCDIR=$(dirname $(dirname $(node -pe "require('fs').realpathSync('${0//\\//}')")))
|
|
4
|
+
BINDIR=$(dirname $(cd "$SRCDIR"; node -pe "require.resolve('eslint/package.json')"))
|
|
4
5
|
|
|
5
6
|
if [[ -z "$BINDIR" ]]; then
|
|
6
7
|
echo "Required package 'eslint' not found"
|
package/bin/husky
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
SRCDIR=$(dirname $(dirname $(node -pe "require('fs').realpathSync('${0//\\//}')")))
|
|
4
|
+
BINDIR=$(dirname $(cd "$SRCDIR"; node -pe "require.resolve('husky')"))
|
|
4
5
|
|
|
5
6
|
if [[ -z "$BINDIR" ]]; then
|
|
6
7
|
echo "Required package 'husky' not found"
|
package/bin/lint-staged
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
SRCDIR=$(dirname $(dirname $(node -pe "require('fs').realpathSync('${0//\\//}')")))
|
|
4
|
+
BINDIR=$(dirname $(cd "$SRCDIR"; node -pe "require.resolve('lint-staged/package.json')"))
|
|
4
5
|
|
|
5
6
|
if [[ -z "$BINDIR" ]]; then
|
|
6
7
|
echo "Required package 'lint-staged' not found"
|
package/bin/prettier
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
SRCDIR=$(dirname $(dirname $(node -pe "require('fs').realpathSync('${0//\\//}')")))
|
|
4
|
+
BINDIR=$(dirname $(cd "$SRCDIR"; node -pe "require.resolve('prettier')"))
|
|
4
5
|
|
|
5
6
|
if [[ -z "$BINDIR" ]]; then
|
|
6
7
|
echo "Required package 'prettier' not found"
|
package/bin/stylelint
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
SRCDIR=$(dirname $(dirname $(node -pe "require('fs').realpathSync('${0//\\//}')")))
|
|
4
|
+
BINDIR=$(dirname $(cd "$SRCDIR"; node -pe "require.resolve('stylelint/package.json')"))
|
|
4
5
|
|
|
5
6
|
if [[ -z "$BINDIR" ]]; then
|
|
6
7
|
echo "Required package 'stylelint' not found"
|
package/bin/svgo
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
SRCDIR=$(dirname $(dirname $(node -pe "require('fs').realpathSync('${0//\\//}')")))
|
|
4
|
+
BINDIR=$(dirname $(cd "$SRCDIR"; node -pe "require.resolve('svgo/package.json')"))
|
|
4
5
|
|
|
5
6
|
if [[ -z "$BINDIR" ]]; then
|
|
6
7
|
echo "Required package 'svgo' not found"
|
package/eslint-common-config.js
CHANGED
|
@@ -10,6 +10,7 @@ module.exports = {
|
|
|
10
10
|
'.prettierrc.js',
|
|
11
11
|
'.stylelintrc.js',
|
|
12
12
|
'.lintstagedrc.js',
|
|
13
|
+
'jest.config.js',
|
|
13
14
|
],
|
|
14
15
|
env: {
|
|
15
16
|
node: true,
|
|
@@ -20,6 +21,7 @@ module.exports = {
|
|
|
20
21
|
'consistent-return': 'off',
|
|
21
22
|
'no-implicit-globals': 'off',
|
|
22
23
|
'no-param-reassign': 'off',
|
|
24
|
+
'no-shadow': 'off',
|
|
23
25
|
'@typescript-eslint/no-shadow': 'off',
|
|
24
26
|
'import/no-extraneous-dependencies': 'error',
|
|
25
27
|
'import/order': [
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
on:
|
|
2
|
-
push:
|
|
3
|
-
branches: [master]
|
|
4
|
-
|
|
5
|
-
name: release
|
|
6
|
-
|
|
7
|
-
permissions:
|
|
8
|
-
contents: write
|
|
9
|
-
pull-requests: write
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
release:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- uses: gravity-ui/release-action@v1
|
|
16
|
-
with:
|
|
17
|
-
github-token: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }}
|
|
18
|
-
npm-token: ${{ secrets.ROBOT_DATAUI_NPM_TOKEN }}
|
|
19
|
-
node-version: 18
|
|
20
|
-
default-branch: ${{ github.ref_name != 'master' && github.ref_name || null }}
|
|
21
|
-
npm-dist-tag: ${{ github.ref_name != 'master' && 'untagged' || 'latest' }}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
name: Tests
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: ['**']
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test:
|
|
11
|
-
name: Node v${{ matrix.node-version }} on ${{ matrix.os }}
|
|
12
|
-
runs-on: ${{ matrix.os }}
|
|
13
|
-
strategy:
|
|
14
|
-
fail-fast: false
|
|
15
|
-
matrix:
|
|
16
|
-
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
17
|
-
node-version: [18.x]
|
|
18
|
-
steps:
|
|
19
|
-
- name: Checkout
|
|
20
|
-
uses: actions/checkout@v2
|
|
21
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
22
|
-
uses: actions/setup-node@v2
|
|
23
|
-
with:
|
|
24
|
-
node-version: ${{ matrix.node-version }}
|
|
25
|
-
os: ${{ matrix.os }}
|
|
26
|
-
cache: 'npm'
|
|
27
|
-
- name: Install packages for project
|
|
28
|
-
run: npm ci
|
|
29
|
-
- name: Run tests
|
|
30
|
-
run: |
|
|
31
|
-
cd test
|
|
32
|
-
npm start
|