-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alexandre Philibeaux <[email protected]>
- Loading branch information
Showing
9 changed files
with
98 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,9 +53,9 @@ jobs: | |
- run: pnpm run build | ||
- run: pnpm run test:coverage | ||
- uses: codecov/[email protected] | ||
with: | ||
with: | ||
files: packages/**/coverage/cobertura-coverage.xml | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true | ||
|
||
test-types: | ||
|
@@ -75,4 +75,3 @@ jobs: | |
- run: pnpm install | ||
- run: pnpm run build | ||
- run: pnpm run test:types | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
|
||
name: Pull Request | ||
on: | ||
pull_request: | ||
types: ['opened', 'edited', 'reopened', 'synchronize'] | ||
merge_group: | ||
|
||
jobs: | ||
check-title: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 20 | ||
check-latest: true | ||
cache: 'pnpm' | ||
- run: pnpm install | ||
- name: Check PR title | ||
env: | ||
TITLE: ${{ github.event.pull_request.title }} | ||
run: echo "$TITLE" | pnpm commitlint | ||
|
||
- uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 20 | ||
check-latest: true | ||
cache: 'pnpm' | ||
- run: pnpm install | ||
- name: Check PR title | ||
env: | ||
TITLE: ${{ github.event.pull_request.title }} | ||
run: echo "$TITLE" | pnpm commitlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
{ | ||
"name": "root", | ||
"private": true, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"workspaces": ["packages/*"], | ||
"type": "module", | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
@@ -74,21 +72,13 @@ | |
} | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
"extends": ["@commitlint/config-conventional"] | ||
}, | ||
"lint-staged": { | ||
"*.(j|t)s?(x)": [ | ||
"biome format --write .", | ||
"eslint --fix" | ||
], | ||
"*.json": [ | ||
"biome format --write ." | ||
], | ||
"*.mdx": [ | ||
"biome format --write ." | ||
] | ||
"*.(j|t)s?(x)": ["biome format --write .", "eslint --fix"], | ||
"*.json": ["biome format --write ."], | ||
"*.y(a)ml,": ["pnpm dlx prettier --write '**/*.{yml,yaml}' --single-quote"], | ||
"*.mdx": ["biome format --write ."] | ||
}, | ||
"config": { | ||
"commitizen": { | ||
|
@@ -97,21 +87,10 @@ | |
}, | ||
"jest": { | ||
"testEnvironment": "jsdom", | ||
"setupFiles": [ | ||
"jest-localstorage-mock" | ||
], | ||
"collectCoverageFrom": [ | ||
"packages/*/src/**/*.{ts,tsx,js,jsx}" | ||
], | ||
"modulePathIgnorePatterns": [ | ||
"locales", | ||
"__typetests__", | ||
"dist" | ||
], | ||
"coverageReporters": [ | ||
"text", | ||
"cobertura" | ||
], | ||
"setupFiles": ["jest-localstorage-mock"], | ||
"collectCoverageFrom": ["packages/*/src/**/*.{ts,tsx,js,jsx}"], | ||
"modulePathIgnorePatterns": ["locales", "__typetests__", "dist"], | ||
"coverageReporters": ["text", "cobertura"], | ||
"transformIgnorePatterns": [ | ||
"node_modules/(?!(.*(query-string|decode-uri-component|split-on-first|filter-obj)))" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import emotion from "./emotion.mjs"; | ||
import javascript from "./javascript.mjs"; | ||
import typescript from "./typescript.mjs"; | ||
import emotion from './emotion.mjs' | ||
import javascript from './javascript.mjs' | ||
import typescript from './typescript.mjs' | ||
|
||
export { emotion, javascript, typescript }; | ||
export { emotion, javascript, typescript } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import { fixupConfigRules } from "@eslint/compat"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
import airbnb from "eslint-config-airbnb"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import shared from "./shared.mjs"; | ||
import { fixupConfigRules } from '@eslint/compat' | ||
import { FlatCompat } from '@eslint/eslintrc' | ||
import airbnb from 'eslint-config-airbnb' | ||
import path from 'node:path' | ||
import { fileURLToPath } from 'node:url' | ||
import shared from './shared.mjs' | ||
|
||
const filename = fileURLToPath(import.meta.url); | ||
const dirname = path.dirname(filename); | ||
const filename = fileURLToPath(import.meta.url) | ||
const dirname = path.dirname(filename) | ||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: dirname, | ||
}); | ||
baseDirectory: dirname, | ||
}) | ||
|
||
export default [ | ||
...fixupConfigRules(compat.config(airbnb)), | ||
...shared, | ||
{ | ||
rules: { | ||
"react/jsx-filename-extension": [ | ||
"error", | ||
{ | ||
extensions: [".js"], | ||
}, | ||
], | ||
}, | ||
}, | ||
]; | ||
...fixupConfigRules(compat.config(airbnb)), | ||
...shared, | ||
{ | ||
rules: { | ||
'react/jsx-filename-extension': [ | ||
'error', | ||
{ | ||
extensions: ['.js'], | ||
}, | ||
], | ||
}, | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
packages: | ||
- 'packages/*' | ||
- 'packages/*' |