Skip to content

Commit 1b1ed9c

Browse files
authored
chore: improve linting (#25235)
1 parent 90b2c8d commit 1b1ed9c

File tree

66 files changed

+107
-1910
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+107
-1910
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const validators = specifiedRules
2525
)
2626

2727
module.exports = {
28+
root: true,
2829
plugins: [
2930
'@cypress/dev',
3031
'graphql',

cli/.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"extends": "../.eslintrc.js",
32
"rules": {
43
"no-restricted-syntax": [
54
"error",

cli/test/lib/exec/.eslintrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

npm/angular/.eslintrc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,5 @@
44
],
55
"extends": [
66
"plugin:@cypress/dev/tests"
7-
],
8-
"env": {
9-
"cypress/globals": true
10-
},
11-
"rules": {
12-
"mocha/no-global-tests": "off",
13-
"no-unused-vars": "off",
14-
"no-console": "off",
15-
"@typescript-eslint/no-unused-vars": "off"
16-
}
7+
]
178
}

npm/create-cypress-tests/.eslintrc

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,10 @@
77
"plugin:@cypress/dev/general",
88
"plugin:@cypress/dev/tests"
99
],
10-
"parser": "@typescript-eslint/parser",
1110
"env": {
1211
"cypress/globals": true
1312
},
1413
"rules": {
15-
"no-console": "off",
16-
"mocha/no-global-tests": "off",
17-
"@typescript-eslint/no-unused-vars": "off"
18-
},
19-
"overrides": [
20-
{
21-
"files": [
22-
"lib/*"
23-
],
24-
"rules": {
25-
"no-console": 1
26-
}
27-
},
28-
{
29-
"files": [
30-
"**/*.json"
31-
],
32-
"rules": {
33-
"quotes": "off",
34-
"comma-dangle": "off"
35-
}
36-
}
37-
]
14+
"no-console": "off"
15+
}
3816
}

npm/create-cypress-tests/src/component-testing/config-file-updater/configFileUpdater.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/// <reference path="../../../../../cli/types/mocha/index.d.ts" />
22

3-
import * as path from 'path'
43
import { expect } from 'chai'
5-
6-
import * as fs from 'fs-extra'
7-
import { insertValueInJSString, insertValuesInConfigFile } from './configFileUpdater'
8-
const projectRoot = process.cwd()
4+
import { insertValueInJSString } from './configFileUpdater'
95

106
// Test util - if needed outside the tests we can move it to utils
117
const stripIndent = (strings: any, ...args: any) => {

npm/create-cypress-tests/src/component-testing/config-file-updater/configFileUpdater.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import _ from 'lodash'
21
import { parse } from '@babel/parser'
32
import type { File } from '@babel/types'
43
import type { NodePath } from 'ast-types/lib/node-path'

npm/eslint-plugin-dev/.eslintrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
"extends": [
77
"plugin:promise/recommended",
88
"plugin:@cypress/dev/general"
9-
],
10-
"rules": {}
9+
]
1110
}

npm/eslint-plugin-dev/lib/scripts/.eslintrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

npm/eslint-plugin-dev/test/fixtures/.eslintrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)