-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🩹 (config) NICE-54 eslint|lint-staged|prettiier upgrades [b] (#1133)
**Update:** - [x] 🩹 (eslint) NICE-54 package upgrades - [x] 🩹 (lint-staged) NICE-54 add micromatch; root package improve - Eh, customized rules -- again -- if you are using this you are probably creating your own something not using these - [x] 🩹 (prettier): NICE-54 remove pretty-quick; package root improve **Add:** - [x] ~~TBD: lighthouse-config~~ - [x] ~~TBD: next-config~~ - [x] ~~TBD: playwright-config~~ - [x] ~~TBD: storybook-config~~ - [x] ~~TBD: tailwind-config~~ **Pause:** - [x] ⏸️ (config) NICE-54 jest-config - [x] ⏸️ (config) NICE-54 jest-presets - [x] ⏸️ everything why am i not outside enjoying the day
- Loading branch information
1 parent
f19767e
commit 6069d52
Showing
32 changed files
with
524 additions
and
288 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# @note(husky) 🚩 Feature Flags: Opt-out by setting to 0 | ||
HUSKY__PRE_COMMIT__FORMAT=1 | ||
HUSKY__PRE_COMMIT__LINT=1 | ||
HUSKY__PRE_COMMIT__LINT_STAGED=1 | ||
HUSKY__PREPARE_COMMITMSG__CONVENTIONAL=1 |
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
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# in-progress |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "@jeromefitz/jest-config", | ||
"version": "0.0.0", | ||
"type": "commonjs", | ||
"description": "Jest Configuration", | ||
"repository": "jeromefitz/packages.git", | ||
"author": { | ||
"name": "Jerome Fitzgerald", | ||
"email": "[email protected]", | ||
"url": "https://jeromefitzgerald.com" | ||
}, | ||
"license": "MIT", | ||
"private": false, | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"scripts": { | ||
"build": "pnpm run clean && pnpm run copy", | ||
"clean": "rm -rf .turbo && rm -rf dist", | ||
"clean:install": "pnpm run clean && rm -rf node_modules", | ||
"copy": "mkdir -p ./dist && ./scripts/copy.sh", | ||
"semantic-release": "semantic-release" | ||
}, | ||
"peerDependencies": { | ||
"@jeromefitz/jest-presets": "^1.0.0", | ||
"next": "^13.3.3" | ||
}, | ||
"dependencies": { | ||
"@testing-library/dom": "9.3.1", | ||
"@testing-library/jest-dom": "5.16.5", | ||
"@testing-library/react": "14.0.0", | ||
"@testing-library/user-event": "14.4.3", | ||
"@types/jest": "29.5.2", | ||
"@types/testing-library__jest-dom": "5.14.7", | ||
"jest": "29.6.0", | ||
"jest-environment-jsdom": "29.6.1" | ||
}, | ||
"devDependencies": { | ||
"@jeromefitz/jest-presets": "workspace:*", | ||
"next": "13.3.3" | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"sideEffects": false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* eslint-disable import/order */ | ||
const isCI = require('is-ci') | ||
!isCI && require('dotenv').config({ path: '../../.env' }) | ||
|
||
const { config: configDefault } = require('../../release.config.cjs') | ||
const { getConfig } = require('@jeromefitz/semantic') | ||
|
||
const { name } = require('./package.json') | ||
|
||
const branches = [ | ||
...configDefault.branches, | ||
{ name: 'refactor/NICE-54', prerelease: 'canary' }, | ||
] | ||
|
||
const configPassed = { | ||
...configDefault, | ||
branches, | ||
tagFormat: `${name}@\${version}`, | ||
} | ||
|
||
const config = getConfig(configPassed) | ||
|
||
module.exports = config |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
### | ||
# @note(build): NPM Publishes from `./dist` | ||
### | ||
|
||
cp package.json ./dist/ | ||
cp README.md ./dist/ | ||
cp ../../LICENSE ./dist/ | ||
|
||
### | ||
# @note(build): Replace `dist/index` w/ `index` | ||
### | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
sed -i "" "s|dist/index|index|g" dist/package.json | ||
else | ||
sed -i -e "s|dist/index|index|g" dist/package.json | ||
fi | ||
else | ||
sed -i -e "s|dist/index|index|g" dist/package.json | ||
fi | ||
|
||
### | ||
# @custom(build) jest | ||
### | ||
|
||
cp ./src/* ./dist | ||
|
||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
sed -i "" "s|src/index|index|g" dist/package.json | ||
else | ||
sed -i -e "s|src/index|index|g" dist/package.json | ||
fi | ||
|
||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
sed -i "" "s|jest-presets/src/jest|jest-presets/jest|g" dist/jest.config.js | ||
else | ||
sed -i -e "s|jest-presets/src/jest|jest-presets/jest|g" dist/jest.config.js | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const jestNode = require('@jeromefitz/jest-presets/jest/node/jest-preset') | ||
const jestNext = require('next/jest') | ||
|
||
/** @type {import('jest').Config} */ | ||
const config = { | ||
coverageReporters: ['text', 'html'], | ||
// preset: '@jeromefitz/jest-presets/jest/node', | ||
setupFilesAfterEnv: ['@jeromefitz/jest-config/jest.setup.js'], | ||
testEnvironment: 'jest-environment-jsdom', | ||
watchman: false, | ||
...jestNode, | ||
} | ||
|
||
const defineConfig = jestNext({ dir: './' }) | ||
module.exports = defineConfig(config) |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
import '@testing-library/jest-dom/extend-expect' |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# in-progress |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "@jeromefitz/jest-presets", | ||
"version": "0.0.0", | ||
"type": "commonjs", | ||
"description": "Jest Presets Configuration", | ||
"repository": "jeromefitz/packages.git", | ||
"author": { | ||
"name": "Jerome Fitzgerald", | ||
"email": "[email protected]", | ||
"url": "https://jeromefitzgerald.com" | ||
}, | ||
"license": "MIT", | ||
"private": false, | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"main": "./src/jest/node/jest-preset.js", | ||
"scripts": { | ||
"build": "pnpm run clean && pnpm run copy", | ||
"clean": "rm -rf .turbo && rm -rf dist", | ||
"clean:install": "pnpm run clean && rm -rf node_modules", | ||
"copy": "mkdir -p ./dist && ./scripts/copy.sh", | ||
"semantic-release": "semantic-release" | ||
}, | ||
"dependencies": { | ||
"ts-jest": "29.1.1" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* eslint-disable import/order */ | ||
const isCI = require('is-ci') | ||
!isCI && require('dotenv').config({ path: '../../.env' }) | ||
|
||
const { config: configDefault } = require('../../release.config.cjs') | ||
const { getConfig } = require('@jeromefitz/semantic') | ||
|
||
const { name } = require('./package.json') | ||
|
||
const branches = [ | ||
...configDefault.branches, | ||
{ name: 'refactor/NICE-54', prerelease: 'canary' }, | ||
] | ||
|
||
const configPassed = { | ||
...configDefault, | ||
branches, | ||
tagFormat: `${name}@\${version}`, | ||
} | ||
|
||
const config = getConfig(configPassed) | ||
|
||
module.exports = config |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
### | ||
# @note(build): NPM Publishes from `./dist` | ||
### | ||
|
||
cp package.json ./dist/ | ||
cp README.md ./dist/ | ||
cp ../../LICENSE ./dist/ | ||
|
||
### | ||
# @note(build): Replace `dist/index` w/ `index` | ||
### | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
sed -i "" "s|dist/index|index|g" dist/package.json | ||
else | ||
sed -i -e "s|dist/index|index|g" dist/package.json | ||
fi | ||
else | ||
sed -i -e "s|dist/index|index|g" dist/package.json | ||
fi | ||
|
||
### | ||
# @custom(build) jest-presets | ||
### | ||
|
||
mkdir -p ./dist/jest/node | ||
cp ./src/jest/node/* ./dist/jest/node | ||
|
||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
sed -i "" "s|src/index|index|g" dist/package.json | ||
else | ||
sed -i -e "s|src/index|index|g" dist/package.json | ||
fi | ||
|
||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
sed -i "" "s|src/jest|jest|g" dist/package.json | ||
else | ||
sed -i -e "s|src/jest|jest|g" dist/package.json | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
roots: ['<rootDir>'], | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest', | ||
}, | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
modulePathIgnorePatterns: [ | ||
'<rootDir>/test/__fixtures__', | ||
'<rootDir>/node_modules', | ||
'<rootDir>/dist', | ||
], | ||
preset: 'ts-jest', | ||
} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# in-progress |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "@jeromefitz/lighthouse-config", | ||
"version": "0.0.0", | ||
"type": "module", | ||
"description": "Lighthouse Configuration", | ||
"repository": "jeromefitz/packages.git", | ||
"author": { | ||
"name": "Jerome Fitzgerald", | ||
"email": "[email protected]", | ||
"url": "https://jeromefitzgerald.com" | ||
}, | ||
"license": "MIT", | ||
"private": false, | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"main": "./src/lighthouse.config.cjs", | ||
"module": "./src/lighthouse.config.cjs", | ||
"scripts": { | ||
"build": "pnpm run clean && pnpm run copy", | ||
"clean": "rm -rf .turbo && rm -rf dist", | ||
"clean:install": "pnpm run clean && rm -rf node_modules", | ||
"copy": "mkdir -p ./dist && ./scripts/copy.sh", | ||
"dev": "echo '# tsup-node --watch'", | ||
"format:lint": "pnpm run lint:eslint --fix && pnpm run format:prettier --write", | ||
"format:prettier": "prettier \"./src/**/*.{cjs,js,jsx,mjs,ts,tsx,json,md,mdx,css,html,yml,yaml,scss}\" --ignore-unknown --loglevel warn", | ||
"lint": "pnpm run format:prettier --check && pnpm run lint:eslint", | ||
"lint:eslint": "eslint ./src --ext cjs,js,jsx,mjs,ts,tsx --max-warnings=0", | ||
"semantic-release": "semantic-release" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* eslint-disable import/order */ | ||
const isCI = require('is-ci') | ||
!isCI && require('dotenv').config({ path: '../../.env' }) | ||
|
||
const { config: configDefault } = require('../../release.config.cjs') | ||
const { getConfig } = require('@jeromefitz/semantic') | ||
|
||
const { name } = require('./package.json') | ||
|
||
const branches = [ | ||
...configDefault.branches, | ||
{ name: 'refactor/NICE-54', prerelease: 'canary' }, | ||
] | ||
|
||
const configPassed = { | ||
...configDefault, | ||
branches, | ||
tagFormat: `${name}@\${version}`, | ||
} | ||
|
||
const config = getConfig(configPassed) | ||
|
||
module.exports = config |
Oops, something went wrong.