misc: update stylelint rule tester

This commit is contained in:
Yangshun Tay 2020-03-21 15:22:25 +08:00
parent b4f4057d97
commit c50df3003c
4 changed files with 72 additions and 85 deletions

View file

@ -21,7 +21,7 @@ module.exports = {
allowImportExportEverywhere: true,
},
globals: {
testRule: true,
testStylelintRule: true,
},
extends: ['airbnb', 'prettier', 'prettier/react'],
plugins: ['react-hooks', 'header'],
@ -39,17 +39,10 @@ module.exports = {
'block',
[
'*',
{
pattern: ' * Copyright \\(c\\) Facebook, Inc. and its affiliates.',
},
' * Copyright (c) Facebook, Inc. and its affiliates.',
' *',
{
pattern:
' * This source code is licensed under the MIT license found in the',
},
{
pattern: ' * LICENSE file in the root directory of this source tree.',
},
' * This source code is licensed under the MIT license found in the',
' * LICENSE file in the root directory of this source tree.',
' ',
],
],