Skip to content

Commit

Permalink
feat(config): eslint consolidation
Browse files Browse the repository at this point in the history
  • Loading branch information
csantiago132 committed Dec 8, 2024
1 parent c08ed12 commit c14ddb3
Show file tree
Hide file tree
Showing 16 changed files with 249 additions and 139 deletions.
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/*',
],
},
];
26 changes: 15 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 @@ -111,10 +115,10 @@
"vitest": "^2.1.3",
"vitest-axe": "^0.1.0"
},
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"copyfiles": "^2.4.1"
}
}
85 changes: 85 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c14ddb3

Please sign in to comment.