Skip to content

Commit

Permalink
meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnapo committed Jun 14, 2024
1 parent 2e959ff commit 08d3509
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 3 additions & 1 deletion configs/default.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import globals from "globals";
import { FlatCompat } from "@eslint/eslintrc";
import eslintPluginUnicorn from "eslint-plugin-unicorn";
import eslintPluginStylistic from "@stylistic/eslint-plugin";
Expand All @@ -18,6 +19,7 @@ const config = [
},
languageOptions: {
ecmaVersion: 15,
globals: globals.nodeBuiltin,
},
},
{
Expand Down Expand Up @@ -114,4 +116,4 @@ const config = [
},
];

export default config;
export default config.map(cfg => ({ ...cfg, name: "iamnapo/default" }));
2 changes: 1 addition & 1 deletion configs/react-typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ const config = [
...typescriptConfig,
];

export default config;
export default config.map(cfg => ({ ...cfg, name: "iamnapo/react-typescript" }));
6 changes: 2 additions & 4 deletions configs/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ const config = [
},
{
languageOptions: {
globals: {
...globals.browser,
},
globals: globals.browser,
parserOptions: {
ecmaVersion: 15,
ecmaFeatures: {
Expand Down Expand Up @@ -84,4 +82,4 @@ const config = [
},
];

export default config;
export default config.map(cfg => ({ ...cfg, name: "iamnapo/react" }));
2 changes: 1 addition & 1 deletion configs/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ const config = (reactSupport = false) => [
];

export const configReact = config(true);
export default config(false);
export default config(false).map(cfg => ({ ...cfg, name: "iamnapo/typescript" }));
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-unicorn": "^53.0.0",
"globals": "^15.3.0",
"typescript-eslint": "^7.10.0"
"eslint-plugin-unicorn": "^54.0.0",
"globals": "^15.4.0",
"typescript-eslint": "^7.13.0"
},
"devDependencies": {
"eslint": "^8.57.0",
Expand All @@ -63,7 +63,7 @@
}
},
"engines": {
"node": ">=20"
"node": ">=20.11"
},
"publishConfig": {
"access": "public",
Expand Down

0 comments on commit 08d3509

Please sign in to comment.