Skip to content

Commit

Permalink
chore: use all the shared configs
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Jul 30, 2024
1 parent 23f3463 commit 7d55c4d
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 97 deletions.
11 changes: 0 additions & 11 deletions .editorconfig

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
13 changes: 0 additions & 13 deletions .prettierrc.json

This file was deleted.

23 changes: 2 additions & 21 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
import prettierConfig from 'eslint-config-prettier';
import prettierPlugin from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import js from '@eslint/js';
import config from "@eik/eslint-config";

export default [
js.configs.recommended,
prettierConfig,
prettierPlugin,
{
languageOptions: {
globals: {
...globals.node,
...globals.browser,
global: true,
},
},
},
{
ignores: ['coverage/*', 'dist/*'],
},
];
export default config;
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"test": "run-s test:*",
"test:unit": "tap --disable-coverage --allow-empty-coverage tests/**/*.js",
"test:types": "tsc --project tsconfig.test.json",
"types": "tsc --declaration --emitDeclarationOnly"
"test": "tap --disable-coverage --allow-empty-coverage tests/**/*.js",
"types": "run-s types:module types:test",
"types:module": "tsc",
"types:test": "tsc --project tsconfig.test.json"
},
"repository": {
"type": "git",
Expand All @@ -38,15 +38,15 @@
"@metrics/client": "2.5.3"
},
"devDependencies": {
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
"eslint": "9.1.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.3",
"globals": "15.0.0",
"@eik/eslint-config": "1.0.0",
"@eik/prettier-config": "1.0.1",
"@eik/semantic-release-config": "1.0.0",
"@eik/typescript-config": "1.0.0",
"eslint": "9.8.0",
"npm-run-all": "4.1.5",
"prettier": "3.3.2",
"prettier": "3.3.3",
"semantic-release": "24.0.0",
"tap": "18.8.0"
"tap": "18.8.0",
"typescript": "5.5.4"
}
}
3 changes: 3 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import config from "@eik/prettier-config";

export default config;
21 changes: 0 additions & 21 deletions release.config.cjs

This file was deleted.

3 changes: 3 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
extends: "@eik/semantic-release-config",
};
15 changes: 3 additions & 12 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
{
"extends": "@eik/typescript-config/module.json",
"include": ["./lib/**/*.js"],
"compilerOptions": {
"lib": ["es2020", "DOM"],
"module": "nodenext",
"target": "es2020",
"resolveJsonModule": true,
"checkJs": true,
"allowJs": true,
"moduleResolution": "nodenext",
"declaration": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"outDir": "types"
},
"include": ["./lib/**/*.js"]
}
}
9 changes: 2 additions & 7 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["./tests/**/*.js"],
"compilerOptions": {
"module": "nodenext",
"moduleResolution": "nodenext",
"noEmit": true
}
"extends": "@eik/typescript-config/test.json",
"include": ["./tests/**/*.js"]
}

0 comments on commit 7d55c4d

Please sign in to comment.