Skip to content

Commit

Permalink
feat: export recommended configs
Browse files Browse the repository at this point in the history
  • Loading branch information
skarab42 committed Dec 31, 2023
1 parent a468f86 commit 13b0faf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { config } = require('./output/eslint-config/config');

module.exports = config({ type: 'commonjs', environments: ['node', 'browser'] });
module.exports = {
extends: ['@skarab/eslint-config/configs/recommended-commonjs'],
};
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@
"type": "commonjs",
"main": "./output/eslint-config/index.js",
"types": "./output/eslint-config/index.d.ts",
"exports": {
".": "./output/eslint-config/index.js",
"./recommended": "./output/eslint-config/configs/recommended.js",
"./configs": "./output/eslint-config/configs/index.js",
"./configs/*": "./output/eslint-config/configs/*.js",
"./configs/*.js": "./output/eslint-config/configs/*.js",
"./overrides": "./output/eslint-config/overrides/index.js",
"./overrides/*": "./output/eslint-config/overrides/*.js",
"./overrides/*.js": "./output/eslint-config/overrides/*.js",
"./package.json": "./package.json"
},
"bin": {
"eslint-staged": "./output/eslint-staged/index.js"
},
Expand Down
3 changes: 3 additions & 0 deletions source/eslint-config/configs/recommended-commonjs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { config } from '../config';

export = config({ type: 'commonjs' });
3 changes: 3 additions & 0 deletions source/eslint-config/configs/recommended.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { config } from '../config';

export = config();

0 comments on commit 13b0faf

Please sign in to comment.