mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-06-07 13:49:54 +00:00
Maintenance work
Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
146aad93fa
commit
83705dd880
@ -6,3 +6,7 @@ indent_size = 4
|
|||||||
charset = utf-8
|
charset = utf-8
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.{yaml|yml}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
2
.github/workflows/node.js.yml
vendored
2
.github/workflows/node.js.yml
vendored
@ -9,7 +9,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- 'data/**'
|
- 'data/**'
|
||||||
- 'legals.ts'
|
- 'meta/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
to use it launch
|
|
||||||
|
|
||||||
```
|
|
||||||
yarn jscodeshift -t ./codeshift/index.ts --extensions=ts --parser=ts ./data/Serie/Set --print --dry
|
|
||||||
```
|
|
@ -1,9 +1,5 @@
|
|||||||
import { ArrayExpression, Identifier, JSCodeshift, Literal, ObjectExpression, Property, Transform } from "jscodeshift";
|
import { ArrayExpression, Identifier, JSCodeshift, Literal, ObjectExpression, Property, Transform } from "jscodeshift";
|
||||||
|
|
||||||
/**
|
|
||||||
* This file is ran when there is mass changes being done
|
|
||||||
*/
|
|
||||||
|
|
||||||
interface ObjectField {
|
interface ObjectField {
|
||||||
type: 'Object'
|
type: 'Object'
|
||||||
items: Record<string, Field>
|
items: Record<string, Field>
|
||||||
@ -82,6 +78,9 @@ function set(j: JSCodeshift, path: ObjectExpression | ArrayExpression, value: Po
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Start editing here !
|
||||||
|
*/
|
||||||
const transformer: Transform = (file, api) => {
|
const transformer: Transform = (file, api) => {
|
||||||
const j = api.jscodeshift
|
const j = api.jscodeshift
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
import { Filter } from './interfaces'
|
import { Filter } from '../interfaces'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* File Explanation
|
* File Explanation
|
||||||
@ -10,7 +10,7 @@ import { Filter } from './interfaces'
|
|||||||
* - 2021: https://www.pokemon.com/us/pokemon-news/2021-season-pokemon-tcg-format-rotation/
|
* - 2021: https://www.pokemon.com/us/pokemon-news/2021-season-pokemon-tcg-format-rotation/
|
||||||
* - 2020: https://www.pokemon.com/us/pokemon-news/2020-season-pokemon-tcg-format-rotation/
|
* - 2020: https://www.pokemon.com/us/pokemon-news/2020-season-pokemon-tcg-format-rotation/
|
||||||
*
|
*
|
||||||
* For banned cards we are currently following this webpage
|
* For banned cards we are also following this webpage
|
||||||
* - https://www.pokemon.com/us/pokemon-tcg-banned-card-list/
|
* - https://www.pokemon.com/us/pokemon-tcg-banned-card-list/
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user