I'm interested in a rule that will only allow exports that match a certain pattern.
For example, I want a rule that will allow only exports ending in Api:
export {MyClass} from './myClass.ts' should fail. But, export {MyClassApi} from './myClass.ts' should pass.
ESLint rule for preventing exports that match a pattern
16 Views Asked by Marius At
0
There are 0 best solutions below
Related Questions in ESLINT
- Eslint rule to prevent space around a typescript generic
- multiple file components and false positives with eslint
- ESLint rules for var / let and/or uninitialised variables
- Unknown word (CssSyntaxError) in JSX File (react js)
- Is it possible to auto-import files with webpack or React so that I don't need to `import` every time
- Is there a way to lint event listener types in JS/TS?
- Why does typescript infer the type of SVG imports as "any" in NextJs 14
- Error: Failed to load plugin 'unicorn' declared in '.eslintrc.js': Cannot find module 'eslint/use-at-your-own-risk'
- ESlint Plugin That Enforces Function Parameter Names
- ESLint rule for preventing exports that match a pattern
- @typescript-eslint/no-unsafe-assignment with conf library
- VSCode eslint and nx rules not highlighting errors in the code
- SyntaxError: Cannot use import statement outside a module on importing MuiOtpInput
- Deploying v2 cloud functions 'unable to resolve path to module ...'
- Problems migrating ESLint code formatting rules to @stylistic/eslint-plugin
Related Questions in TYPESCRIPT-ESLINT
- Eslint rule to prevent space around a typescript generic
- multiple file components and false positives with eslint
- Cannot include .woff files into dist build directory when running tsc command
- @typescript-eslint/member-ordering error seems incorrect
- Is there a way to lint event listener types in JS/TS?
- Nx converter to ESLint's flat config breaks linting
- How can I order imports module in an Angular standalone component?
- ESLint rule for preventing exports that match a pattern
- Problems migrating ESLint code formatting rules to @stylistic/eslint-plugin
- VSCode autocompletes rule names without "@" symbol
- angular.json : configuration for multiple library projects
- @typescript-eslint/no-shadow complains about shadowing variable that is just being declared
- Is there a way to get the latest TypeScript version supported by `typescript-eslint` programmatically?
- How to show all files errors in react app with eslint by one line code in scripts in package.json?
- Getting a linting error of no-var-requires
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?