square / eslint-plugin-square

An ESLint plugin containing custom JavaScript, Ember, React, TypeScript rules and configurations tailored to Square's needs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate rules for filename linting

rachid-block opened this issue · comments

Description

eslint-plugin-square is using the recommended ruleset for eslint-plugin-unicorn which includes unicorn/filename-case, which performs the same check as filenames/match-regex (configured here).

This was discovered when fixing the React config to use pascal case. I had to override two rules for filename linting.

Suggested Solution

eslint-plugin-unicorn has more users and is more actively maintained, so eslint-plugin-square can remove filenames/match-regex in favor of unicorn/filename-case.