Skip to content

Commit

Permalink
build!: require node 16 and convert to module
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Nov 18, 2022
1 parent ea71922 commit a396811
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 19 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
{
"name": "@mlaursen/eslint-config",
"type": "module",
"version": "1.9.0",
"description": "An eslint config used by mlaursen for most projects.",
"main": "index.js",
"repository": "https://github.com/mlaursen/eslint-config.git",
"author": "Mikkel Laursen <mlaursen03@gmail.com>",
"license": "MIT",
"scripts": {
"test": "eslint -c index.js \"test/**/*.{js,jsx,ts,tsx}\"",
"run-script": "ts-node -T -P tsconfig.node.json",
"test": "eslint -c index.cjs \"test/**/*.{js,jsx,ts,tsx}\"",
"run-script": "ts-node -T -P tsconfig.json",
"release": "yarn run-script scripts/release.ts"
},
"engines": {
"node": ">=16"
},
"engineStrict": true,
"files": [
"index.js"
"index.cjs"
],
"bugs": {
"url": "https://github.com/mlaursen/eslint-config/issues"
Expand Down
11 changes: 5 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"module": "esnext",
"strict": true,
"declaration": true,
"esModuleInterop": true,
Expand All @@ -10,10 +10,9 @@
"noFallthroughCasesInSwitch": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
]
"lib": ["dom", "dom.iterable", "esnext"]
},
"ts-node": {
"esm": true
}
}
10 changes: 0 additions & 10 deletions tsconfig.node.json

This file was deleted.

0 comments on commit a396811

Please sign in to comment.