You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

eslint-config-un

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-un - npm Package Versions

12356

0.7.0

Diff
a
andreww2012
published 0.7.0 •

Changelog

Source

0.7.0

  • New config: angular via @angular-eslint/eslint-plugin and @angular-eslint/eslint-plugin-template, enabled automatically if @angular/core package is installed and is within the supported version range (from 13 to 19).
  • New config: css via @eslint/css, enabled by default unless stylelint package is installed.
  • Set allowWithDecorator: true for @typescript-eslint/no-extraneous-class rule, mostly to avoid unfixable reports in Angular projects.
  • If TypeScript config (ts) is enabled, import/no-deprecated is now disabled because the corresponding @typescript-eslint rule works better (in particular, it accounts for function overloads).
  • Override @typescript-eslint/eslint-plugin peer dependency of eslint-plugin-jest and eslint-plugin-unused-imports to avoid loading a wrong version of it.
  • "Disable autofix" rules are now generated for all the vanilla ESLint rules.
  • [BREAKING] "Disable autofix" rules are no longer generated for rules that do not provide fixes.
  • Set sonarjs/no-clear-text-protocols rule severity to warning because it might produce many false positives.
  • [BREAKING] ts config: added configTypeAware sub-config to replace filesTypeAware, ignoresTypeAware and overridesTypeAware options. Unless explicitly specified, it will use the same ignores as the parent config.
  • [BREAKING] ts config: added configNoTypeAssertion sub-config to replace noTypeAssertion option.
  • [BREAKING] Enabled @typescript-eslint/consistent-return rule in ts config and disabled the same base rule consistent-return.
  • [BREAKING] Removed autofixToRemoveUnusedImports option from js config in favor of a separate unusedImports config.
  • [BREAKING] vue config: added configA11y sub-config to replace a11y and overridesA11y options.
  • [BREAKING] vue config: added configPinia sub-config to replace pinia option.
  • [BREAKING] In pursuit of consistent naming of sub-configs, renamed the following options:
    • typescript to configTypescript in jsdoc config
    • jsonConfig to configJson in jsonc config
    • jsoncConfig to configJsonc in jsonc config
    • json5Config to configJson5 in jsonc config
    • jestExtended to configJestExtended in jest config
    • typescript to configTypescript in jest config

Dependencies

a
andreww2012
published 0.6.2 •

Changelog

Source

0.6.2

Dependencies

<!-- eslint-disable-next-line markdown/no-missing-label-refs -->
a
andreww2012
published 0.6.1 •

Changelog

Source

0.6.1

  • Specify project: '*/tsconfig*.json' by default in eslint-import-resolver-typescript resolver for import config to avoid resolution issues in repositories with multiple tsconfigs (upstream issue). Added an option to override the resolver settings.
  • Set overrides['eslint-processor-vue-blocks']['@vue/compiler-sfc'] to v3 in package.json to potentially avoid "Preprocessing error: Cannot read properties of undefined (reading 'styles')" error during Vue files linting, caused by @vue/compiler-sfc resolved to a different major version.

Dependencies

a
andreww2012
published 0.6.0 •

Changelog

Source

