mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-06-06 13:29:55 +00:00
Maintenance work
Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
146aad93fa
commit
83705dd880
@ -5,4 +5,8 @@ indent_style = tab
|
||||
indent_size = 4
|
||||
charset = utf-8
|
||||
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
|
||||
paths:
|
||||
- 'data/**'
|
||||
- 'legals.ts'
|
||||
- 'meta/**'
|
||||
pull_request:
|
||||
|
||||
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";
|
||||
|
||||
/**
|
||||
* This file is ran when there is mass changes being done
|
||||
*/
|
||||
|
||||
interface ObjectField {
|
||||
type: 'Object'
|
||||
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 j = api.jscodeshift
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Filter } from './interfaces'
|
||||
import { Filter } from '../interfaces'
|
||||
|
||||
/**
|
||||
* File Explanation
|
||||
@ -10,7 +10,7 @@ import { Filter } from './interfaces'
|
||||
* - 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/
|
||||
*
|
||||
* 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/
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user