Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
improve eslint settings to deal with 2018 and 2019 in copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
tripodsan committed Feb 9, 2019
1 parent 17b0081 commit 517a955
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 Adobe. All rights reserved.
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
Expand Down Expand Up @@ -33,9 +33,9 @@ module.exports = {
// allow dangling underscores for 'fields'
'no-underscore-dangle': ['error', {'allowAfterThis': true}],

// enforce license header (todo: improve plugin to support patterns for multi-lines)
// enforce license header
'header/header': [2, 'block', ['',
' * Copyright 2018 Adobe. All rights reserved.',
{ pattern: ' * Copyright \\d{4} Adobe\\. All rights reserved\\.', template: ' * Copyright 2019 Adobe. All rights reserved.'},
' * This file is licensed to you under the Apache License, Version 2.0 (the "License");',
' * you may not use this file except in compliance with the License. You may obtain a copy',
' * of the License at http://www.apache.org/licenses/LICENSE-2.0',
Expand Down
47 changes: 33 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"codecov": "^3.0.4",
"eslint": "^5.4.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-header": "^2.0.0",
"eslint-plugin-header": "^3.0.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.11.1",
Expand Down

0 comments on commit 517a955

Please sign in to comment.