Comments (7)
Thank you for pointing this out. I realized that our ts-eslint
packages were still 5.59.0, and the allow
config was added after 6.0.0. I updated our ts-eslint
packages to 7.7.0 and the issue was resolved. Thank you very much for your help!
from typescript-eslint.
Also, how do I check which in StyleDictionary.Core
is not covered by DeepReadonly
? Thanks.
from typescript-eslint.
Considering this requires a number of different dependencies to reproduce - could you please create an isolated reproduction repo with the required setup to reproduce?
Either that or recreate the exact state in the playground. Note that our playground does not download dependencies so it cannot be run off imports.
from typescript-eslint.
I was able to pinpoint the one data type that might have caused this error, which is RegExp
in Parser[]
, so I decided to use the allow
option that you mentioned in this issue to ignore RegExp
. However, when I tried to update .eslintrc.js
file to include allow
config for @typescript-eslint/prefer-readonly-parameter-types
, I kept getting the following error:
Oops! Something went wrong! :(
ESLint: 8.54.0
Error: .eslintrc.js#overrides[0]:
Configuration for rule "@typescript-eslint/prefer-readonly-parameter-types" is invalid:
Value {"allow":[{"from":"lib","name":"RegExp"}],"ignoreInferredTypes":true} should NOT have additional properties.
at ConfigValidator.validateRuleOptions (/Volumes/workplace/SamplePackage/src/SamplePackage/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2039:23)
at /Volumes/workplace/SamplePackage/src/SamplePackage/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2094:18
at Array.forEach (<anonymous>)
at ConfigValidator.validateRules (/Volumes/workplace/SamplePackage/src/SamplePackage/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2091:34)
at ConfigValidator.validateConfigArray (/Volumes/workplace/SamplePackage/src/SamplePackage/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2217:18)
at CascadingConfigArrayFactory._finalizeConfigArray (/Volumes/workplace/SamplePackage/src/SamplePackage/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3974:23)
at CascadingConfigArrayFactory.getConfigArrayForFile (/Volumes/workplace/SamplePackage/src/SamplePackage/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3780:21)
at FileEnumerator._iterateFilesWithFile (/Volumes/workplace/SamplePackage/src/SamplePackage/node_modules/eslint/lib/cli-engine/file-enumerator.js:368:43)
at FileEnumerator._iterateFiles (/Volumes/workplace/SamplePackage/src/SamplePackage/node_modules/eslint/lib/cli-engine/file-enumerator.js:349:25)
at FileEnumerator.iterateFiles (/Volumes/workplace/SamplePackage/src/SamplePackage/node_modules/eslint/lib/cli-engine/file-enumerator.js:299:59)
Here's my config for ESLint: Link (Go to eslintrc
tab, but the playground cannot reproduce the error I have.)
Can you please help why it doesn't work? Thank you.
from typescript-eslint.
If you can't repro in the playground - then likely your versions don't align.
Given your error message says ESLint: 8.54.0
- that means you're definitely not on ESLint's latest version (8.57.0 for v8 or 9.0.0 for v9) or our latest version (because the latest version explicitly has a dependency on at least ESLint v8.56.0).
So update your deps.
from typescript-eslint.
I just updated the version to 8.57.0, still getting the same error.
from typescript-eslint.
Of eslint, sure, what about our packages?
from typescript-eslint.
Related Issues (20)
- Bug: [no-unnecessary-type-assertion] false positive when casting to HTMLElement (from Element) HOT 6
- Bug: object-shorthand loses type parameters when auto-fixing HOT 3
- Enhancement: [strict-boolean-expressions] Check truthiness assertion functions HOT 6
- Repo: rule-tester's eslint-base test failing on main
- Repo: rule-tester tests failing on v8 HOT 1
- Bug: <short description of the issue> HOT 3
- Enhancement(rule-tester): Stricter rule test validations
- Enhancement(rule-tester): FlatRuleTester -> RuleTester
- Enhancement(rule-tester): detect duplicate test cases
- Enhancement(rule-tester): check for parsing errors in suggestion fixes
- Enhancement(rule-tester): check for missing placeholder data in the message
- Docs: Add blog post announcing v8 beta
- Docs: Consider using a URL shortener for links printed by code HOT 3
- Repo: Add a CI check that 'breaking change' PR descriptions start with the right title text
- Repo: Raise TSConfig lib/target support range to match ESLint's
- Enhancement: [return-await] Option for unopinionated "in-try-catch" HOT 4
- Bug: "Too many files (>8) have matched the default project" error triggers on every file after 8 HOT 7
- Docs: `method-signature-style` lint rule ❤ `--enforceReadonly` compiler flag
- Rule proposal: Disallow calling Number.isNaN on non-number types HOT 10
- Configs: Make consistent-type-imports 'error' for the recommended config HOT 24
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript-eslint.