1
0
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:
Florian Bouillon 2021-10-11 15:18:10 +02:00
parent 146aad93fa
commit 83705dd880
Signed by: Florian Bouillon
GPG Key ID: BEEAF3722D0EBF64
5 changed files with 11 additions and 13 deletions

View File

@ -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

View File

@ -9,7 +9,7 @@ on:
- master
paths:
- 'data/**'
- 'legals.ts'
- 'meta/**'
pull_request:
jobs:

View File

@ -1,5 +0,0 @@
to use it launch
```
yarn jscodeshift -t ./codeshift/index.ts --extensions=ts --parser=ts ./data/Serie/Set --print --dry
```

View File

@ -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

View File

@ -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/
*/