@viclafouch/eslint-config-viclafouch 4.22.1-beta.8 → 4.22.1-beta.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/README.md CHANGED
@@ -5,7 +5,7 @@ ESLint and Prettier configuration for modern TypeScript projects.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm i -D @viclafouch/eslint-config-viclafouch
8
+ npm i -D @viclafouch/eslint-config-viclafouch eslint prettier typescript
9
9
  ```
10
10
 
11
11
  ## Quick Init (recommended)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viclafouch/eslint-config-viclafouch",
3
- "version": "4.22.1-beta.8",
3
+ "version": "4.22.1-beta.9",
4
4
  "description": "ESLint and Prettier Config from Victor de la Fouchardiere",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",
package/prettier.mjs CHANGED
@@ -1,6 +1,10 @@
1
+ import { createRequire } from 'node:module'
2
+
1
3
  import eslintConfigPrettier from 'eslint-config-prettier'
2
4
  import eslintPluginPrettier from 'eslint-plugin-prettier'
3
5
 
6
+ const require = createRequire(import.meta.url)
7
+
4
8
  /**
5
9
  * @type {import("eslint").Linter.Config}
6
10
  */
@@ -15,7 +19,7 @@ export default [
15
19
  'prettier/prettier': [
16
20
  'error',
17
21
  {
18
- plugins: ['prettier-plugin-curly'],
22
+ plugins: [require.resolve('prettier-plugin-curly')],
19
23
  semi: false,
20
24
  singleQuote: true,
21
25
  printWidth: 80,