Skip to content

Export eslint rules #240

@platypii

Description

@platypii

It's kind of weird but if we export the default hyperparam eslint rule in the hyperparam eslint package, we could just import the default rules in all the related packages. Could still override individual rules like so:

import javascript from '@eslint/js'
import { hyperparamEslintRules } from 'hyperparam'

export default [
    rules: {
      ...javascript.configs.recommended.rules,
      ...hyperparamEslintRules,
      // jsdoc needs extra parens:
      'no-extra-parens': ['error', 'all', {
        'allowParensAfterCommentPattern': '@type', // allow jsdoc
      }],
    },
  },
]

I'm not totally sold on this specific solution. But I was updating eslint rules in icebird and it would be nice if we had standardization across repos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions