Skip to content

Commit 043e46e

Browse files
committed
chore(license): improve license header and enforce it with eslint plugin
1 parent 6f82baf commit 043e46e

File tree

25 files changed

+17560
-17532
lines changed

25 files changed

+17560
-17532
lines changed

.eslintrc.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
"plugin:react/recommended",
1212
"plugin:prettier/recommended"
1313
],
14-
"plugins": ["prettier"],
14+
"plugins": ["prettier", "header"],
1515
"rules": {
16-
"prettier/prettier": ["error"],
16+
"prettier/prettier": ["error"],
17+
"header/header": ["error", "./header.txt"],
1718
"import/no-extraneous-dependencies": [
1819
"warn",
1920
{

config-overrides.js

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
module.exports = function override(config, env) {
1+
/** *******************************************************************************************************************
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. *
3+
* *
4+
* Licensed under the Apache License, Version 2.0 (the "License"). *
5+
* You may not use this file except in compliance with the License. *
6+
* You may obtain a copy of the License at *
7+
* *
8+
* http://www.apache.org/licenses/LICENSE-2.0 *
9+
* *
10+
* Unless required by applicable law or agreed to in writing, software *
11+
* distributed under the License is distributed on an "AS IS" BASIS, *
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+
* See the License for the specific language governing permissions and *
14+
* limitations under the License. *
15+
******************************************************************************************************************** */
16+
17+
// eslint-disable-next-line no-undef
18+
module.exports = function override(config) {
19+
// eslint-disable-next-line no-param-reassign
220
config.resolve.fallback = {
321
fs: false,
422
tls: false,

header.txt

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/** *******************************************************************************************************************
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. *
3+
* *
4+
* Licensed under the Apache License, Version 2.0 (the "License"). *
5+
* You may not use this file except in compliance with the License. *
6+
* You may obtain a copy of the License at *
7+
* *
8+
* http://www.apache.org/licenses/LICENSE-2.0 *
9+
* *
10+
* Unless required by applicable law or agreed to in writing, software *
11+
* distributed under the License is distributed on an "AS IS" BASIS, *
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+
* See the License for the specific language governing permissions and *
14+
* limitations under the License. *
15+
******************************************************************************************************************** */

package-lock.json

+17,259-17,278
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"eslint": "^7.32.0",
2525
"eslint-config-airbnb-base": "^14.2.1",
2626
"eslint-config-prettier": "^8.5.0",
27+
"eslint-plugin-header": "^3.1.1",
2728
"eslint-plugin-import": "^2.26.0",
2829
"eslint-plugin-prettier": "^4.2.1",
2930
"husky": "^7.0.4",

src/App.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/** *******************************************************************************************************************
2-
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License").
5-
You may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. *
3+
* *
4+
* Licensed under the Apache License, Version 2.0 (the "License"). *
5+
* You may not use this file except in compliance with the License. *
6+
* You may obtain a copy of the License at *
7+
* *
8+
* http://www.apache.org/licenses/LICENSE-2.0 *
9+
* *
10+
* Unless required by applicable law or agreed to in writing, software *
11+
* distributed under the License is distributed on an "AS IS" BASIS, *
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+
* See the License for the specific language governing permissions and *
14+
* limitations under the License. *
1515
******************************************************************************************************************** */
1616

1717
import React from 'react'

src/api/timestream.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/** *******************************************************************************************************************
2-
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License").
5-
You may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. *
3+
* *
4+
* Licensed under the Apache License, Version 2.0 (the "License"). *
5+
* You may not use this file except in compliance with the License. *
6+
* You may obtain a copy of the License at *
7+
* *
8+
* http://www.apache.org/licenses/LICENSE-2.0 *
9+
* *
10+
* Unless required by applicable law or agreed to in writing, software *
11+
* distributed under the License is distributed on an "AS IS" BASIS, *
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+
* See the License for the specific language governing permissions and *
14+
* limitations under the License. *
1515
******************************************************************************************************************** */
1616

1717
import * as qc from '@aws-sdk/client-timestream-query'

src/components/DatabaseConnectionComponent/index.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/** *******************************************************************************************************************
2-
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License").
5-
You may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. *
3+
* *
4+
* Licensed under the Apache License, Version 2.0 (the "License"). *
5+
* You may not use this file except in compliance with the License. *
6+
* You may obtain a copy of the License at *
7+
* *
8+
* http://www.apache.org/licenses/LICENSE-2.0 *
9+
* *
10+
* Unless required by applicable law or agreed to in writing, software *
11+
* distributed under the License is distributed on an "AS IS" BASIS, *
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+
* See the License for the specific language governing permissions and *
14+
* limitations under the License. *
1515
******************************************************************************************************************** */
1616

1717
import React, { useState } from 'react'

src/components/HeaderComponent/index.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/** *******************************************************************************************************************
2-
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License").
5-
You may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. *
3+
* *
4+
* Licensed under the Apache License, Version 2.0 (the "License"). *
5+
* You may not use this file except in compliance with the License. *
6+
* You may obtain a copy of the License at *
7+
* *
8+
* http://www.apache.org/licenses/LICENSE-2.0 *
9+
* *
10+
* Unless required by applicable law or agreed to in writing, software *
11+
* distributed under the License is distributed on an "AS IS" BASIS, *
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+
* See the License for the specific language governing permissions and *
14+
* limitations under the License. *
1515
******************************************************************************************************************** */
1616

1717
import React from 'react'

src/components/HelpComponent/index.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/** *******************************************************************************************************************
2-
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License").
5-
You may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. *
3+
* *
4+
* Licensed under the Apache License, Version 2.0 (the "License"). *
5+
* You may not use this file except in compliance with the License. *
6+
* You may obtain a copy of the License at *
7+
* *
8+
* http://www.apache.org/licenses/LICENSE-2.0 *
9+
* *
10+
* Unless required by applicable law or agreed to in writing, software *
11+
* distributed under the License is distributed on an "AS IS" BASIS, *
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+
* See the License for the specific language governing permissions and *
14+
* limitations under the License. *
1515
******************************************************************************************************************** */
1616

1717
import React from 'react'

src/components/NavigationBar/index.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/** *******************************************************************************************************************
2-
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License").
5-
You may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. *
3+
* *
4+
* Licensed under the Apache License, Version 2.0 (the "License"). *
5+
* You may not use this file except in compliance with the License. *
6+
* You may obtain a copy of the License at *
7+
* *
8+
* http://www.apache.org/licenses/LICENSE-2.0 *
9+
* *
10+
* Unless required by applicable law or agreed to in writing, software *
11+
* distributed under the License is distributed on an "AS IS" BASIS, *
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+
* See the License for the specific language governing permissions and *
14+
* limitations under the License. *
1515
******************************************************************************************************************** */
1616

1717
import React from 'react'

0 commit comments

Comments
 (0)