-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update external major (major) (#99)
* chore(deps): update external major * chore(deps): use eslint v9 * chore(deps): remove eslint-plugin-header * chore(lint): move eslint to separate directory --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dominique Pfister <[email protected]>
- Loading branch information
1 parent
fc17d2c
commit f8cc847
Showing
16 changed files
with
2,464 additions
and
1,524 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* 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 | ||
* | ||
* 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. | ||
*/ | ||
import config from './eslint/index.js'; | ||
|
||
export default [ | ||
...config, | ||
{ | ||
ignores: [ | ||
'.vscode/**', | ||
'coverage/**', | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"use strict"; | ||
|
||
// This is a really simple and dumb parser, that looks just for a | ||
// single kind of comment. It won't detect multiple block comments. | ||
|
||
module.exports = function commentParser(text) { | ||
text = text.trim(); | ||
|
||
if (text.substr(0, 2) === "//") { | ||
return [ | ||
"line", | ||
text.split(/\r?\n/).map(function(line) { | ||
return line.substr(2); | ||
}) | ||
]; | ||
} else if ( | ||
text.substr(0, 2) === "/*" && | ||
text.substr(-2) === "*/" | ||
) { | ||
return ["block", text.substring(2, text.length - 2)]; | ||
} else { | ||
throw new Error("Could not parse comment file: the file must contain either just line comments (//) or a single block comment (/* ... */)"); | ||
} | ||
}; |
Oops, something went wrong.