Detalhes do pacote

eslint-config-nitpick

niksy2.4kMIT14.1.0

ESLint config for my projects.

eslint, eslintconfig, nitpick

readme (leia-me)

eslint-config-nitpick

Build Status

ESLint config for my projects.

Install

npm install eslint@9 eslint-config-nitpick --save-dev

Usage

Add this config to your eslint.config.js:

import configNitpick from 'eslint-config-nitpick';

export default [
    configNitpick
];

If you’re using presets, it’s highly recommended to apply default preset:

import configNitpick from 'eslint-config-nitpick';
import configPreset from 'eslint-config-nitpick/other-preset';

export default [
    configNitpick,
    configPreset
];

Presets

In addition to default preset, there are also specific presets.

Browser

Browser specific rules.

import configBrowser from 'eslint-config-nitpick/browser';

export default [
    configBrowser
];

Testing

Rules for testing frameworks (e.g. Mocha).

import configTest from 'eslint-config-nitpick/tests';

export default [
    configTest
];

Vue

Vue specific rules.

import configVue from 'eslint-config-nitpick/vue';

export default [
    ...configVue
];

TypeScript

TypeScript specific rules.

import configTypescript from 'eslint-config-nitpick/typescript';

export default [
    configTypescript
];

License

MIT © Ivan Nikolić

changelog (log de mudanças)

Changelog

Unreleased

14.1.0 - 2025-02-16

Changed

  • Upgrade to ESLint 9 compatible version of eslint-find-rules
  • Update rules

14.0.2 - 2024-11-23

Changed

  • Vue parser and processor options

14.0.1 - 2024-11-23

Fixed

  • Peer dependencies and engines version

14.0.0 - 2024-11-23

Changed

  • Breaking: Supports Node >= 18
  • Breaking: Supports ESLint >= 9

13.0.2 - 2024-04-18

  • Update rules

13.0.1 - 2024-04-14

  • Update rules

13.0.0 - 2024-04-14

  • Incremental switch to ESM rules and behavior by default
  • Remove React, JSX and Next configuration
  • Use camel case for event naming in Vue
  • Group stylistic rules in preparation for Stylistic plugin
  • Use maintained version of Node plugin
  • Update environment for configuration files
  • Upgrade dependencies

12.0.2 - 2022-11-16

Changed

  • Update rules

12.0.1 - 2022-11-16

Changed

  • Force minor version for packages

12.0.0 - 2022-11-16

Changed

  • Set Node version to minimum 16
  • Activate Vue 3 rules
  • Update rules
  • Upgrade dependencies

11.1.2 - 2022-01-04

Changed

  • Disable Node plugin file extension resolver

11.1.1 - 2021-12-31

Changed

  • Downgrade eslint-plugin-mocha version since latest version drops Node 12 support

11.1.0 - 2021-12-29

Added

  • ESLint to peer dependencies

Changed

  • Use 2022 for parserOptions.ecmaVersion
  • Set Node version to minimum 12.22
  • Move Unicorn DOM rules to browser configuration
  • Enforce extension for imports

11.0.0 - 2021-12-28

Changed

  • Breaking: Supports Node >= 12
  • Breaking: Supports ESLint >= 8
  • Upgrade package
https://github.com/niksy/eslint-config-nitpick/compare/v14.0.2...HEAD