mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-06 19:41:20 +00:00
chore: downgrade tj-actions/eslint-changed-files pending move to eslint 9 (#2124)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
60268df189
commit
4ae1154663
3 changed files with 15 additions and 8 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -60,7 +60,7 @@ jobs:
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
- name: Run eslint on changed files
|
- name: Run eslint on changed files
|
||||||
uses: tj-actions/eslint-changed-files@v25
|
uses: tj-actions/eslint-changed-files@v24
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.PAT_TOKEN }}
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
|
|
19
dist/index.js
generated
vendored
19
dist/index.js
generated
vendored
|
@ -67208,6 +67208,8 @@ class Lexer {
|
||||||
*/
|
*/
|
||||||
*lex(source, incomplete = false) {
|
*lex(source, incomplete = false) {
|
||||||
if (source) {
|
if (source) {
|
||||||
|
if (typeof source !== 'string')
|
||||||
|
throw TypeError('source is not a string');
|
||||||
this.buffer = this.buffer ? this.buffer + source : source;
|
this.buffer = this.buffer ? this.buffer + source : source;
|
||||||
this.lineEndPos = null;
|
this.lineEndPos = null;
|
||||||
}
|
}
|
||||||
|
@ -67307,11 +67309,16 @@ class Lexer {
|
||||||
}
|
}
|
||||||
if (line[0] === '%') {
|
if (line[0] === '%') {
|
||||||
let dirEnd = line.length;
|
let dirEnd = line.length;
|
||||||
const cs = line.indexOf('#');
|
let cs = line.indexOf('#');
|
||||||
if (cs !== -1) {
|
while (cs !== -1) {
|
||||||
const ch = line[cs - 1];
|
const ch = line[cs - 1];
|
||||||
if (ch === ' ' || ch === '\t')
|
if (ch === ' ' || ch === '\t') {
|
||||||
dirEnd = cs - 1;
|
dirEnd = cs - 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
cs = line.indexOf('#', cs + 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
while (true) {
|
while (true) {
|
||||||
const ch = line[dirEnd - 1];
|
const ch = line[dirEnd - 1];
|
||||||
|
@ -69081,7 +69088,7 @@ const floatNaN = {
|
||||||
identify: value => typeof value === 'number',
|
identify: value => typeof value === 'number',
|
||||||
default: true,
|
default: true,
|
||||||
tag: 'tag:yaml.org,2002:float',
|
tag: 'tag:yaml.org,2002:float',
|
||||||
test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
||||||
resolve: str => str.slice(-3).toLowerCase() === 'nan'
|
resolve: str => str.slice(-3).toLowerCase() === 'nan'
|
||||||
? NaN
|
? NaN
|
||||||
: str[0] === '-'
|
: str[0] === '-'
|
||||||
|
@ -69498,7 +69505,7 @@ const floatNaN = {
|
||||||
identify: value => typeof value === 'number',
|
identify: value => typeof value === 'number',
|
||||||
default: true,
|
default: true,
|
||||||
tag: 'tag:yaml.org,2002:float',
|
tag: 'tag:yaml.org,2002:float',
|
||||||
test: /^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
||||||
resolve: (str) => str.slice(-3).toLowerCase() === 'nan'
|
resolve: (str) => str.slice(-3).toLowerCase() === 'nan'
|
||||||
? NaN
|
? NaN
|
||||||
: str[0] === '-'
|
: str[0] === '-'
|
||||||
|
@ -70690,7 +70697,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
||||||
if (keyComment) {
|
if (keyComment) {
|
||||||
throw new Error('With simple keys, key nodes cannot have comments');
|
throw new Error('With simple keys, key nodes cannot have comments');
|
||||||
}
|
}
|
||||||
if (identity.isCollection(key)) {
|
if (identity.isCollection(key) || (!identity.isNode(key) && typeof key === 'object')) {
|
||||||
const msg = 'With simple keys, collection cannot be used as a key value';
|
const msg = 'With simple keys, collection cannot be used as a key value';
|
||||||
throw new Error(msg);
|
throw new Error(msg);
|
||||||
}
|
}
|
||||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue