Skip to content

Commit

Permalink
refactor(eslint-config)!: refactor petal to defineConfig standard and…
Browse files Browse the repository at this point in the history
… bump deps
  • Loading branch information
pauliesnug committed Jul 23, 2024
1 parent fdad8c6 commit b659c3a
Show file tree
Hide file tree
Showing 31 changed files with 1,726 additions and 848 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/autofix.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
release:
name: 'release: ubuntu-latest (node@lts/*)'
permissions:
id-token: write
contents: write
Expand Down
9 changes: 1 addition & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages/eslint-config/src/typegen.d.ts
packages/eslint-config/src/types/typegen.d.ts
packages/eslint-config/.eslint-config-inspector
packages/eslint-config/_fixtures

Expand Down Expand Up @@ -230,10 +230,3 @@ dist
# .pnp.*

# End of https://www.toptal.com/developers/gitignore/api/node,yarn,git,macos,visualstudiocode


# petal generated files
cjs/
esm/
types/
build/
14 changes: 3 additions & 11 deletions changelogithub.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { defineConfig } from 'changelogithub';

export default defineConfig({
scopeMap: {},
export default {
types: {
chore: { title: '🔨 Chores' },
feature: { title: '✨ Features' },
Expand All @@ -15,10 +12,5 @@ export default defineConfig({
deploy: { title: '🚀 Deployments' },
wip: { title: '🚧 Experiments' },
},
titles: {
breakingChanges: '🚨 Breaking Changes',
},
contributors: true,
capitalize: true,
group: true,
});
capitalize: false,
};
22 changes: 5 additions & 17 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
// @ts-expect-error missing types
import styleMigrate from '@stylistic/eslint-plugin-migrate';
import { petal } from '@flowr/eslint-config';
import { defineConfig } from '@flowr/eslint-config';

export default petal(
export default defineConfig(
{
typescript: true,
astro: false,
type: 'lib',
},
{
name: 'ignores',
name: 'user/ignores/fixtures',
ignores: [
'fixtures',
'_fixtures',
Expand All @@ -18,24 +16,14 @@ export default petal(
],
},
{
name: 'sort/objects',
name: 'user/perfectionist/sort',
files: ['packages/eslint-config/src/**/*.ts'],
rules: {
'perfectionist/sort-objects': 'error',
},
},
{
name: 'style/migrate',
files: ['packages/eslint-config/src/configs/*.ts'],
plugins: {
'style-migrate': styleMigrate,
},
rules: {
'style-migrate/migrate': ['error', { namespaceTo: 'style' }],
},
},
{
name: 'tests',
name: 'user/test/indent',
files: ['packages/eslint-plugin/src/rules/**/*.test.ts'],
rules: {
'petal/indent-unindent': 'error',
Expand Down
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "3.9.1",
"private": true,
"packageManager": "pnpm@9.5.0",
"packageManager": "pnpm@9.6.0",
"engineStrict": true,
"author": "Petal Contributors",
"license": "MIT",
Expand Down Expand Up @@ -39,19 +39,17 @@
"devDependencies": {
"@flowr/eslint-config": "workspace:^",
"@flowr/tsconfig": "workspace:^",
"@stylistic/eslint-plugin-migrate": "^2.6.0-beta.0",
"@types/node": "^20.14.11",
"@types/node": "^20.14.12",
"bumpp": "^9.4.1",
"changelogithub": "^0.13.9",
"esbuild": "^0.23.0",
"eslint": "npm:eslint-ts-patch@9.5.0-0",
"eslint-ts-patch": "9.5.0-0",
"tsup": "^8.2.0",
"tsup": "^8.2.2",
"tsx": "~4.16.2",
"typescript": "^5.5.3",
"typescript": "^5.5.4",
"unbuild": "^2.0.0",
"vite": "^5.3.4",
"vitest": "^2.0.3"
"vitest": "^2.0.4"
},
"resolutions": {
"tsx": "~4.16.2"
Expand Down
Loading

0 comments on commit b659c3a

Please sign in to comment.