@lusc/eslint-config 4.2.2 → 6.0.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.
@@ -0,0 +1,3 @@
1
+ import pluginSecurity from 'eslint-plugin-security';
2
+
3
+ export default [pluginSecurity.configs.recommended];
@@ -1,12 +1,10 @@
1
1
  import eslintPluginUnicorn from 'eslint-plugin-unicorn';
2
2
 
3
3
  export default [
4
- eslintPluginUnicorn.configs['flat/recommended'],
4
+ eslintPluginUnicorn.configs.recommended,
5
5
  {
6
6
  rules: {
7
7
  'unicorn/no-null': 'off',
8
- // Math.min and max don't support bigint, so ternary is necessary there
9
- 'unicorn/prefer-math-min-max': 'off',
10
8
  'unicorn/better-regex': [
11
9
  'error',
12
10
  {
package/index.js CHANGED
@@ -7,6 +7,7 @@ import importConfig from './configs/import.js';
7
7
  import n from './configs/n.js';
8
8
  import promise from './configs/promise.js';
9
9
  import regexp from './configs/regexp.js';
10
+ import security from './configs/security.js';
10
11
  import typescript from './configs/typescript.js';
11
12
  import unicorn from './configs/unicorn.js';
12
13
 
@@ -42,6 +43,7 @@ export function withOptions({typescriptGlobs}) {
42
43
  n,
43
44
  importConfig,
44
45
  regexp,
46
+ security,
45
47
  typescript(typescriptGlobs),
46
48
  ].flat();
47
49
  }
package/package.json CHANGED
@@ -6,16 +6,17 @@
6
6
  "dependencies": {
7
7
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
8
8
  "@eslint/js": "^9.20.0",
9
- "@typescript-eslint/parser": "^8.24.0",
10
- "eslint-import-resolver-typescript": "^3.8.0",
9
+ "@typescript-eslint/parser": "^8.24.1",
10
+ "eslint-import-resolver-typescript": "^3.8.1",
11
11
  "eslint-plugin-import-x": "^4.6.1",
12
12
  "eslint-plugin-n": "^17.15.1",
13
13
  "eslint-plugin-promise": "^7.2.1",
14
14
  "eslint-plugin-regexp": "^2.7.0",
15
- "eslint-plugin-unicorn": "^56.0.1",
15
+ "eslint-plugin-security": "^3.0.1",
16
+ "eslint-plugin-unicorn": "^57.0.0",
16
17
  "globals": "^15.15.0",
17
18
  "typescript": "^5.7.3",
18
- "typescript-eslint": "^8.24.0"
19
+ "typescript-eslint": "^8.24.1"
19
20
  },
20
21
  "exports": {
21
22
  ".": "./index.js"
@@ -34,5 +35,5 @@
34
35
  "url": "https://github.com/melusc/eslint-config"
35
36
  },
36
37
  "type": "module",
37
- "version": "4.2.2"
38
+ "version": "6.0.0"
38
39
  }