eslint-config-un 0.1.2 → 0.1.4

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
@@ -16,6 +16,7 @@ yarn add -D eslint-config-un
16
16
 
17
17
  Includes the rules from the following configs & plugins:
18
18
  - [Vanilla ESLint rules](https://eslint.org/docs/latest/rules/)
19
+ - [eslint-config-prettier](https://www.npmjs.com/package/eslint-config-prettier) to disable Prettier-incompatible rules
19
20
  - [typescript-eslint](https://typescript-eslint.io/rules/)
20
21
  - [vue](https://eslint.vuejs.org/rules/) (+ [vuejs-accessibility](https://www.npmjs.com/package/eslint-plugin-vuejs-accessibility) and [pinia](https://www.npmjs.com/package/eslint-plugin-pinia))
21
22
  - [unicorn](https://www.npmjs.com/package/eslint-plugin-unicorn)
@@ -26,7 +27,11 @@ Includes the rules from the following configs & plugins:
26
27
  - [security](https://www.npmjs.com/package/eslint-plugin-security)
27
28
  - [sonar](https://www.npmjs.com/package/eslint-plugin-sonarjs)
28
29
  - [tailwind](https://www.npmjs.com/package/eslint-plugin-tailwindcss)
29
- - [eslint-config-prettier](https://www.npmjs.com/package/eslint-config-prettier) to disable Prettier-incompatible rules
30
+ - [jsonc](https://www.npmjs.com/package/eslint-plugin-jsonc) (since v0.1.4)
31
+ - [yaml](https://www.npmjs.com/package/eslint-plugin-yaml) (since v0.1.0)
32
+ - [toml](https://www.npmjs.com/package/eslint-plugin-toml) (since v0.1.3)
33
+ - [prefer-arrow-functions](https://www.npmjs.com/package/eslint-plugin-prefer-arrow-functions) (since v0.1.0)
34
+ - [eslint-comments](https://www.npmjs.com/package/@eslint-community/eslint-plugin-eslint-comments) (since v0.1.3)
30
35
 
31
36
  ## Features
32
37
 
@@ -58,14 +63,18 @@ export default eslintConfig({
58
63
  - All plugins listed above are enabled by default or enabled automatically under certain conditions, but there is some that are *disabled* by default:
59
64
  - `prefer-arrow-functions`
60
65
  - `security`
66
+ - `json`
61
67
  - `yaml`
68
+ - `toml`
62
69
  - Some rules are set to warn by default. You can change some or even all such rule's reporting level using `errorsInsteadOfWarnings` option. You can find all such rules by inspecting the source code of this package.
63
70
 
64
71
  ## Troubleshooting
65
72
 
66
73
  ### TypeError: Key `rules`: Key `disable-autofix/<rule name>`: Could not find `<rule name>` in plugin `disable-autofix`
67
74
 
68
- We disable autofix for some rules in this package via `eslint-plugin-disable-autofix`. However, it requires all the configs/plugins packages to be hoisted (installed to the top level of `node_modules`). You might need to reinstall this package, re-create `node_modules` directory (do not delete your lock file!) or set `shamefully-hoist=true` in your `.npmrc` if you're using pnpm. Sometimes you'll need to manually install some packages refused to be hoisted (happens with `@typescript-eslint/eslint-plugin`: `npm i @typescript-eslint/eslint-plugin -D --legacy-peer-deps`);
75
+ We disable autofix for some rules in this package via `eslint-plugin-disable-autofix`. However, it requires all the configs/plugins packages to be hoisted (installed to the top level of `node_modules`). You might need to reinstall this package, re-create `node_modules` directory (do not delete your lock file!) or set `shamefully-hoist=true` in your `.npmrc` if you're using pnpm. Sometimes you'll need to manually install some packages refused to be hoisted (happens with `@typescript-eslint/eslint-plugin`: `npm i @typescript-eslint/eslint-plugin -D --legacy-peer-deps`).
76
+
77
+ This error could also happen if a dependency of this package is installed in your project separately.
69
78
 
70
79
  ### TypeError: Key `languageOptions`: Key `globals`: Global `AudioWorkletGlobalScope ` has leading or trailing whitespace.
71
80