Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add method-signature-style rule (#190)
- Enforce this rule https://typescript-eslint.io/rules/method-signature-style#method This is important for generated docs, which distinguish between methods and properties. Without this rule, functions on an interface/object can appear as properties rather than methods: <img width="379" alt="image" src="https://github.com/ipfs/eslint-config-ipfs/assets/665810/d290042f-24d1-441d-9e7a-6e7db20faf4c"> BREAKING CHANGE: All interfaces now need to use method signature style rather than property function style eg: before ```ts interface Foo { bar: (baz: number) => void } ``` after ```ts interface Foo { bar(baz: number): void } ```
- Loading branch information