Consistently use middle dot (·) instead of bullet (•) to separate items (#25248)

This commit is contained in:
Jed Fox
2023-06-02 13:58:18 -04:00
committed by GitHub
parent 0766c9a631
commit 768b00c4d0
19 changed files with 102 additions and 27 deletions

View File

@ -81,6 +81,15 @@ module.exports = {
{ property: 'substring', message: 'Use .slice instead of .substring.' },
{ property: 'substr', message: 'Use .slice instead of .substr.' },
],
'no-restricted-syntax': [
'error',
{
// eslint-disable-next-line no-restricted-syntax
selector: 'Literal[value=/•/], JSXText[value=/•/]',
// eslint-disable-next-line no-restricted-syntax
message: "Use '·' (middle dot) instead of '•' (bullet)",
},
],
'no-self-assign': 'off',
'no-unused-expressions': 'error',
'no-unused-vars': 'off',