@viclafouch/eslint-config-viclafouch 4.17.1-beta.8 → 4.17.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viclafouch/eslint-config-viclafouch",
3
- "version": "4.17.1-beta.8",
3
+ "version": "4.17.1-beta.9",
4
4
  "description": "ESLint and Prettier Config from Victor de la Fouchardiere",
5
5
  "main": "index.js",
6
6
  "keywords": [
package/prettier.mjs CHANGED
@@ -1,12 +1,17 @@
1
- import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
1
+ import eslintConfigPrettier from 'eslint-config-prettier'
2
+ import eslintPluginPrettier from 'eslint-plugin-prettier'
2
3
 
3
4
  /**
4
5
  * @type {import("eslint").Linter.Config}
5
6
  */
6
7
  export default [
7
- eslintPluginPrettierRecommended,
8
8
  {
9
+ plugins: {
10
+ ...eslintConfigPrettier.plugins,
11
+ prettier: eslintPluginPrettier
12
+ },
9
13
  rules: {
14
+ ...eslintConfigPrettier.rules,
10
15
  'prettier/prettier': [
11
16
  'error',
12
17
  {
@@ -18,6 +23,7 @@ export default [
18
23
  jsxSingleQuote: false,
19
24
  trailingComma: 'none',
20
25
  endOfLine: 'auto',
26
+ usePrettierrc: false,
21
27
  bracketSameLine: false,
22
28
  arrowParens: 'always'
23
29
  }
package/rules/es6.mjs CHANGED
@@ -78,8 +78,10 @@ export default {
78
78
  'error',
79
79
  {
80
80
  restrictedNamedExports: [
81
- 'default', // Use `export default` to provide a default export
82
- 'then' // This will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions
81
+ // Use `export default` to provide a default export
82
+ 'default',
83
+ // This will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions
84
+ 'then'
83
85
  ]
84
86
  }
85
87
  ],