@viclafouch/eslint-config-viclafouch 4.21.0 → 4.21.1-beta.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/index.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import eslintPluginUnicorn from 'eslint-plugin-unicorn'
2
+ import globals from 'globals'
1
3
  import bestPracticesConfig from './rules/best-practices.mjs'
2
4
  import errorConfig from './rules/errors.mjs'
3
5
  import es6Config from './rules/es6.mjs'
@@ -16,6 +18,14 @@ export default [
16
18
  reportUnusedDisableDirectives: 'error'
17
19
  }
18
20
  },
21
+ {
22
+ languageOptions: {
23
+ globals: globals.builtin
24
+ },
25
+ plugins: {
26
+ unicorn: eslintPluginUnicorn
27
+ }
28
+ },
19
29
  bestPracticesConfig,
20
30
  nodeConfig,
21
31
  errorConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viclafouch/eslint-config-viclafouch",
3
- "version": "4.21.0",
3
+ "version": "4.21.1-beta.1",
4
4
  "description": "ESLint and Prettier Config from Victor de la Fouchardiere",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -32,6 +32,7 @@
32
32
  "dependencies": {
33
33
  "@babel/core": "^7.26.9",
34
34
  "@babel/eslint-parser": "^7.26.8",
35
+ "@eslint/js": "^9.21.0",
35
36
  "@next/eslint-plugin-next": "^15.2.1",
36
37
  "@total-typescript/ts-reset": "^0.6.1",
37
38
  "app-root-path": "^3.1.0",
@@ -43,16 +44,16 @@
43
44
  "eslint-plugin-promise": "^7.2.1",
44
45
  "eslint-plugin-react": "^7.37.4",
45
46
  "eslint-plugin-react-hooks": "^5.2.0",
47
+ "eslint-plugin-unicorn": "^58.0.0",
46
48
  "eslint-plugin-simple-import-sort": "^12.1.1",
47
49
  "eslint-plugin-testing-library": "^7.1.1",
48
50
  "get-tsconfig": "^4.10.0",
49
51
  "globals": "^16.0.0",
50
52
  "prettier": ">= 3",
51
- "typescript-eslint": "^8.26.0",
52
- "@eslint/js": "^9.21.0",
53
53
  "prettier-plugin-curly": "^0.3.1",
54
- "eslint": ">= 9",
55
- "typescript": ">= 5"
54
+ "typescript": ">= 5",
55
+ "typescript-eslint": "^8.26.0",
56
+ "eslint": ">= 9"
56
57
  },
57
58
  "scripts": {
58
59
  "lint": "eslint .",
@@ -63,7 +64,7 @@
63
64
  "publish:beta": "npm publish --tag beta"
64
65
  },
65
66
  "devDependencies": {
66
- "eslint": "^9.17.0",
67
+ "eslint": "^9.24.0",
67
68
  "typescript": "^5.7.2"
68
69
  }
69
70
  }
package/reset.d.ts CHANGED
@@ -1,6 +1 @@
1
1
  export * from '@total-typescript/ts-reset'
2
- declare global {
3
- // https://twitter.com/erikras/status/1673694889974833152
4
- // eslint-disable-next-line @typescript-eslint/ban-types
5
- type StrictOmit<T, K extends keyof T> = Omit<T, K>
6
- }
package/rules/node.mjs CHANGED
@@ -18,6 +18,6 @@ export default {
18
18
  'global-require': 'error',
19
19
 
20
20
  // Enforce usage of the `node:` prefix for builtin imports
21
- 'node/prefer-node-protocol': 'error'
21
+ 'unicorn/prefer-node-protocol': 'error'
22
22
  }
23
23
  }