eslint-config's People
eslint-config's Issues
Naming Conventions doesn't allow numeric-prefixed properties
Rule
@typescript-eslint/naming-conventions
Current Behavior
Yells when using numbers as prefixes in properties
Desired Behavior
Should be able to use numbers and numerically prefixed values
const sizes = {
3xl: "2rem";
}
Can do this by adding:
{
"selector": "property",
"format": null,
"filter": {
"regex": "^[0-9]+",
"match": true
}
}
Configuration(s) Used
- default
- core
- typescript
- react
- format
Naming convention doesn't allow classes with PascalCase?
Rule
@typescript-eslint/naming-convention
Current Behavior
Yells about import SwaggerParser from "@apidevtools/swagger-parser"
Desired Behavior
Allow me to import it in PascalCase
Configuration(s) Used
- default
- core
- typescript
- react
- format
Challenging to verify updates
We really should add a test directory that references this eslint configuration, validating that rule changes are actually being applied as we expect.
[RULE] Never prefer default exports unless a user supplies overrides
Rule
import/prefer-default-export
Current Behavior
Files with a single export error
Desired Behavior
We should generally prefer named exports in a file unless there are certain circumstances within a codebase (like next) where there are conventions for certain files.
Configuration(s) Used
- default
- core
- typescript
- react
- format
[RULE] React Component files should not be kebab cased
Allow magic numbers in certain contexts
Rule
@typescript-eslint/no-magic-number
Current Behavior
Errors in enums, numeric literals, type indices, and read-only class properties.
Desired Behavior
Should not error for enums, numeric literals, or read-only class properties. Type indices should be configured as needed because changes to function signatures have a much higher potential to increase hard to discover flake
Configuration(s) Used
- default
- core
- typescript
- react
- format
[RULE] Prevent abbreviations yells about "Props" in React
Rule
unicorn/prevent-abbreviations
Current Behavior
Currently, the rule, when used with React, doesn't allow for the use of props
in any form (see screenshot).
Desired Behavior
While props
is technically an abbreviation, it is semantically appropriate within a React codebase.
Configuration(s) Used
- default
- core
- typescript
- react
- format
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.