Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): eslint consolidation #81

Merged
merged 3 commits into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,13 @@ jobs:
uses: kurocado-studio/styleguide/.github/workflows/workflow.lint.yml@main
secrets: inherit

test:
needs: lint
uses: kurocado-studio/styleguide/.github/workflows/workflow.test.yml@main
secrets: inherit

document:
needs: test
needs: lint
uses: kurocado-studio/styleguide/.github/workflows/workflow.document.yml@main
secrets: inherit

release:
needs: test
needs: lint
uses: kurocado-studio/styleguide/.github/workflows/workflow.release.yml@main
secrets: inherit
with:
Expand Down
15 changes: 1 addition & 14 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Explore our open-source projects: {@link https://github.com/kurocado-studio}
*/
import { eslintNodeConfig } from './src/eslint/eslint.node.js';
import { eslintNodeConfig } from './src/index.js';

export default [
...eslintNodeConfig,
Expand All @@ -16,17 +16,4 @@ export default [
'sort-keys': 'error',
},
},
{
ignores: [
'src/vitest/setup.web.ts',
'src/vitest/setup.node.ts',
'src/vitest/vitest.web.ts',
'src/vitest/vitest.node.ts',
'dist/*',
'**/*.d.ts',
'node_modules',
'**/temp.js',
'config/*',
],
},
];
28 changes: 17 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,32 @@
},
"repository": {
"type": "git",
"url": "https://github.com/kurocado-studio/styleguide.git"
"url": "git+https://github.com/kurocado-studio/styleguide.git"
},
"license": "MIT",
"type": "module",
"scripts": {
"commitlint": "pnpm exec commitlint --edit",
"eslint-check": "eslint --max-warnings=0 .",
"eslint": "eslint --max-warnings=0 .",
"prepare": "husky install",
"prettier-check": "prettier --check . ",
"prettier-fix": "prettier --check . --write",
"semantic-release": "semantic-release",
"test": "echo \"no test specified\" && exit 0",
"build": "tsc"
"build": "tsc && copyfiles -u 1 src/tsconfig/*.json dist"
},
"main": "dist/index.js",
"module": "dist/index.js",
"files": [
"dist"
],
"exports": {
".": "./dist/index.js",
"./tsconfig/base": "./src/tsconfig/tsconfig.json",
"./tsconfig/node": "./src/tsconfig/tsconfig.node.json",
"./tsconfig/nestjs": "./src/tsconfig/tsconfig.nestjs.json",
"./tsconfig/react": "./src/tsconfig/tsconfig.react.json",
"./tsconfig/remix": "./src/tsconfig/tsconfig.remix.json"
"./tsconfig/base": "./dist/tsconfig/tsconfig.json",
"./tsconfig/node": "./dist/tsconfig/tsconfig.node.json",
"./tsconfig/nestjs": "./dist/tsconfig/tsconfig.nestjs.json",
"./tsconfig/react": "./dist/tsconfig/tsconfig.react.json",
"./tsconfig/remix": "./dist/tsconfig/tsconfig.remix.json"
},
"lint-staged": {
"*": [
Expand Down Expand Up @@ -81,12 +85,14 @@
"eslint-plugin-tsdoc": "^0.2.17",
"eslint-plugin-unicorn": "^51.0.1",
"eslint-plugin-vitest": "^0.5.4",
"globals": "^15.13.0",
"jsdom": "^25.0.1",
"lint-staged": "^15.2.10",
"prettier-plugin-packagejson": "^2.5.6",
"prettier-plugin-sort-imports": "^1.8.6",
"prettier-plugin-tailwindcss": "^0.6.9",
"semantic-release-github-pullrequest": "^1.3.0",
"typescript-eslint": "^8.17.0",
"url-join": "^4.0.1",
"vite-plugin-dts": "^4.3.0",
"vite-tsconfig-paths": "^5.1.3",
Expand All @@ -111,10 +117,10 @@
"vitest": "^2.1.3",
"vitest-axe": "^0.1.0"
},
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"copyfiles": "^2.4.1"
}
}
Loading
Loading