Skip to content
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

fix: references of Object.assign in prefer-object-spread #18148

Closed
wants to merge 167 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
769f997
feat: limit the references of Object.assign
Tanujkanti4441 Feb 25, 2024
11144a2
feat: `no-restricted-imports` option added `allowImportNames` (#16196)
MichielPater Feb 27, 2024
450d0f0
docs: fix `ignore` option docs (#18154)
fasttime Feb 28, 2024
af6e170
fix: stop linting files after an error (#18155)
fasttime Feb 28, 2024
e5ef3cd
docs: add inline cases condition in `no-fallthrough` (#18158)
Tanujkanti4441 Feb 29, 2024
c49ed63
feat: update complexity rule for optional chaining & default values (…
lo1tuma Mar 1, 2024
e37153f
fix: improve error message for invalid rule config (#18147)
snitin315 Mar 1, 2024
79a95eb
feat!: disallow multiple configuration comments for same rule (#18157)
mdjermanovic Mar 3, 2024
1f1260e
docs: replace HackerOne link with GitHub advisory (#18165)
fasttime Mar 4, 2024
972ef15
chore: remove invalid type in @eslint/js (#18164)
snitin315 Mar 4, 2024
a451b32
feat: make `no-misleading-character-class` report more granular error…
fasttime Mar 5, 2024
2908b9b
docs: Update release documentation (#18174)
nzakas Mar 6, 2024
558274a
docs: Update README
Mar 7, 2024
d961eeb
docs: show red underlines in examples in rules docs (#18041)
ota-meshi Mar 7, 2024
1c173dc
feat: add `ignoreClassWithStaticInitBlock` option to `no-unused-vars`…
Tanujkanti4441 Mar 7, 2024
925afa2
chore: Remove some uses of `lodash.merge` (#18179)
mdjermanovic Mar 7, 2024
c7abd89
docs: Explain Node.js version support (#18176)
nzakas Mar 7, 2024
337cdf9
docs: Explain limitations of RuleTester fix testing (#18175)
nzakas Mar 7, 2024
ba1c1bb
docs: Update README
Mar 8, 2024
96087b3
chore: package.json update for @eslint/js release
Mar 8, 2024
7509276
chore: upgrade @eslint/js@9.0.0-beta.2 (#18180)
mdjermanovic Mar 8, 2024
d7ec0d1
Build: changelog update for 9.0.0-beta.2
Mar 8, 2024
ba89c73
9.0.0-beta.2
Mar 8, 2024
acc2e06
chore: Introduce Knip (#18005)
webpro Mar 11, 2024
1dc8618
docs: Update README
Mar 12, 2024
29c3595
chore: remove repetitive words (#18193)
cuithon Mar 12, 2024
5251327
docs: Update README
Mar 13, 2024
ae8103d
fix: load plugins in the CLI in flat config mode (#18185)
fasttime Mar 13, 2024
b8fb572
feat: add `reportUnusedFallthroughComment` option to no-fallthrough r…
kirkwaiblinger Mar 14, 2024
1b841bb
chore: fix some comments (#18213)
avoidaway Mar 16, 2024
4769c86
docs: fix incorrect example in `no-lone-blocks` (#18215)
Tanujkanti4441 Mar 17, 2024
b91f9dc
build: fix TypeError in prism-eslint-hooks.js (#18209)
fasttime Mar 18, 2024
09bd7fe
feat!: move AST traversal into SourceCode (#18167)
nzakas Mar 21, 2024
239a7e2
docs: Clarify the description of `sort-imports` options (#18198)
gwBear1 Mar 22, 2024
d363c51
chore: package.json update for @eslint/js release
Mar 22, 2024
297416d
chore: package.json update for eslint-9.0.0-rc.0 (#18223)
fasttime Mar 22, 2024
26010c2
Build: changelog update for 9.0.0-rc.0
Mar 22, 2024
b185eb9
9.0.0-rc.0
Mar 22, 2024
d85c436
feat: use-isnan report NaN in `indexOf` and `lastIndexOf` with fromIn…
Tanujkanti4441 Mar 23, 2024
de40874
feat: Rule Performance Statistics for flat ESLint (#17850)
mnkiefer Mar 25, 2024
dadc5bf
fix: `constructor-super` false positives with loops (#18226)
mdjermanovic Mar 25, 2024
778082d
docs: add Glossary page (#18187)
JoshuaKGoldberg Mar 26, 2024
9b7bd3b
chore: update dependency markdownlint to ^0.34.0 (#18237)
renovate[bot] Mar 28, 2024
a98babc
chore: add npm script to run WebdriverIO test (#18238)
fasttime Mar 29, 2024
b07d427
docs: fix typo (#18246)
gavvvr Mar 29, 2024
7747097
docs: Update PR review process (#18233)
nzakas Mar 30, 2024
26384d3
docs: fix `ecmaVersion` in one example, add checks (#18241)
mdjermanovic Mar 30, 2024
b93f408
docs: update shared settings example (#18251)
Tanujkanti4441 Apr 1, 2024
12f5746
docs: add info about dot files and dir in flat config (#18239)
Tanujkanti4441 Apr 1, 2024
b7cf3bd
fix!: correct `camelcase` rule schema for `allow` option (#18232)
eMerzh Apr 1, 2024
3e9fcea
feat: Show config names in error messages (#18256)
nzakas Apr 1, 2024
950c4f1
docs: Update README
Apr 2, 2024
651ec91
docs: remove `/* eslint-env */` comments from rule examples (#18249)
mdjermanovic Apr 2, 2024
97ce45b
feat: Add `reportUsedIgnorePattern` option to `no-unused-vars` rule (…
Pearce-Ropion Apr 2, 2024
a129acb
fix: flat config name on ignores object (#18258)
nzakas Apr 2, 2024
e508800
fix: rule tester ignore irrelevant test case properties (#18235)
DMartens Apr 2, 2024
96607d0
docs: version selectors synchronization (#18260)
mdjermanovic Apr 4, 2024
e80b60c
chore: remove code for testing version selectors (#18266)
mdjermanovic Apr 4, 2024
1765c24
docs: add Troubleshooting page (#18181)
JoshuaKGoldberg Apr 4, 2024
94178ad
docs: mention about `name` field in flat config (#18252)
antfu Apr 4, 2024
44a81c6
chore: upgrade knip (#18272)
webpro Apr 5, 2024
610c148
fix: Support `using` declarations in no-lone-blocks (#18269)
kirkwaiblinger Apr 5, 2024
e151050
docs: update get-started to the new `@eslint/create-config` (#18217)
aladdin-add Apr 5, 2024
d54a412
feat: Add --inspect-config CLI flag (#18270)
nzakas Apr 5, 2024
d73a33c
chore: ignore `/docs/v8.x` in link checker (#18274)
mdjermanovic Apr 5, 2024
7c957f2
chore: package.json update for @eslint/js release
Apr 5, 2024
19f9a89
chore: Update dependencies for v9.0.0 (#18275)
nzakas Apr 5, 2024
75cb5f4
Build: changelog update for 9.0.0
Apr 5, 2024
e0cbc50
9.0.0
Apr 5, 2024
5c35321
docs: add eslintrc-only note to `--rulesdir` (#18281)
adamlui Apr 7, 2024
1fa6622
build: do not use `--force` flag to install dependencies (#18284)
fasttime Apr 8, 2024
113f51e
docs: Mention package.json config support dropped (#18305)
nzakas Apr 10, 2024
e1e305d
docs: fix `linebreak-style` examples (#18262)
fasttime Apr 10, 2024
36103a5
chore: eslint-plugin-n v17.0.0 (#18315)
aladdin-add Apr 11, 2024
78e45b1
chore: eslint-plugin-eslint-plugin v6.0.0 (#18316)
aladdin-add Apr 11, 2024
c537d76
docs: update `npm init @eslint/config` generated file names (#18298)
aladdin-add Apr 11, 2024
df5f8a9
docs: `paths` and `patterns` difference in `no-restricted-imports` (#…
Tanujkanti4441 Apr 11, 2024
a76fb55
chore: @eslint-community/eslint-plugin-eslint-comments v4.3.0 (#18319)
mdjermanovic Apr 11, 2024
16b6a8b
docs: Update README
Apr 12, 2024
32c08cf
chore: drop Node < 18 and use @eslint/js v9 in eslint-config-eslint (…
mdjermanovic Apr 12, 2024
200fd4e
docs: indicate eslintrc mode for `.eslintignore` (#18285)
fasttime Apr 12, 2024
0db676f
feat: add `Intl` in es6 globals (#18318)
aladdin-add Apr 13, 2024
71c771f
docs: Fix missing accessible name for scroll-to-top link (#18329)
germanfrelo Apr 13, 2024
698d9ff
chore: upgrade jsdoc & unicorn plugins in eslint-config-eslint (#18333)
mdjermanovic Apr 13, 2024
4820790
chore: upgrade globals@15.0.0 dev dependency (#18332)
mdjermanovic Apr 13, 2024
9048e21
chore: lint `docs/src/_data` js files (#18335)
mdjermanovic Apr 14, 2024
09675e1
fix: `--no-ignore` should not apply to non-global ignores (#18334)
mdjermanovic Apr 15, 2024
e1ac0b5
fix: --inspect-config only for flat config and respect -c (#18306)
nzakas Apr 16, 2024
0d8cf63
fix: EMFILE errors (#18313)
nzakas Apr 17, 2024
0588fc5
refactor: Move directive gathering to SourceCode (#18328)
nzakas Apr 17, 2024
1cbe1f6
feat: allow `while(true)` in `no-constant-condition` (#18286)
Tanujkanti4441 Apr 17, 2024
4d11e56
feat: add `name` to eslint configs (#18289)
aladdin-add Apr 18, 2024
fb50077
docs: include notes about globals in migration-guide (#18356)
Grohden Apr 18, 2024
751b518
feat: replace dependency graphemer with `Intl.Segmenter` (#18110)
fasttime Apr 19, 2024
594eb0e
fix: do not crash on error in `fs.walk` filter (#18295)
fasttime Apr 19, 2024
155c71c
chore: package.json update for @eslint/js release
Apr 19, 2024
8d18958
fix: Remove name from eslint/js packages (#18368)
nzakas Apr 19, 2024
50d406d
chore: package.json update for @eslint/js release
Apr 19, 2024
03068f1
feat: Provide helpful error message for nullish configs (#18357)
nzakas Apr 19, 2024
d9a2983
chore: upgrade @eslint/js to v9.1.1 (#18367)
fasttime Apr 19, 2024
e4d9c92
Build: changelog update for 9.1.0
Apr 19, 2024
b78d831
9.1.0
Apr 19, 2024
a26b402
fix: use @eslint/create-config latest (#18373)
aladdin-add Apr 22, 2024
ef36aa4
Build: changelog update for 9.1.1
Apr 22, 2024
b4d2512
9.1.1
Apr 22, 2024
f12a02c
docs: update to eslint v9 in custom-rule-tutorial (#18383)
aladdin-add Apr 23, 2024
eeec413
fix: do not throw when defining a global named __defineSetter__ (#18364)
aladdin-add Apr 23, 2024
f316e20
ci: run tests in Node.js 22 (#18393)
fasttime Apr 25, 2024
1579ce0
docs: update wording regarding indirect eval (#18394)
kirkwaiblinger Apr 25, 2024
a498f35
feat: update Unicode letter detection in capitalized-comments rule (#…
fasttime Apr 25, 2024
8485d76
feat: `no-case-declarations` add suggestions (#18388)
JoshuaKGoldberg Apr 26, 2024
347d44f
chore: remove eslintrc export from eslint-config-eslint (#18400)
mdjermanovic Apr 27, 2024
0f5df50
docs: Update README
Apr 27, 2024
284722c
chore: package.json update for eslint-config-eslint release
Apr 29, 2024
c4c18e0
chore: package.json update for @eslint/js release
May 3, 2024
b346605
chore: upgrade @eslint/js@9.2.0 (#18413)
mdjermanovic May 3, 2024
989ac9d
Build: changelog update for 9.2.0
May 3, 2024
271e7ab
9.2.0
May 3, 2024
0de0909
docs: fix grammar in configuration file resolution (#18419)
MikeMcC399 May 5, 2024
db0b174
feat: add `enforceForInnerExpressions` option to `no-extra-boolean-ca…
kirkwaiblinger May 6, 2024
ac7f718
docs: reflect release of v9 in config migration guide (#18412)
pwbriggs May 6, 2024
27e3060
chore: Disable documentation label (#18423)
nzakas May 6, 2024
c18ad25
chore: update actions/upload-artifact action to v4 (#18427)
renovate[bot] May 7, 2024
f47847c
chore: update actions/stale action to v9 (#18426)
renovate[bot] May 7, 2024
040700a
chore: update dependency markdownlint-cli to ^0.40.0 (#18425)
renovate[bot] May 7, 2024
37eba48
fix: don't crash when `fs.readFile` returns promise from another real…
mdjermanovic May 7, 2024
e763512
docs: Link global ignores section in config object property list (#18…
MaoShizhong May 8, 2024
04e7c6e
docs: update deprecation notice of `no-return-await` (#18433)
Tanujkanti4441 May 8, 2024
a63ed72
refactor: Use `node:` protocol for built-in Node.js modules (#18434)
mdjermanovic May 9, 2024
05ef92d
feat: deprecate `multiline-comment-style` & `line-comment-position` (…
aladdin-add May 9, 2024
7065196
docs: Update README
May 10, 2024
069aa68
feat: add option `allowEscape` to `no-misleading-character-class` rul…
fasttime May 10, 2024
1db9bae
docs: Fix typos (#18443)
friederbluemle May 12, 2024
d23574c
docs: Clarify usage of `no-unreachable` with TypeScript (#18445)
benj-dobs May 13, 2024
2465a1e
docs: Update README
May 14, 2024
b67eba4
feat: add `restrictedNamedExportsPattern` to `no-restricted-exports` …
akulsr0 May 14, 2024
39fb0ee
fix: object-shorthand loses type parameters when auto-fixing (#18438)
shulaoda May 16, 2024
e17e1c0
docs: Update README
May 16, 2024
62e686c
docs: Add troubleshooting info for plugin compatibility (#18451)
nzakas May 16, 2024
5c28d9a
fix: don't remove comments between key and value in object-shorthand …
KubaJastrz May 16, 2024
06f1d1c
chore: update dependency @humanwhocodes/retry to ^0.3.0 (#18463)
renovate[bot] May 17, 2024
b32153c
feat: add `overrides.namedExports` to `func-style` rule (#18444)
kecrily May 17, 2024
ceada8c
docs: explain how to use "tsc waiting" label (#18466)
fasttime May 17, 2024
8db0eff
fix: Improve config error messages (#18457)
nzakas May 17, 2024
b681ecb
chore: package.json update for @eslint/js release
May 17, 2024
58e2719
chore: update dependencies for v9.3.0 release (#18469)
fasttime May 17, 2024
463a2e3
Build: changelog update for 9.3.0
May 17, 2024
41a871c
9.3.0
May 17, 2024
70118a5
fix: `func-style` false positive with arrow functions and `super` (#1…
mdjermanovic May 20, 2024
389744b
fix: use `@eslint/config-inspector@latest` (#18483)
aladdin-add May 22, 2024
f06e0b5
docs: clarify func-style (#18477)
camsteffen May 27, 2024
7226ebd
fix: allow implicit undefined return in `no-constructor-return` (#18515)
rzvxa May 28, 2024
f6534d1
fix: skip processor code blocks that match only universal patterns (#…
mdjermanovic May 28, 2024
80747d2
docs: refactor `prefer-destructuring` rule (#18472)
Tanujkanti4441 May 28, 2024
89a4a0a
feat: ignore IIFE's in the `no-loop-func` rule (#17528)
snitin315 May 29, 2024
525fdff
docs: fix components files (#18519)
Tanujkanti4441 May 30, 2024
594145f
refactor: switch to `@eslint/config-array` (#18527)
fasttime May 31, 2024
d7ab6f5
docs: update theme when when `prefers-color-scheme` changes (#18510)
snitin315 May 31, 2024
5e1b5dc
chore: package.json update for @eslint/js release
May 31, 2024
010dd2e
chore: upgrade to `@eslint/js@9.4.0` (#18534)
fasttime May 31, 2024
8c6d0c3
Build: changelog update for 9.4.0
May 31, 2024
a5f7e58
9.4.0
May 31, 2024
2c8fd34
ci: pin @wdio/browser-runner v8.36.0 (#18540)
aladdin-add Jun 3, 2024
73408de
docs: add link to configuration file docs before examples (#18535)
mdjermanovic Jun 3, 2024
d16a659
docs: add link to migration guide for `--ext` CLI option (#18537)
mdjermanovic Jun 3, 2024
e49202d
feat: limit the references of Object.assign
Tanujkanti4441 Feb 25, 2024
6643f61
Merge branch 'limit-reference' of https://github.com/Tanujkanti4441/e…
Tanujkanti4441 Jun 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
467 changes: 460 additions & 7 deletions .eslintrc.js

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
documentation:
- any:
- changed-files:
- all-globs-to-all-files: ['docs/**', '!lib/rules/**']
# Skipping this due to https://github.com/actions/labeler/issues/763
#documentation:
#- any:
# - changed-files:
# - all-globs-to-all-files: ['docs/**', '!lib/rules/**']

rule:
- any:
Expand Down
104 changes: 54 additions & 50 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,74 +13,78 @@ jobs:
name: Verify Files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install Packages
run: npm install --force
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install Packages
run: npm install

- name: Install Docs Packages
working-directory: docs
run: npm install
- name: Install Docs Packages
working-directory: docs
run: npm install

- name: Lint Files
run: node Makefile lint
- name: Lint Files
run: node Makefile lint

- name: Check Rule Files
run: node Makefile checkRuleFiles
- name: Check Rule Files
run: node Makefile checkRuleFiles

- name: Check Licenses
run: node Makefile checkLicenses
- name: Check Licenses
run: node Makefile checkLicenses

- name: Lint Docs JS Files
run: node Makefile lintDocsJS
- name: Lint Docs JS Files
run: node Makefile lintDocsJS

- name: Check Rule Examples
run: node Makefile checkRuleExamples
- name: Check Rule Examples
run: node Makefile checkRuleExamples

- name: Lint Files, Dependencies, & Exports
run: npm run lint:unused

test_on_node:
name: Test
strategy:
matrix:
os: [ubuntu-latest]
node: [21.x, 20.x, 18.x, "18.18.0"]
node: [22.x, 21.x, 20.x, 18.x, "18.18.0"]
include:
- os: windows-latest
node: "lts/*"
- os: macOS-latest
node: "lts/*"
- os: windows-latest
node: "lts/*"
- os: macOS-latest
node: "lts/*"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install Packages
run: npm install --force
- name: Test
run: node Makefile mocha
- name: Fuzz Test
run: node Makefile fuzz
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install Packages
run: npm install
- name: Test
run: node Makefile mocha
- name: Fuzz Test
run: node Makefile fuzz
- name: Test EMFILE Handling
run: npm run test:emfile

test_on_browser:
name: Browser Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20' # Should be the same as the version used on Netlify to build the ESLint Playground
- name: Install Packages
run: npm install --force
- name: Test
run: node Makefile wdio
- name: Fuzz Test
run: node Makefile fuzz
- uses: actions/upload-artifact@v3
if: failure()
with:
name: logs
path: |
wdio-logs/*.log
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20" # Should be the same as the version used on Netlify to build the ESLint Playground
- name: Install Packages
run: npm install
- name: Test
run: node Makefile wdio
- name: Fuzz Test
run: node Makefile fuzz
- uses: actions/upload-artifact@v4
if: failure()
with:
name: logs
path: |
wdio-logs/*.log
3 changes: 3 additions & 0 deletions .github/workflows/docs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
working-directory: docs
run: npm install

- name: Install Packages
run: npm install

- name: Stylelint Docs
working-directory: docs
run: npm run lint:scss
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/rebuild-docs-sites.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Rebuild Docs Sites

on:
push:
branches: [main]
paths:
- 'docs/src/_data/versions.json'

jobs:
rebuild:
name: 'Trigger rebuild on Netlify'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: >
jq -r '.items | map(.branch) | join(",")' docs/src/_data/versions.json
| xargs -I{LIST} curl -X POST -d {} "${{ secrets.NETLIFY_DOCS_BUILD_HOOK }}?trigger_branch={{LIST}}"
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
pull-requests: write

steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-issue-stale: 30
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-node@v4

- name: Install npm packages
run: npm install --force
run: npm install

- name: Update README with latest team and sponsor data
run: npm run build:readme
Expand Down