Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: improve stylelint rule #2415

Merged
merged 4 commits into from
Mar 21, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat(header-lint): allow for rule configuration
  • Loading branch information
ayshiff committed Mar 15, 2020
commit 1991c657f7a6d75ba27b190a1dafbc75c38f927a
16 changes: 13 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ module.exports = {
parserOptions: {
allowImportExportEverywhere: true,
},
globals: {
testRule: true,
},
extends: ['airbnb', 'prettier', 'prettier/react'],
plugins: ['react-hooks', 'header'],
rules: {
Expand All @@ -36,10 +39,17 @@ module.exports = {
'block',
[
'*',
' * Copyright (c) Facebook, Inc. and its affiliates.',
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why these changes?

pattern: ' * Copyright \\(c\\) Facebook, Inc. and its affiliates.',
},
' *',
' * This source code is licensed under the MIT license found in the',
' * LICENSE file in the root directory of this source tree.',
{
pattern:
' * This source code is licensed under the MIT license found in the',
},
{
pattern: ' * LICENSE file in the root directory of this source tree.',
},
' ',
],
],
Expand Down