Skip to content

refactor: enable and fix no-underscore-dangle #6254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module.exports = {
// TODO: remove, so those rules are enabled
complexity: 0,
'no-inline-comments': 'off',
'no-underscore-dangle': 'off',
'func-style': 'off',
'max-depth': 0,
'max-lines': 0,
Expand Down
1 change: 1 addition & 0 deletions tests/integration/commands/deploy/deploy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { callCli } from '../../utils/call-cli.js'
import { createLiveTestSite, generateSiteName } from '../../utils/create-live-test-site.js'
import { withSiteBuilder } from '../../utils/site-builder.ts'

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

const SITE_NAME = generateSiteName('netlify-test-deploy-')
Expand Down
1 change: 1 addition & 0 deletions tests/integration/commands/dev/dev-miscellaneous.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { withMockApi } from '../../utils/mock-api.js'
import { pause } from '../../utils/pause.js'
import { withSiteBuilder } from '../../utils/site-builder.ts'

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

const JWT_EXPIRY = 1_893_456_000
Expand Down
1 change: 1 addition & 0 deletions tests/integration/commands/dev/dev.zisi.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { withDevServer } from '../../utils/dev-server.ts'
import { withMockApi } from '../../utils/mock-api.js'
import { withSiteBuilder } from '../../utils/site-builder.ts'

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

const testMatrix = [{ args: [] }]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { tryAndLogOutput, withDevServer } from '../../utils/dev-server.ts'
import { pause } from '../../utils/pause.js'
import { withSiteBuilder } from '../../utils/site-builder.ts'

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

const testMatrix = [{ args: [] }, { args: ['esbuild'] }]
Expand Down
1 change: 1 addition & 0 deletions tests/integration/frameworks/eleventy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { afterAll, beforeAll, describe, test } from 'vitest'
import { clientIP, originalIP } from '../../lib/local-ip.js'
import { startDevServer } from '../utils/dev-server.ts'

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

const context = {}
Expand Down
1 change: 1 addition & 0 deletions tests/integration/utils/cli-path.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import path from 'path'
import { fileURLToPath } from 'url'

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

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