@coko/lint 3.0.0-alpha.8 → 3.0.0-alpha.9
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 +7 -0
- package/package.json +3 -2
- package/src/eslint.mjs +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.0.0-alpha.9](https://gitlab.coko.foundation/cokoapps/lint/compare/v3.0.0-alpha.8...v3.0.0-alpha.9) (2025-12-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **eslint:** add workspaces plugin ([0bfb382](https://gitlab.coko.foundation/cokoapps/lint/commit/0bfb382057548895c92cd53282745457d8ba0b5e))
|
|
11
|
+
|
|
5
12
|
## [3.0.0-alpha.8](https://gitlab.coko.foundation/cokoapps/lint/compare/v3.0.0-alpha.7...v3.0.0-alpha.8) (2025-11-18)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coko/lint",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.9",
|
|
4
4
|
"description": "Linter configurations and dependencies for coko's projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lint",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "
|
|
12
|
+
"url": "https://gitlab.coko.foundation/cokoapps/lint"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": "Yannis Barlas",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"eslint-plugin-promise": "^7.2.1",
|
|
63
63
|
"eslint-plugin-react": "^7.37.5",
|
|
64
64
|
"eslint-plugin-react-hooks": "^7.0.0",
|
|
65
|
+
"eslint-plugin-workspaces": "^0.11.0",
|
|
65
66
|
"globals": "^16.4.0",
|
|
66
67
|
"husky": "^9.1.7",
|
|
67
68
|
"lint-staged": "^16.2.6",
|
package/src/eslint.mjs
CHANGED
|
@@ -11,6 +11,7 @@ import tseslint from 'typescript-eslint'
|
|
|
11
11
|
import nodePlugin from 'eslint-plugin-n'
|
|
12
12
|
import importPlugin from 'eslint-plugin-import'
|
|
13
13
|
import vitest from '@vitest/eslint-plugin'
|
|
14
|
+
import workspaces from 'eslint-plugin-workspaces'
|
|
14
15
|
// import jest from 'eslint-plugin-jest'
|
|
15
16
|
// import cypressPlugin from 'eslint-plugin-cypress'
|
|
16
17
|
|
|
@@ -172,6 +173,14 @@ const server = [
|
|
|
172
173
|
js.configs.recommended,
|
|
173
174
|
importPlugin.flatConfigs.recommended,
|
|
174
175
|
|
|
176
|
+
{
|
|
177
|
+
plugins: { workspaces },
|
|
178
|
+
rules: {
|
|
179
|
+
'workspaces/no-relative-imports': 'error',
|
|
180
|
+
'workspaces/require-dependency': 'warn',
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
|
|
175
184
|
{
|
|
176
185
|
files: ['**/*.{js,mjs,ts}'],
|
|
177
186
|
languageOptions: {
|