@hypernym/eslint-config

3.0.0 • Public • Published

@hypernym/eslint-config

Hypernym's internal config for ESLint.

Repository | Package | Releases | Discussions

npm i -D @hypernym/eslint-config

Setup

Add lint commands for manual linting (optionally):

// package.json

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint --fix ."
  }
}

Usage

JS

// eslint.config.js

import { jsConfig, ignoresConfig } from '@hypernym/eslint-config'

export default [jsConfig, ignoresConfig]

TS

// eslint.config.js

import { jsConfig, tsConfig, ignoresConfig } from '@hypernym/eslint-config'

export default [jsConfig, tsConfig, ignoresConfig]

Custom

// eslint.config.js

import { jsConfig, tsConfig, ignores } from '@hypernym/eslint-config'

export default [
  jsConfig,
  tsConfig,
  {
    files: tsConfig.files,
    rules: {
      '@typescript-eslint/no-explicit-any': 'off',
      '@typescript-eslint/no-unused-vars': [
        'error',
        { ignoreRestSiblings: true },
      ],
    },
  },
  {
    ignores: [...ignores, '**/dir/**/*'],
  },
]

Community

Feel free to ask questions or share new ideas.

Use the official discussions to get involved.

License

Developed in 🇭🇷 Croatia.

Released under the MIT license.

© Hypernym Studio

Package Sidebar

Install

npm i @hypernym/eslint-config

Weekly Downloads

0

Version

3.0.0

License

MIT

Unpacked Size

6.75 kB

Total Files

5

Last publish

Collaborators

  • ivodolenc
  • hypernym