eslint-define-config
Advanced tools
Comparing version 1.0.4 to 1.0.5
# Next | ||
[diff](https://github.com/Shinigami92/eslint-define-config/compare/1.0.4...main) | ||
[diff](https://github.com/Shinigami92/eslint-define-config/compare/1.0.5...main) | ||
# 1.0.5 | ||
[diff](https://github.com/Shinigami92/eslint-define-config/compare/1.0.4...1.0.5) | ||
- Add more rules | ||
# 1.0.4 | ||
@@ -6,0 +12,0 @@ |
{ | ||
"name": "eslint-define-config", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Provide a defineConfig function for .eslintrc.js files", | ||
@@ -39,8 +39,8 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"@types/node": "~14.14.36", | ||
"@types/node": "~14.14.37", | ||
"@typescript-eslint/eslint-plugin": "~4.19.0", | ||
"@typescript-eslint/parser": "~4.19.0", | ||
"eslint": "~7.22.0", | ||
"eslint": "~7.23.0", | ||
"eslint-config-prettier": "~8.1.0", | ||
"eslint-define-config": "~1.0.3", | ||
"eslint-define-config": "~1.0.4", | ||
"eslint-plugin-inclusive-language": "~2.1.1", | ||
@@ -47,0 +47,0 @@ "eslint-plugin-jsdoc": "~32.3.0", |
@@ -57,8 +57,16 @@ <p> | ||
![image](https://user-images.githubusercontent.com/7195563/112484789-8a416480-8d7a-11eb-9337-d8b5bc16de17.png) | ||
<img src="https://user-images.githubusercontent.com/7195563/112484789-8a416480-8d7a-11eb-9337-d8b5bc16de17.png" alt="Image" width="600px"/> | ||
## Video | ||
_Click on the thumbnail to play the video_ | ||
<a href="https://user-images.githubusercontent.com/7195563/112726158-4a19e780-8f1c-11eb-8cc6-4ea6c100137f.mp4" target="_blank"> | ||
<img src="https://user-images.githubusercontent.com/7195563/112726343-30c56b00-8f1d-11eb-9b92-260c530caf1b.png" alt="Video" width="600px"/> | ||
</a> | ||
# Credits | ||
- [Proposal Idea](https://github.com/eslint/eslint/issues/14249) | ||
- `Vite` and [Evan You](https://github.com/yyx990803) for the idea | ||
- [Vite](https://github.com/vitejs/vite) and [Evan You](https://github.com/yyx990803) for the idea | ||
- [@antfu](https://github.com/antfu) and his [tweet](https://twitter.com/antfu7/status/1365907188338753536) |
@@ -8,3 +8,3 @@ import type { RuleConfig } from '../rule-config'; | ||
*/ | ||
export type NoCaseDeclarationsRuleConfig = RuleConfig; | ||
export type NoCaseDeclarationsRuleConfig = RuleConfig<[]>; | ||
@@ -11,0 +11,0 @@ /** |
@@ -8,3 +8,3 @@ import type { RuleConfig } from '../rule-config'; | ||
*/ | ||
export type NoDebuggerRuleConfig = RuleConfig; | ||
export type NoDebuggerRuleConfig = RuleConfig<[]>; | ||
@@ -11,0 +11,0 @@ /** |
import type { MatchDescriptionRule } from './match-description'; | ||
import type { NoTypesRule } from './no-types'; | ||
import type { RequireJsdocRule } from './require-jsdoc'; | ||
import type { RequireParamTypeRule } from './require-param-type'; | ||
import type { RequireReturnsTypeRule } from './require-returns-type'; | ||
@@ -6,2 +10,6 @@ /** | ||
*/ | ||
export type JSDocRules = MatchDescriptionRule; | ||
export type JSDocRules = MatchDescriptionRule & | ||
NoTypesRule & | ||
RequireJsdocRule & | ||
RequireParamTypeRule & | ||
RequireReturnsTypeRule; |
@@ -22,3 +22,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* Overrides the default contexts (see below). Set to `"any"` if you want the rule to apply to any jsdoc block throughout your files. | ||
* Set to `"any"` if you want the rule to apply to any jsdoc block throughout your files. | ||
* | ||
@@ -25,0 +25,0 @@ * @see [contexts](https://github.com/gajus/eslint-plugin-jsdoc#contexts-1) |
import type { BanTsCommentRule } from './ban-ts-comment'; | ||
import type { ExplicitFunctionReturnTypeRule } from './explicit-function-return-type'; | ||
import type { InterfaceNamePrefixRule } from './interface-name-prefix'; | ||
import type { MemberOrderingRule } from './member-ordering'; | ||
import type { NoExplicitAnyRule } from './no-explicit-any'; | ||
import type { NoInferrableTypesRule } from './no-inferrable-types'; | ||
import type { NoParameterPropertiesRule } from './no-parameter-properties'; | ||
import type { NoUnsafeAssignmentRule } from './no-unsafe-assignment'; | ||
import type { NoUnusedVarsRule } from './no-unused-vars'; | ||
import type { PreferNullishCoalescingRule } from './prefer-nullish-coalescing'; | ||
import type { PreferOptionalChainRule } from './prefer-optional-chain'; | ||
import type { PreferReadonlyRule } from './prefer-readonly'; | ||
import type { RestrictTemplateExpressionsRule } from './restrict-template-expressions'; | ||
import type { TypedefRule } from './typedef'; | ||
@@ -6,2 +19,15 @@ /** | ||
*/ | ||
export type TypeScriptEslintRules = BanTsCommentRule; | ||
export type TypeScriptEslintRules = BanTsCommentRule & | ||
ExplicitFunctionReturnTypeRule & | ||
InterfaceNamePrefixRule & | ||
MemberOrderingRule & | ||
NoExplicitAnyRule & | ||
NoInferrableTypesRule & | ||
NoParameterPropertiesRule & | ||
NoUnsafeAssignmentRule & | ||
NoUnusedVarsRule & | ||
PreferNullishCoalescingRule & | ||
PreferOptionalChainRule & | ||
PreferReadonlyRule & | ||
RestrictTemplateExpressionsRule & | ||
TypedefRule; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74685
55
1930
72