Skip to content

Commit 477d431

Browse files
committed
feat: eslint to cjs
1 parent 7b828b4 commit 477d431

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ services:
186186
- /usr/src/app/node_modules
187187

188188
healthcheck:
189-
test: curl --fail http://localhost:3000 || exit 1
189+
test: curl --fail http://localhost:3000 || exit 1
190190
interval: 30s
191191
timeout: 30s
192192
retries: 10

eslint.config.mjs renamed to eslint.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import rubiin from "@rubiin/eslint-config";
1+
const rubiin = require('@rubiin/eslint-config').default
22

3-
export default rubiin({
3+
module.exports = rubiin({
44
stylistic: true, // enable stylistic rules
55
yaml: true, // enable yaml rules,
66
jsonc : true, // enable jsonc rules
77
markdown: true, // enable markdown rules
8+
gitignore: true, // enable gitignore rules
89
typescript: {
910
tsconfigPath: "tsconfig.json", // path to tsconfig.json
1011
},

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
],
3535
"scripts": {
3636
"build": "nest build",
37-
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs '{src,test}/**/*.ts' --cache",
38-
"lint:fix": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs '{src,test}/**/*.ts' --cache --fix --debug",
37+
"lint": "eslint '{src,test}/**/*.ts' --cache",
38+
"lint:fix": "eslint '{src,test}/**/*.ts' --cache --fix --debug",
3939
"orm": "npx mikro-orm",
4040
"prebuild": "rimraf dist",
4141
"sample": "cd env; npx sample-env --env .env.dev",
@@ -146,7 +146,7 @@
146146
"@nestjs/cli": "10.1.18",
147147
"@nestjs/schematics": "10.0.2",
148148
"@nestjs/testing": "10.2.6",
149-
"@rubiin/eslint-config": "^1.8.6-beta.4",
149+
"@rubiin/eslint-config": "^1.8.6-beta.5",
150150
"@rubiin/tsconfig": "^1.1.0",
151151
"@sentry/types": "^7.72.0",
152152
"@side/jest-runtime": "^1.1.0",

pnpm-lock.yaml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"include": [
2828
"test/**/*",
2929
"src/**/*",
30-
"eslint.config.mjs"
30+
"eslint.config.js"
3131
],
3232
"exclude": [
3333
"node_modules",

0 commit comments

Comments
 (0)