@coko/lint 3.0.0-alpha.7 → 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 CHANGED
@@ -2,6 +2,20 @@
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
+
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)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **eslint:** allow unused vars if they start with _ ([3f2fca0](https://gitlab.coko.foundation/cokoapps/lint/commit/3f2fca094ea69f9b5560f07851083bea637bd3ed))
18
+
5
19
  ## [3.0.0-alpha.7](https://gitlab.coko.foundation/cokoapps/lint/compare/v3.0.0-alpha.6...v3.0.0-alpha.7) (2025-11-06)
6
20
 
7
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coko/lint",
3
- "version": "3.0.0-alpha.7",
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": "git@gitlab.coko.foundation:cokoapps/lint.git"
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: {
@@ -252,7 +261,14 @@ const server = [
252
261
  '@typescript-eslint/no-redeclare': 'error',
253
262
 
254
263
  'no-unused-vars': 'off',
255
- '@typescript-eslint/no-unused-vars': 'error',
264
+ '@typescript-eslint/no-unused-vars': [
265
+ 'error',
266
+ {
267
+ argsIgnorePattern: '^_',
268
+ varsIgnorePattern: '^_',
269
+ caughtErrorsIgnorePattern: '^_',
270
+ },
271
+ ],
256
272
  },
257
273
  },
258
274