1
0
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:
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

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

View File

@ -9,7 +9,7 @@ on:
- master - master
paths: paths:
- 'data/**' - 'data/**'
- 'legals.ts' - 'meta/**'
pull_request: pull_request:
jobs: 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"; 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

View File

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