-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
refactor: Unify eslint config, convert to flat configs and update plugins (WIP) #30892
Open
cacieprins
wants to merge
115
commits into
develop
Choose a base branch
from
eslint-stylistic
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,817
−4,721
Open
Changes from all commits
Commits
Show all changes
115 commits
Select commit
Hold shift + click to select a range
228246c
remove eslint-plugin-dev
cacieprins 7f3c67e
more fully remove eslint dev pkg
cacieprins 920e1c7
use updated eslint for ./scripts
cacieprins 00f1243
use new eslint for cli
cacieprins 7c30ac8
npm/angular linting
cacieprins 0a7039b
cypress-schematic eslint
cacieprins 3f44b01
eslint for npm/grep
cacieprins 6d821ab
npm/mount-utils
cacieprins 57a038d
npm/puppeteer
cacieprins 32ebb37
some global cfg
cacieprins ed49878
npm/react
cacieprins 0749dbe
npm/svelte
cacieprins 4c15d08
npm/vite-dev-server
cacieprins 9433e5d
npm/vite-plugin-cypress-esm
cacieprins fe99b9f
adds react linting to npm/react
cacieprins d9c2439
npm/vue
cacieprins 5205963
npm/webpack-batteries-included-preprocessor
cacieprins 5be93e7
npm/webpack-dev-server
cacieprins 1b1862a
npm/webpack-preprocessor
cacieprins 7ce76db
use stylistic for ./scripts
cacieprins 2ac9889
npm/angular with styles
cacieprins 53d7cab
npm/cypress-schematic stylistic
cacieprins 8c866c1
npm/grep stylistic
cacieprins d4d0637
npm/mount-utils stylistic
cacieprins 77f38fc
npm/puppeteer stylistic
cacieprins c62768e
npm/react stylistic
cacieprins fb74c93
npm/svelte stylistic
cacieprins a0ea82b
adds back some restricted properties and syntax
cacieprins c34babc
npm/vite-dev-server stylistic
cacieprins 58a38ac
npm/vite-plugin-cypress-esm stylistic
cacieprins 816ba0d
npm/vue stylistic
cacieprins 124ad49
npm/webpack-batteries-included stylistic
cacieprins 3cb0c44
npm/webpack-dev-server stylistic
cacieprins 9d84f3d
npm/webpack-preprocessor stylistic
cacieprins 27797d0
cli stylistic
cacieprins d7bac78
new linting for packages/app
cacieprins 6434772
remove conflicting old eslintrc from app
cacieprins eed56c0
lint fix for packages/config
cacieprins d035fa9
redundant rules in puppeteer
cacieprins 8ba5ccb
eslint for packages/data-context
cacieprins b664d1b
eslint for packages/driver
cacieprins 007aae2
eslint cleanup general
cacieprins 85be136
packages/electron
cacieprins e2ed779
packages/errors
cacieprins abf276f
packages/example
cacieprins 45184c0
rm
cacieprins 93fb014
packages/extension
cacieprins 2869f9a
basic linting for packages/frontend-shared
cacieprins df20017
basic graphql schema linting
cacieprins 77b113e
eslint for packages/graphql
cacieprins 7b7fb97
some cleanup
cacieprins 1228a72
packages/https-proxy
cacieprins b79bf01
packages/icons
cacieprins bcbb78b
packages/launcher
cacieprins 8529b72
packages/launchpad
cacieprins 1c577fc
further restrict launchpad eslint to reduce impact of slow vue linting
cacieprins cbb673b
packages/net-stubbing
cacieprins 3cb0ba1
packages/network
cacieprins 8c1f83f
packages/packherd-require
cacieprins ad4bb60
packages/proxy
cacieprins 92e192b
packages/reporter
cacieprins 5c06e17
packages/resolve-dist
cacieprins d70180b
packages/rewriter
cacieprins a98c2bd
packages/runner
cacieprins ddbe9a9
packages/scaffold-config
cacieprins 925955f
packages/server
cacieprins 9b12088
packages/socket
cacieprins ecbe1f0
packages/telemetry
cacieprins 32d1009
rm old eslintrc
cacieprins 02f9730
packages/ts
cacieprins 23dff45
packages/types
cacieprins 08e1227
packages/v8-snapshot-require
cacieprins 0d450bd
packages/web-config
cacieprins f174d7c
system-tests
cacieprins 10bdd9f
tooling/electron-mksnapshot
cacieprins 7d48750
rm old eslintrc
cacieprins 643e17c
tooling/packherd
cacieprins ca7441a
tooling/v8-snapshot
cacieprins add6226
delete unnecessary eslintrc.json
cacieprins 3e35bce
fix mount-utils eslint config
cacieprins 7b44b56
fix webpack-preprocessor eslint.config.ts
cacieprins 63a0d72
fix puppeteer eslint
cacieprins 2e14154
fix svelte eslint config
cacieprins 9462fc5
fix vite-plugin-cypress-esm eslint config
cacieprins b264d90
grep eslint fix
cacieprins 1d1d61c
fix webpack-batteries eslint config
cacieprins 9ec71b5
fix schematic
cacieprins ce4bbc8
fix vue eslint config
cacieprins 515fb78
fix vite-dev-server eslint
cacieprins 3d141fb
fix padding in cli
cacieprins 3115ed7
fix npm/react
cacieprins 2fdc396
fix lint in packages/config
cacieprins be425ab
fix lint for npm/webpack-dev-server
cacieprins 09582b4
fix packages/electron
cacieprins 0845c5c
fix extension
cacieprins ef293d4
eslint fixes for runner
cacieprins 1dc3f65
set some react rules to warn
cacieprins 2748955
fixes packages/driver
cacieprins f03c6ae
disable inapplicable react rules
cacieprins 6f5340c
fix frontend-shared
cacieprins f4f5148
add class= back in
cacieprins f968f74
react rules do not apply to vue component tests
cacieprins 4d1a034
fix whitespace in tooling/packherd
cacieprins 69e6d51
data-context and internal scripts
cacieprins c965691
app eslint fixes
cacieprins 1206812
final pass fixes for check-ts and lint
cacieprins 4afc395
Merge branch 'develop' into eslint-stylistic
cacieprins 4f6d36f
fix sorting in root package json, add (?does it work?) json eslint pl…
cacieprins 6be9cd0
remove unused `path` identifier in root eslint.config.ts
cacieprins 36b8655
expound on eslint methodology in CONTRIBUTING.md
cacieprins b2a7e3e
use prettier for json files, use prettier-package-json for package.js…
cacieprins 09e07a4
Merge branch 'develop' into eslint-stylistic
cacieprins 66b69a2
Update package.json
cacieprins 3a27427
ignore .d.ts files in system-tests
cacieprins 9f30b85
ignore validations in system tests
cacieprins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
**/* | ||
|
||
/.nx/cache | ||
/.nx/workspace-data | ||
/.nx/workspace-data | ||
|
||
!**/*.json | ||
**/package.json | ||
**/package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
{ | ||
"prefix": "/* eslint-disable padding-line-between-statements */", | ||
"paths": [ | ||
"packages/graphql/src/**/*", | ||
"packages/data-context/src/**/*" | ||
], | ||
"paths": ["packages/graphql/src/**/*", "packages/data-context/src/**/*"], | ||
"ignore": [ | ||
"packages/data-context/src/gen", | ||
"packages/graphql/src/stitching", | ||
"packages/graphql/src/testing", | ||
"packages/graphql/src/gen" | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
{ | ||
"rules": { | ||
"no-restricted-syntax": [ | ||
"error", | ||
{ | ||
"selector": "CallExpression[callee.name='arch']", | ||
"message": "Do not use `arch()` to detect the user's machine architecture. Use util.getRealArch() instead." | ||
}, | ||
{ | ||
"selector": "CallExpression[callee.object.name='os'][callee.property.name='arch']", | ||
"message": "Do not use `os.arch()` to detect the user's machine architecture. Use util.getRealArch() instead." | ||
}, | ||
{ | ||
"selector": "MemberExpression[object.name='process'][property.name='arch']", | ||
"message": "Do not use `process.arch` to detect the user's machine architecture. Use util.getRealArch() instead." | ||
} | ||
] | ||
} | ||
} | ||
*/ | ||
import path from 'path' | ||
import { baseConfig } from '../eslint.config' | ||
import globals from 'globals' | ||
|
||
export default [ | ||
...baseConfig, | ||
{ | ||
files: ['**/*.{ts,js}'], | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: true, | ||
tsconfigRootDir: path.join(__dirname, '../packages/ts/tsconfig.json'), | ||
}, | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
{ | ||
ignores: [ | ||
'__snapshots__/**/*', | ||
'angular/**/*', | ||
'build/**/*', | ||
'mount-utils/**/*', | ||
'node_modules/**/*', | ||
'react/**/*', | ||
'svelte/**/*', | ||
'vue/**/*', | ||
'types/**/*', | ||
], | ||
}, | ||
{ | ||
files: ['test/**/*.{ts,js}'], | ||
languageOptions: { | ||
globals: { | ||
sinon: 'readonly', | ||
lib: 'readonly', | ||
}, | ||
}, | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these options are no longer valid in vscode