0.6.0

  • New config: qwik via eslint-plugin-qwik, enabled automatically if @builder.io/qwik or @qwik.dev/core package is installed.
  • New config: jsonSchemaValidator via eslint-plugin-json-schema-validator, <u>disabled</u> by default.
  • [BREAKING] Disabled vitest/prefer-to-be-{falsy,truthy} rules since their fixes don't result in the equivalent code and therefore cannot be suitable for most projects.
  • [BREAKING] Set enforceForIfStatements: false for logical-assignment-operators since code enforced by this option might be harder to read and understand.
  • Added a fully typed node config option to specify eslint-plugin-n plugin settings.
  • For jest and vitest configs, an option testDefinitionKeyword now accepts a string that is used to set all the properties of the object.
  • For Vue files virtual files for <style> blocks are now created via eslint-processor-vue-blocks. Added an option to disable or customize this behavior.
  • <config>.overrides type now includes disable-autofix/* rules.

Dependencies

  • typescript-eslint: 8.24.1 -> 8.25.0
  • @stylistic/eslint-plugin: 4.0.1 -> 4.1.0
  • @vitest/eslint-plugin: 1.1.31 -> 1.1.36
  • eslint-config-prettier: 10.0.1 -> 10.0.2
  • eslint-plugin-de-morgan: 1.1.0 -> 1.2.0
  • yaml-eslint-parser: 1.2.3 -> 1.3.0
a
andreww2012
published 0.5.0 •

Changelog

Source

0.5.0

Dependencies

  • eslint-plugin-unicorn: 56.0.1 -> 57.0.0
  • @vitest/eslint-plugin: 1.1.28 -> 1.1.31
  • eslint-import-resolver-typescript: 3.7.0 -> 3.8.3
  • eslint-plugin-perfectionist: 4.8.0 -> 4.9.0
  • eslint-plugin-sonarjs: 3.0.1 -> 3.0.2
  • eslint-plugin-yml: 1.16.0 -> 1.17.0
  • @stylistic/eslint-plugin: 3.1.0 -> 4.0.1
    • ESM only now.
  • typescript-eslint: 8.24.0 -> 8.24.1
  • eslint-config-flat-gitignore: 2.0.0 -> 2.1.0
a
andreww2012
published 0.4.2 •

Changelog

Source

0.4.2

  • New config: cli to disable a few rules for files in bin, scripts and cli directories, enabled by default.
  • jest/vitest: by default include nested __test(s)__ directories and [-_].spec.* files.
  • sonar: change prefer-single-boolean-return default severity to warn.

Dependencies

a
andreww2012
published 0.4.1 •

Changelog

Source

0.4.1

  • In typescript config, setting filesTypeAware: false now fully disables the config for running type-aware rules. Same if an empty array is provided.
  • Added the ability to disable running type-aware rules (or even any TypeScript rules) on the files specified in enforceTypescriptInScriptSection option.
  • Exposed isInEditor utility from is-in-editor package that checks if the current process is running within a well known editor.

Dependencies

  • @stylistic/eslint-plugin: 2.12.1 -> 2.13.0
  • typescript-eslint: 8.19.1 -> 8.20.0
  • eslint-config-prettier: 9.1.0 -> 10.0.1
    • In v10, @stylistic/eslint-plugin is supported, which disables some of @stylistic/* rules.
  • eslint-plugin-jest: 28.10.0 -> 28.11.0
  • eslint-plugin-jest-extended: 2.4.0 -> 3.0.0
  • eslint-plugin-jsdoc: 50.6.1 -> 50.6.2
  • eslint-plugin-package-json: 0.19.0 -> 0.20.0
  • eslint-plugin-prefer-arrow-functions: 3.6.0 -> 3.6.2
  • eslint-plugin-tailwindcss: 3.17.5 -> 3.18.0
a
andreww2012
published 0.4.0 •

Changelog

Source

0.4.0

  • New config: perfectionist via eslint-plugin-perfectionist, <u>disabled</u> by default.
  • All dependency versions are now pinned (removed ^).

Dependencies

  • eslint-plugin-sonarjs: 1.0.4 -> 3.0.1
    • [BREAKING] Significantly changed sonar config: added a lot of new rules, some were disabled, some were enabled.
  • eslint-plugin-prefer-arrow-functions: 3.4.1 -> 3.6.0
  • @vitest/eslint-plugin: 1.1.24 -> 1.1.25
a
andreww2012
published 0.3.1 •

Changelog

Source

0.3.1

  • New config: jsdoc via eslint-plugin-jsdoc, enabled by default.
  • Changed the severity of all the eslint-plugin-vue's recommended rules to error (which turned out to be warn by default).
  • Disabled import/no-default-export rule for files starting with a dot and Storybook files (files inside .storybook directory and story files).

Dependencies

  • typescript-eslint: 8.18.1 -> 8.19.1
  • @vitest/eslint-plugin: 1.1.20 -> 1.1.24
  • eslint-plugin-package-json: 0.18.0 -> 0.19.0
a
andreww2012
published 0.3.0 •

Changelog

Source

0.3.0

  • [BREAKING] prefer-inline option of import/no-duplicates rule is now set to true. Added an new option noDuplicatesOptions in import config to override this behavior.
  • [BREAKING] Removed overridesPinia option from vue config in favor of adding the ability to pass more usual config options in pinia option.
  • New config: jest via eslint-plugin-jest, enabled automatically if jest package is installed.
  • New config: jest-extended via eslint-plugin-jest-extended, enabled automatically if both jest and jest-extended packages are installed.
  • New config: vitest via @vitest/eslint-plugin, enabled automatically if vitest package is installed.

Dependencies

  • eslint-plugin-import-x: 4.4.2 -> 4.6.1 & eslint-import-resolver-typescript: 3.6.3 -> 3.7.0
  • typescript-eslint: 8.14.0 -> 8.18.1
  • eslint-plugin-jsonc: 2.18.1 -> 2.18.2
    • Fixes an ESLint 9.15 compatibility issue.
  • eslint-plugin-unicorn: 56.0.0 -> 56.0.1
    • Fixes an ESLint 9.15 compatibility issue.
  • @stylistic/eslint-plugin: 2.10.1 -> 2.12.1
  • eslint-plugin-jest: 28.9.0 -> 28.10.0
  • eslint-plugin-n: 17.13.2 -> 17.15.1
  • eslint-plugin-package-json: 0.15.6 -> 0.18.0
    • overrides collection is now sorted by default.
  • eslint-plugin-promise: 7.1.0 -> 7.2.1
  • eslint-plugin-toml: 0.11.1 -> 0.12.0
  • eslint-plugin-vue: 9.31.0 -> 9.32.0
    • [BREAKING] Enabled a new slot-name-casing rule, which enforces camelCase for slot names.
  • eslint-plugin-yml: 1.15.0 -> 1.16.0