-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b511f08
commit 1222648
Showing
11 changed files
with
138 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,22 @@ | ||
import { Mutation } from 'src/utils/mutation'; | ||
|
||
export type EslintConfig = { | ||
parser?: string; | ||
parserOptions?: { | ||
project?: string; | ||
ecmaVersion?: string; | ||
sourceType?: string; | ||
files?: string[]; | ||
ignores?: string[]; | ||
languageOptions?: { | ||
globals?: string[]; | ||
parserOptions?: Record<string, unknown>; | ||
}; | ||
env?: { | ||
es6?: boolean; | ||
node?: boolean; | ||
browser?: boolean; | ||
jest?: boolean; | ||
es2020?: boolean; | ||
}; | ||
root?: boolean; | ||
ignorePatterns?: string[]; | ||
plugins?: string[]; | ||
extends?: string[]; | ||
plugins?: Record<string, string>; | ||
rules?: Record<string, string | unknown[]>; | ||
}; | ||
|
||
export type Config = { | ||
dependencies: string[]; | ||
imports: string[]; | ||
configs: string[]; | ||
eslintConfig: EslintConfig; | ||
ignore: string[]; | ||
typescript?: boolean; | ||
scripts: { name: string; script: string }[]; | ||
mutations: Mutation<Config>[]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { jsCategoryState } from 'src/states/categories'; | ||
import { defaultConfig } from './config/default.config'; | ||
import { nodeTsConfig } from './config/node:ts.config'; | ||
import { reactTsConfig } from './config/react:ts.config'; | ||
|
||
export const [getConfig] = jsCategoryState.useConfigState({ | ||
default: defaultConfig, | ||
'node:ts': nodeTsConfig, | ||
'react:ts': reactTsConfig, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export const SCRIPT_NAME = 'eslint'; | ||
export const PACKAGE_NAME = SCRIPT_NAME; | ||
export const CLI_NAME = PACKAGE_NAME; | ||
export const CONFIG_FILE_NAME = '.eslintrc.json'; | ||
export const CONFIG_IGNORE_FILE_NAME = '.eslintignore'; | ||
export const CONFIG_FILE_NAME = 'eslint.config.mjs'; |
Oops, something went wrong.