eslint-config-un 0.4.2 → 0.6.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.
Files changed (6) hide show
  1. package/README.md +8 -10
  2. package/dist/index.cjs +418 -301
  3. package/dist/index.d.cts +10987 -11052
  4. package/dist/index.d.ts +10987 -11052
  5. package/dist/index.js +419 -306
  6. package/package.json +34 -33
package/README.md CHANGED
@@ -39,10 +39,13 @@ Includes the rules from the following configs & plugins:
39
39
  - [vitest](https://www.npmjs.com/package/@vitest/eslint-plugin) (since v0.3.0)
40
40
  - [jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc) (since v0.3.1)
41
41
  - [perfectionist](https://www.npmjs.com/package/eslint-plugin-perfectionist) (since v0.4.0)
42
+ - [de-morgan](https://www.npmjs.com/package/eslint-plugin-de-morgan) (since v0.5.0)
43
+ - [qwik](https://www.npmjs.com/package/eslint-plugin-qwik) (since v0.6.0)
44
+ - [json-schema-validator](https://www.npmjs.com/package/eslint-plugin-json-schema-validator) (since v0.6.0)
42
45
 
43
46
  ## Features
44
47
 
45
- - Automatically detects the presence of `typescript`, `vue`, `nuxt`, `pinia`, `jest`, `jest-extended` and `vitest` packages and enables corresponding configurations (which can also be enabled or disabled explicitly).
48
+ - Automatically detects the presence of `typescript`, `vue`, `nuxt`, `pinia`, `jest`, `jest-extended`, `vitest`, `@builder.io/qwik` and `@qwik.dev/core` packages and enables corresponding configurations (which can also be enabled or disabled explicitly).
46
49
  - Every block of rules supports `overrides` for rules.
47
50
  - Designed to be used separately from Prettier: *almost* all the rules potentially conflicting with Prettier are disabled *by default*.
48
51
  - Written in TypeScript so all the options are typed.
@@ -67,14 +70,15 @@ export default eslintConfig({
67
70
  - Packages lookup (such as `typescript` or `vue`) is performed using [`local-pkg`](https://www.npmjs.com/package/local-pkg).
68
71
  - Type-checked, or type-aware TypeScript rules are *enabled* by default which are known to be performance-demanding. It's just a little heads-up and you should make your own decision whether to keep them enabled. [More about type-aware linting](https://typescript-eslint.io/getting-started/typed-linting).
69
72
  - By default, TypeScript rules will be enabled in `.vue` files if `enforceTypescriptInScriptSection` is set to true in vue's config options which in turn is *automatically* set to true if `typescript` package found installed. If you have `.vue` files authored in both TypeScript and JavaScript, use `enforceTypescriptInScriptSection.{files,ignores}` to manually specify TS & JS Vue components respectively. It is not currently possible to apply different ESLint rules depending on the value of `lang` attribute of `<script>` SFC section.
70
- - All plugins listed above are enabled by default or enabled automatically under certain conditions, but there is some that are *disabled* by default:
71
- - `prefer-arrow-functions`
73
+ - All configs listed above are enabled by default or enabled automatically under certain conditions, but there is some that are *disabled* by default:
74
+ - `preferArrowFunctions`
72
75
  - `security`
73
76
  - `json`
74
77
  - `yaml`
75
78
  - `toml`
76
- - `package-json`
79
+ - `packageJson`
77
80
  - `perfectionist`
81
+ - `deMorgan`
78
82
  - 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.
79
83
 
80
84
  ### Certain rules are disabled for code blocks inside `*.md` files
@@ -85,12 +89,6 @@ But applying certain rules for code blocks might not be desirable because some o
85
89
 
86
90
  ## Troubleshooting
87
91
 
88
- ### TypeError: Key `rules`: Key `disable-autofix/<rule name>`: Could not find `<rule name>` in plugin `disable-autofix`
89
-
90
- 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`).
91
-
92
- This error could also happen if a dependency of this package is installed in your project separately.
93
-
94
92
  ### TypeError: Key `languageOptions`: Key `globals`: Global `AudioWorkletGlobalScope ` has leading or trailing whitespace.
95
93
 
96
94
  Install `globals` package as a dev dependency.