Skip to content

Commit 00ea7f1

Browse files
refactor: enable and fix no-underscore-dangle (#6254)
related to #1891 Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 1d43172 commit 00ea7f1

File tree

7 files changed

+6
-1
lines changed

7 files changed

+6
-1
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ module.exports = {
2323
// TODO: remove, so those rules are enabled
2424
complexity: 0,
2525
'no-inline-comments': 'off',
26-
'no-underscore-dangle': 'off',
2726
'func-style': 'off',
2827
'max-depth': 0,
2928
'max-lines': 0,

tests/integration/commands/deploy/deploy.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { callCli } from '../../utils/call-cli.js'
1010
import { createLiveTestSite, generateSiteName } from '../../utils/create-live-test-site.js'
1111
import { withSiteBuilder } from '../../utils/site-builder.ts'
1212

13+
// eslint-disable-next-line no-underscore-dangle
1314
const __dirname = path.dirname(fileURLToPath(import.meta.url))
1415

1516
const SITE_NAME = generateSiteName('netlify-test-deploy-')

tests/integration/commands/dev/dev-miscellaneous.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { withMockApi } from '../../utils/mock-api.js'
1313
import { pause } from '../../utils/pause.js'
1414
import { withSiteBuilder } from '../../utils/site-builder.ts'
1515

16+
// eslint-disable-next-line no-underscore-dangle
1617
const __dirname = path.dirname(fileURLToPath(import.meta.url))
1718

1819
const JWT_EXPIRY = 1_893_456_000

tests/integration/commands/dev/dev.zisi.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { withDevServer } from '../../utils/dev-server.ts'
1414
import { withMockApi } from '../../utils/mock-api.js'
1515
import { withSiteBuilder } from '../../utils/site-builder.ts'
1616

17+
// eslint-disable-next-line no-underscore-dangle
1718
const __dirname = path.dirname(fileURLToPath(import.meta.url))
1819

1920
const testMatrix = [{ args: [] }]

tests/integration/commands/functions-with-args/functions-with-args.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { tryAndLogOutput, withDevServer } from '../../utils/dev-server.ts'
88
import { pause } from '../../utils/pause.js'
99
import { withSiteBuilder } from '../../utils/site-builder.ts'
1010

11+
// eslint-disable-next-line no-underscore-dangle
1112
const __dirname = path.dirname(fileURLToPath(import.meta.url))
1213

1314
const testMatrix = [{ args: [] }, { args: ['esbuild'] }]

tests/integration/frameworks/eleventy.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { afterAll, beforeAll, describe, test } from 'vitest'
88
import { clientIP, originalIP } from '../../lib/local-ip.js'
99
import { startDevServer } from '../utils/dev-server.ts'
1010

11+
// eslint-disable-next-line no-underscore-dangle
1112
const __dirname = path.dirname(fileURLToPath(import.meta.url))
1213

1314
const context = {}

tests/integration/utils/cli-path.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import path from 'path'
22
import { fileURLToPath } from 'url'
33

4+
// eslint-disable-next-line no-underscore-dangle
45
const __dirname = path.dirname(fileURLToPath(import.meta.url))
56

67
export const cliPath = path.resolve(__dirname, '../../../bin/run.js')

0 commit comments

Comments
 (0)