aberlaas-lint 2.12.0 → 2.14.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/configs/eslint.js CHANGED
@@ -69,6 +69,11 @@ export default [
69
69
  property: 'contains',
70
70
  message: 'Typo: Use _.includes instead',
71
71
  },
72
+ {
73
+ object: '_',
74
+ property: 'padLeft',
75
+ message: 'Typo: Use _.padStart instead',
76
+ },
72
77
  ],
73
78
  'no-unused-vars': [
74
79
  'error',
@@ -81,14 +86,15 @@ export default [
81
86
  'no-shadow': ['error'],
82
87
  'object-shorthand': ['error', 'always'],
83
88
  'quote-props': ['error', 'consistent-as-needed'],
84
- quotes: ['error', 'single', { avoidEscape: true }],
85
89
  'sort-imports': ['error', { ignoreDeclarationSort: true }],
86
90
  // Node
87
91
  'n/no-unsupported-features/es-syntax': [
88
92
  'error',
89
93
  { version: `>=${nodeVersion}` },
90
94
  ],
95
+ 'n/no-extraneous-import': ['error'],
91
96
  'n/no-unpublished-import': ['error'],
97
+ 'n/prefer-node-protocol': ['error'],
92
98
  // Import
93
99
  'import/first': ['error'],
94
100
  'import/no-cycle': ['error', { ignoreExternal: true, disableScc: true }],
@@ -118,6 +124,10 @@ export default [
118
124
  'jsdoc/valid-types': ['warn'],
119
125
  // Prettier
120
126
  ...pluginPrettierRecommended.rules,
127
+ // Prettier overwrites
128
+ // quotes: We want `hello world` to be converted into 'hello world', but
129
+ // Prettier doesn't do that, so we need to make eslint do it
130
+ quotes: ['error', 'single', { avoidEscape: true }],
121
131
  },
122
132
  settings: {
123
133
  // eslint-plugin-import doesn't currently support the "exports" syntax in
package/lib/json.js CHANGED
@@ -1,4 +1,4 @@
1
- import path from 'path';
1
+ import path from 'node:path';
2
2
  import { _, pMap } from 'golgoth';
3
3
  import { firostError, read } from 'firost';
4
4
  import helper from 'aberlaas-helper';
package/lib/yml.js CHANGED
@@ -1,4 +1,4 @@
1
- import path from 'path';
1
+ import path from 'node:path';
2
2
  import { firostError, read } from 'firost';
3
3
  import { _, pMap } from 'golgoth';
4
4
  import yamlLint from 'yaml-lint';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "aberlaas-lint",
3
3
  "type": "module",
4
4
  "description": "aberlaas lint command: Lint files",
5
- "version": "2.12.0",
5
+ "version": "2.14.0",
6
6
  "repository": "pixelastic/aberlaas",
7
7
  "homepage": "https://projects.pixelastic.com/aberlaas/",
8
8
  "author": "Tim Carry (@pixelastic)",
@@ -29,7 +29,7 @@
29
29
  "serve": "../../scripts/local/serve",
30
30
  "ci": "../../scripts/local/ci",
31
31
  "release": "../../scripts/local/release",
32
- "update": "node ../../scripts/meta/update.js",
32
+ "update-dependencies": "node ../../scripts/meta/update-dependencies.js",
33
33
  "test:meta": "../../scripts/local/test-meta",
34
34
  "test": "../../scripts/local/test",
35
35
  "test:watch": "../../scripts/local/test-watch",
@@ -41,21 +41,22 @@
41
41
  "@eslint/js": "9.15.0",
42
42
  "@typescript-eslint/utils": "8.15.0",
43
43
  "@vitest/eslint-plugin": "1.1.10",
44
- "aberlaas-helper": "^2.10.0",
45
- "aberlaas-versions": "^2.10.0",
44
+ "aberlaas-helper": "^2.14.0",
45
+ "aberlaas-versions": "^2.14.0",
46
46
  "ci-info": "4.1.0",
47
47
  "eslint": "9.15.0",
48
48
  "eslint-config-prettier": "9.1.0",
49
49
  "eslint-plugin-import": "2.31.0",
50
50
  "eslint-plugin-jsdoc": "50.5.0",
51
- "eslint-plugin-n": "17.13.2",
51
+ "eslint-plugin-n": "17.14.0",
52
52
  "eslint-plugin-prettier": "5.2.1",
53
- "firost": "4.3.0",
53
+ "firost": "5.0.0",
54
+ "globals": "15.14.0",
54
55
  "golgoth": "2.4.0",
55
56
  "prettier": "3.3.3",
56
57
  "stylelint": "16.10.0",
57
58
  "typescript": "5.6.3",
58
59
  "yaml-lint": "1.7.0"
59
60
  },
60
- "gitHead": "208f1d76e2843fbe54c2bfb442d28675b217dccf"
61
+ "gitHead": "b11b18726a6b600b33161e5d3fee313565a2a214"
61
62
  }