@diplodoc/lint 1.1.2 → 1.2.0
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 +19 -0
- package/eslint-common-config.js +8 -0
- package/package.json +2 -1
- package/scripts/modify-package.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.0](https://github.com/diplodoc-platform/lint/compare/v1.1.3...v1.2.0) (2024-09-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Parse import asserts ([8f314eb](https://github.com/diplodoc-platform/lint/commit/8f314ebec4ede6d48f77ea8258f2c3dfc16247a8))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Fix packagelock ([149b4d9](https://github.com/diplodoc-platform/lint/commit/149b4d94b42c7c8c667f5c6e73236b3590a87e1e))
|
|
14
|
+
|
|
15
|
+
## [1.1.3](https://github.com/diplodoc-platform/lint/compare/v1.1.2...v1.1.3) (2024-08-14)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* Fix dummy error in packages init ([a2c34f4](https://github.com/diplodoc-platform/lint/commit/a2c34f475f9463ad0dc065a64825257aa72600ba))
|
|
21
|
+
|
|
3
22
|
## [1.1.2](https://github.com/diplodoc-platform/lint/compare/v1.1.1...v1.1.2) (2024-08-13)
|
|
4
23
|
|
|
5
24
|
|
package/eslint-common-config.js
CHANGED
|
@@ -4,6 +4,14 @@ module.exports = {
|
|
|
4
4
|
'@gravity-ui/eslint-config',
|
|
5
5
|
process.env.npm_command && '@gravity-ui/eslint-config/prettier',
|
|
6
6
|
].filter(Boolean),
|
|
7
|
+
parserOptions: {
|
|
8
|
+
requireConfigFile: false,
|
|
9
|
+
babelOptions: {
|
|
10
|
+
plugins: [
|
|
11
|
+
'@babel/plugin-syntax-import-assertions'
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
7
15
|
overrides: [{
|
|
8
16
|
files: [
|
|
9
17
|
'.eslintrc.js',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diplodoc/lint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Diplodoc platform internal utility set for linting",
|
|
5
5
|
"bin": {
|
|
6
6
|
"lint": "./bin/lint",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"author": "",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"@babel/plugin-syntax-import-assertions": "^7.25.6",
|
|
29
30
|
"@gravity-ui/eslint-config": "^3.2.0",
|
|
30
31
|
"@gravity-ui/prettier-config": "^1.1.0",
|
|
31
32
|
"@gravity-ui/stylelint-config": "^4.0.1",
|
|
@@ -12,7 +12,7 @@ try {
|
|
|
12
12
|
|
|
13
13
|
function configure(command, impl, force = false) {
|
|
14
14
|
if (pkg.scripts[command] && !force) {
|
|
15
|
-
if (pkg.scripts[command] !== impl
|
|
15
|
+
if (pkg.scripts[command] !== impl) {
|
|
16
16
|
throw `Lint command '${command}' already configured with different program`;
|
|
17
17
|
}
|
|
18
18
|
} else {
|