aberlaas-lint 2.17.0 → 2.18.1

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
@@ -14,7 +14,7 @@ import { nodeVersion } from 'aberlaas-versions';
14
14
  export default [
15
15
  {
16
16
  name: 'aberlaas/base',
17
- files: ['**/*.js'],
17
+ files: ['**/*.{js,jsx,ts,tsx}'],
18
18
  ignores: ['node_modules/*', '.yarn/*'],
19
19
  languageOptions: {
20
20
  ecmaVersion: 'latest',
@@ -148,7 +148,7 @@ export default [
148
148
  },
149
149
  {
150
150
  name: 'aberlaas/vitest',
151
- files: ['**/__tests__/**/*.js'],
151
+ files: ['**/__tests__/**/*.{js,ts}'],
152
152
  languageOptions: {
153
153
  globals: {
154
154
  afterAll: true,
@@ -197,7 +197,7 @@ export default [
197
197
  },
198
198
  {
199
199
  name: 'aberlaas/scripts',
200
- files: ['**/scripts/**/*.js'],
200
+ files: ['**/scripts/**/*.{js,ts}'],
201
201
  rules: { 'no-process-exit': ['off'] },
202
202
  },
203
203
  {
package/lib/js.js CHANGED
@@ -13,7 +13,12 @@ export default {
13
13
  async getInputFiles(userPatterns) {
14
14
  const filePatterns = _.isEmpty(userPatterns) ? ['./**/*.js'] : userPatterns;
15
15
 
16
- return await helper.findHostFiles(filePatterns, ['.js']);
16
+ return await helper.findHostFiles(filePatterns, [
17
+ '.js',
18
+ '.jsx',
19
+ '.ts',
20
+ '.tsx',
21
+ ]);
17
22
  },
18
23
  /**
19
24
  * Lint all files and display results.
@@ -24,7 +29,7 @@ export default {
24
29
  */
25
30
  async run(userPatterns, userConfigFile, userOptions = {}) {
26
31
  // Options
27
- const options = { fix: false, ...userOptions };
32
+ const options = { fix: false, warnIgnored: false, ...userOptions };
28
33
 
29
34
  // Files to lint
30
35
  const files = await this.getInputFiles(userPatterns);
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.17.0",
5
+ "version": "2.18.1",
6
6
  "repository": "pixelastic/aberlaas",
7
7
  "homepage": "https://projects.pixelastic.com/aberlaas/",
8
8
  "author": "Tim Carry (@pixelastic)",
@@ -41,7 +41,7 @@
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.17.0",
44
+ "aberlaas-helper": "^2.18.1",
45
45
  "aberlaas-versions": "^2.15.0",
46
46
  "ci-info": "4.1.0",
47
47
  "eslint": "9.15.0",
@@ -50,7 +50,7 @@
50
50
  "eslint-plugin-jsdoc": "50.5.0",
51
51
  "eslint-plugin-n": "17.14.0",
52
52
  "eslint-plugin-prettier": "5.2.1",
53
- "firost": "5.1.0",
53
+ "firost": "5.2.1",
54
54
  "globals": "15.14.0",
55
55
  "golgoth": "3.0.0",
56
56
  "prettier": "3.3.3",
@@ -58,5 +58,5 @@
58
58
  "typescript": "5.6.3",
59
59
  "yaml-lint": "1.7.0"
60
60
  },
61
- "gitHead": "6bf52751aea67f6557069342405187b4f4f166ea"
61
+ "gitHead": "00b60dcf9aebab442a809ccc81942005d87d1b5c"
62
62
  }