Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
73 changes: 70 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Adobe. All rights reserved.
* Copyright 2022 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 All @@ -9,8 +9,75 @@
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/

module.exports = {
root: true,
extends: '@adobe/helix',
extends: [
'eslint-config-airbnb-base',
].map(require.resolve),

env: {
node: true,
es2020: true,
},
parserOptions: {
sourceType: 'script',
ecmaVersion: 11,
},
plugins: [
'header',
],
rules: {
strict: 0,

// Forbid multiple statements in one line
'max-statements-per-line': ['error', { max: 1 }],

// Allow for-of loops
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],

// Allow return before else & redundant else statements
'no-else-return': 'off',

// allow dangling underscores for 'fields'
'no-underscore-dangle': ['error', {
allowAfterThis: true,
allow: [
'__ow_method',
'__ow_headers',
'__ow_path',
'__ow_user',
'__ow_body',
'__ow_query'],
}],

// allow '_' as a throw-away variable
'no-unused-vars': ['error', {
argsIgnorePattern: '^_$',
}],

'no-shadow': ['error', {
allow: ['_'],
}],

// don't enforce extension rules
'import/extensions': 0,

// enforce license header
'header/header': [2, 'block', ['',
{ pattern: ' * Copyright \\d{4} Adobe\\. All rights reserved\\.', template: ' * Copyright 2022 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',
' *',
' * Unless required by applicable law or agreed to in writing, software distributed under',
' * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS',
' * OF ANY KIND, either express or implied. See the License for the specific language',
' * governing permissions and limitations under the License.',
' ',
]],

'id-match': ['error', '^(?!.*?([wW][hH][iI][tT][eE]|[bB][lL][aA][cC][kK]).*[lL][iI][sS][tT]).*$', {
properties: true,
}],
},
};
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Version:**
run: `$ hlx --version`
The version of @adobe/fetch used.

**Additional context**
Add any other context about the problem here.
40 changes: 39 additions & 1 deletion .renovaterc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
{
"extends": ["github>adobe/helix-shared"]
"extends": [
"config:base",
":semanticCommits",
":autodetectPinVersions"
],
"timezone": "Europe/Zurich",
"branchPrefix": "renovate-",
"packageRules": [
{
"packageNames": ["circleci/node"],
"allowedVersions": "<15"
},
{
"packageNames": ["cimg/node"],
"allowedVersions": "<15"
},
{
"groupName": "external fixes",
"updateTypes": ["patch", "pin", "digest", "minor"],
"automerge": true,
"schedule": ["after 2pm on Saturday"],
"packagePatterns": ["^.+"]
},
{
"groupName": "external major",
"updateTypes": ["major"],
"automerge": false,
"packagePatterns": ["^.+"],
"schedule": ["after 2pm on Monday"]
},
{
"datasources": ["orb"],
"updateTypes": ["patch", "minor"],
"automerge": true
}
],
"encrypted": {
"npmToken": "ohOXR8y4hdfHs/2go7YBdEwkhCFA+atc0qqw0UdLoAkKITfpmD538MiXVQf1ZgRFfnmVyHy9uf9KV9DH0fSHl4QDbOZ/+0Y4JgalbaC0LgpWrvZIa3JRarMhfEq8oM2ZVCZrJQehLyh2zKTnkeiTRQWMQwNPOIbByJAqhRwzwCJWjHQk8ztC6T2DyJPO6KvkOusTRY2SN19FmkccUBRyAWdR6IkHels3zlQOnKPNx+FJRp9J1RLzHMlFmJ7878wrAoFBrSKRq6fSWfCro4q5iPe7xih2JvRzZmPX2vi/7KBktzBVr+1Pjr8C4XPX9I6NNztDEGlAJNLLQX2da6ZTjg=="
}
}
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing to Project Helix
# Contributing to `@adobe/fetch`

This project (like almost all of Project Helix) is an Open Development project and welcomes contributions from everyone who finds it useful or lacking.
This project is an Open Development project and welcomes contributions from everyone who finds it useful or lacking.

## Code Of Conduct

Expand Down
Loading