eslint-define-config
Advanced tools
Comparing version 1.0.2 to 1.0.3
# Next | ||
[diff](https://github.com/Shinigami92/eslint-define-config/compare/1.0.2...main) | ||
[diff](https://github.com/Shinigami92/eslint-define-config/compare/1.0.3...main) | ||
# 1.0.2 | ||
# 1.0.3 | ||
[diff](https://github.com/Shinigami92/eslint-define-config/compare/1.0.1...1.0.2) | ||
[diff](https://github.com/Shinigami92/eslint-define-config/compare/v1.0.2...1.0.3) | ||
- Add more rules | ||
# v1.0.2 | ||
[diff](https://github.com/Shinigami92/eslint-define-config/compare/1.0.1...v1.0.2) | ||
- Add `extends` property to `Override` ([708c811]) | ||
@@ -10,0 +16,0 @@ |
{ | ||
"name": "eslint-define-config", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Provide a defineConfig function for .eslintrc.js files", | ||
@@ -44,3 +44,3 @@ "main": "src/index.js", | ||
"eslint-config-prettier": "~8.1.0", | ||
"eslint-define-config": "~1.0.1", | ||
"eslint-define-config": "~1.0.2", | ||
"eslint-plugin-inclusive-language": "~2.1.1", | ||
@@ -47,0 +47,0 @@ "eslint-plugin-jsdoc": "~32.3.0", |
@@ -27,3 +27,3 @@ <p> | ||
# add eslint and eslint-define-config to project’s dev dependencies | ||
npm install --dev eslint eslint-define-config | ||
npm install --save-dev eslint eslint-define-config | ||
# or | ||
@@ -30,0 +30,0 @@ yarn add --dev eslint eslint-define-config |
@@ -71,2 +71,3 @@ /** | ||
qunit?: boolean; | ||
// eslint-disable-next-line jsdoc/match-description | ||
/** | ||
@@ -73,0 +74,0 @@ * jQuery global variables. |
@@ -121,2 +121,5 @@ import { LiteralUnion } from './utility-types'; | ||
jsxFragmentName?: string | null; | ||
/** | ||
* @see [lib](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionslib) | ||
*/ | ||
lib?: Lib[]; | ||
@@ -127,2 +130,10 @@ comment?: boolean; | ||
errorOnUnknownASTType?: boolean; | ||
/** | ||
* This option allows you to provide one or more additional file extensions which should be considered in the TypeScript Program compilation. | ||
* | ||
* The default extensions are `.ts`, `.tsx`, `.js`, and `.jsx`. Add extensions starting with `.`, followed by the file extension. | ||
* E.g. for a `.vue` file use `"extraFileExtensions: [".vue"]`. | ||
* | ||
* @see [extraFileExtensions](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionsextrafileextensions) | ||
*/ | ||
extraFileExtensions?: string[]; | ||
@@ -138,9 +149,27 @@ filePath?: string; | ||
parser?: Parser; | ||
/** | ||
* @see [project](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionsproject) | ||
*/ | ||
project?: string | string[]; | ||
/** | ||
* @see [projectFolderIgnoreList](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionsprojectfolderignorelist) | ||
*/ | ||
projectFolderIgnoreList?: Array<string | RegExp>; | ||
range?: boolean; | ||
tokens?: boolean; | ||
/** | ||
* This option allows you to provide the root directory for relative tsconfig paths specified in the `project` option above. | ||
* | ||
* @see [tsconfigRootDir](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionstsconfigrootdir) | ||
*/ | ||
tsconfigRootDir?: string; | ||
useJSXTextNode?: boolean; | ||
/** | ||
* This option allows you to toggle the warning that the parser will give you if you use a version of TypeScript which is not explicitly supported. | ||
* | ||
* @default true | ||
* | ||
* @see [warnOnUnsupportedTypeScriptVersion](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionswarnonunsupportedtypescriptversion) | ||
*/ | ||
warnOnUnsupportedTypeScriptVersion?: boolean; | ||
} |
import type { LiteralUnion } from './utility-types'; | ||
/** Plugin. */ | ||
export type Plugin = LiteralUnion<'@typescript-eslint' | 'prettier' | 'import' | 'jsdoc' | 'spellcheck'>; | ||
export type Plugin = LiteralUnion< | ||
'@typescript-eslint' | 'prettier' | 'import' | 'jsdoc' | 'spellcheck' | 'inclusive-language' | ||
>; |
import type { CommaDangleRule } from './comma-dangle'; | ||
import type { CurlyRule } from './curly'; | ||
import type { LinebreakStyleRule } from './linebreak-style'; | ||
import type { NoCaseDeclarationsRule } from './no-case-declarations'; | ||
import type { NoDebuggerRule } from './no-debugger'; | ||
@@ -10,2 +12,8 @@ import type { QuotesRule } from './quotes'; | ||
*/ | ||
export type EslintRules = CommaDangleRule & CurlyRule & NoDebuggerRule & QuotesRule & SemiRule; | ||
export type EslintRules = CommaDangleRule & | ||
CurlyRule & | ||
LinebreakStyleRule & | ||
NoCaseDeclarationsRule & | ||
NoDebuggerRule & | ||
QuotesRule & | ||
SemiRule; |
@@ -22,2 +22,3 @@ import type { RuleConfig } from '../rule-config'; | ||
export interface SemiNeverConfig { | ||
// eslint-disable-next-line jsdoc/match-description | ||
/** | ||
@@ -24,0 +25,0 @@ * - `'any'` - Ignores semicolons (or lacking semicolon) at the end of statements if the next line starts with `[`, `(`, `/`, `+`, or `-`. |
import type { EslintRules } from './eslint'; | ||
import type { JSDocRules } from './jsdoc'; | ||
import type { RuleConfig } from './rule-config'; | ||
import type { SpellcheckRules } from './spellcheck'; | ||
import type { TypeScriptEslintRules } from './typescript-eslint'; | ||
@@ -9,2 +12,4 @@ /** | ||
*/ | ||
export type Rules = Partial<EslintRules> & Partial<Record<string, RuleConfig>>; | ||
export type Rules = Partial< | ||
EslintRules & TypeScriptEslintRules & JSDocRules & SpellcheckRules & Record<string, RuleConfig> | ||
>; |
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
37698
37
976