@solvro/config 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-4C4AR77R.js → chunk-62DEEFN2.js} +0 -17
- package/dist/eslint-config/cli.cjs +5152 -110
- package/dist/eslint-config/cli.js +5166 -126
- package/dist/eslint-config/index.cjs +83 -71701
- package/dist/eslint-config/index.d.cts +0 -125
- package/dist/eslint-config/index.d.ts +0 -125
- package/dist/eslint-config/index.js +18 -14274
- package/dist/prettier-config/index.js +1 -1
- package/package.json +18 -26
- package/dist/chunk-SND5ODI2.js +0 -20878
- package/dist/dist-2ZVVVZXY.js +0 -35994
- package/dist/eslint-plugin-react-refresh-MJ7ZDK5R.js +0 -258
@@ -8941,125 +8941,6 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
8941
8941
|
// Names of all the configs
|
8942
8942
|
type ConfigNames = 'solvro/eslint-comments/rules' | 'solvro/imports/rules' | 'solvro/javascript/setup' | 'solvro/javascript/rules' | 'solvro/jsx/setup' | 'solvro/jsdoc/rules' | 'solvro/markdown/setup' | 'solvro/markdown/processor' | 'solvro/markdown/parser' | 'solvro/markdown/disables' | 'solvro/node/rules' | 'solvro/react/setup' | 'solvro/react/rules' | 'solvro/test/setup' | 'solvro/test/rules' | 'solvro/regexp/rules' | 'solvro/typescript/setup' | 'solvro/typescript/parser' | 'solvro/typescript/rules' | 'solvro/unicorn/rules'
|
8943
8943
|
|
8944
|
-
/**
|
8945
|
-
* Vendor types from Prettier so we don't rely on the dependency.
|
8946
|
-
*/
|
8947
|
-
type VendoredPrettierOptions = Partial<VendoredPrettierOptionsRequired>;
|
8948
|
-
interface VendoredPrettierOptionsRequired {
|
8949
|
-
/**
|
8950
|
-
* Specify the line length that the printer will wrap on.
|
8951
|
-
* @default 120
|
8952
|
-
*/
|
8953
|
-
printWidth: number;
|
8954
|
-
/**
|
8955
|
-
* Specify the number of spaces per indentation-level.
|
8956
|
-
*/
|
8957
|
-
tabWidth: number;
|
8958
|
-
/**
|
8959
|
-
* Indent lines with tabs instead of spaces
|
8960
|
-
*/
|
8961
|
-
useTabs?: boolean;
|
8962
|
-
/**
|
8963
|
-
* Print semicolons at the ends of statements.
|
8964
|
-
*/
|
8965
|
-
semi: boolean;
|
8966
|
-
/**
|
8967
|
-
* Use single quotes instead of double quotes.
|
8968
|
-
*/
|
8969
|
-
singleQuote: boolean;
|
8970
|
-
/**
|
8971
|
-
* Use single quotes in JSX.
|
8972
|
-
*/
|
8973
|
-
jsxSingleQuote: boolean;
|
8974
|
-
/**
|
8975
|
-
* Print trailing commas wherever possible.
|
8976
|
-
*/
|
8977
|
-
trailingComma: "none" | "es5" | "all";
|
8978
|
-
/**
|
8979
|
-
* Print spaces between brackets in object literals.
|
8980
|
-
*/
|
8981
|
-
bracketSpacing: boolean;
|
8982
|
-
/**
|
8983
|
-
* Put the `>` of a multi-line HTML (HTML, XML, JSX, Vue, Angular) element at the end of the last line instead of being
|
8984
|
-
* alone on the next line (does not apply to self closing elements).
|
8985
|
-
*/
|
8986
|
-
bracketSameLine: boolean;
|
8987
|
-
/**
|
8988
|
-
* Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line.
|
8989
|
-
* @deprecated use bracketSameLine instead
|
8990
|
-
*/
|
8991
|
-
jsxBracketSameLine: boolean;
|
8992
|
-
/**
|
8993
|
-
* Format only a segment of a file.
|
8994
|
-
*/
|
8995
|
-
rangeStart: number;
|
8996
|
-
/**
|
8997
|
-
* Format only a segment of a file.
|
8998
|
-
* @default Number.POSITIVE_INFINITY
|
8999
|
-
*/
|
9000
|
-
rangeEnd: number;
|
9001
|
-
/**
|
9002
|
-
* By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer.
|
9003
|
-
* In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out.
|
9004
|
-
* @default "preserve"
|
9005
|
-
*/
|
9006
|
-
proseWrap: "always" | "never" | "preserve";
|
9007
|
-
/**
|
9008
|
-
* Include parentheses around a sole arrow function parameter.
|
9009
|
-
* @default "always"
|
9010
|
-
*/
|
9011
|
-
arrowParens: "avoid" | "always";
|
9012
|
-
/**
|
9013
|
-
* Provide ability to support new languages to prettier.
|
9014
|
-
*/
|
9015
|
-
plugins: Array<string | any>;
|
9016
|
-
/**
|
9017
|
-
* How to handle whitespaces in HTML.
|
9018
|
-
* @default "css"
|
9019
|
-
*/
|
9020
|
-
htmlWhitespaceSensitivity: "css" | "strict" | "ignore";
|
9021
|
-
/**
|
9022
|
-
* Which end of line characters to apply.
|
9023
|
-
* @default "lf"
|
9024
|
-
*/
|
9025
|
-
endOfLine: "auto" | "lf" | "crlf" | "cr";
|
9026
|
-
/**
|
9027
|
-
* Change when properties in objects are quoted.
|
9028
|
-
* @default "as-needed"
|
9029
|
-
*/
|
9030
|
-
quoteProps: "as-needed" | "consistent" | "preserve";
|
9031
|
-
/**
|
9032
|
-
* Whether or not to indent the code inside <script> and <style> tags in Vue files.
|
9033
|
-
* @default false
|
9034
|
-
*/
|
9035
|
-
vueIndentScriptAndStyle: boolean;
|
9036
|
-
/**
|
9037
|
-
* Enforce single attribute per line in HTML, XML, Vue and JSX.
|
9038
|
-
* @default false
|
9039
|
-
*/
|
9040
|
-
singleAttributePerLine: boolean;
|
9041
|
-
/**
|
9042
|
-
* How to handle whitespaces in XML.
|
9043
|
-
* @default "preserve"
|
9044
|
-
*/
|
9045
|
-
xmlQuoteAttributes: "single" | "double" | "preserve";
|
9046
|
-
/**
|
9047
|
-
* Whether to put a space inside the brackets of self-closing XML elements.
|
9048
|
-
* @default true
|
9049
|
-
*/
|
9050
|
-
xmlSelfClosingSpace: boolean;
|
9051
|
-
/**
|
9052
|
-
* Whether to sort attributes by key in XML elements.
|
9053
|
-
* @default false
|
9054
|
-
*/
|
9055
|
-
xmlSortAttributesByKey: boolean;
|
9056
|
-
/**
|
9057
|
-
* How to handle whitespaces in XML.
|
9058
|
-
* @default "ignore"
|
9059
|
-
*/
|
9060
|
-
xmlWhitespaceSensitivity: "ignore" | "strict" | "preserve";
|
9061
|
-
}
|
9062
|
-
|
9063
8944
|
type Awaitable<T> = T | Promise<T>;
|
9064
8945
|
type Rules = RuleOptions;
|
9065
8946
|
|
@@ -9115,12 +8996,6 @@ interface OptionsFormatters {
|
|
9115
8996
|
* Enable formatting support for GraphQL.
|
9116
8997
|
*/
|
9117
8998
|
graphql?: "prettier" | boolean;
|
9118
|
-
/**
|
9119
|
-
* Custom options for Prettier.
|
9120
|
-
*
|
9121
|
-
* By default it's controlled by our own config.
|
9122
|
-
*/
|
9123
|
-
prettierOptions?: VendoredPrettierOptions;
|
9124
8999
|
/**
|
9125
9000
|
* Custom options for dprint.
|
9126
9001
|
*
|
@@ -8941,125 +8941,6 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
8941
8941
|
// Names of all the configs
|
8942
8942
|
type ConfigNames = 'solvro/eslint-comments/rules' | 'solvro/imports/rules' | 'solvro/javascript/setup' | 'solvro/javascript/rules' | 'solvro/jsx/setup' | 'solvro/jsdoc/rules' | 'solvro/markdown/setup' | 'solvro/markdown/processor' | 'solvro/markdown/parser' | 'solvro/markdown/disables' | 'solvro/node/rules' | 'solvro/react/setup' | 'solvro/react/rules' | 'solvro/test/setup' | 'solvro/test/rules' | 'solvro/regexp/rules' | 'solvro/typescript/setup' | 'solvro/typescript/parser' | 'solvro/typescript/rules' | 'solvro/unicorn/rules'
|
8943
8943
|
|
8944
|
-
/**
|
8945
|
-
* Vendor types from Prettier so we don't rely on the dependency.
|
8946
|
-
*/
|
8947
|
-
type VendoredPrettierOptions = Partial<VendoredPrettierOptionsRequired>;
|
8948
|
-
interface VendoredPrettierOptionsRequired {
|
8949
|
-
/**
|
8950
|
-
* Specify the line length that the printer will wrap on.
|
8951
|
-
* @default 120
|
8952
|
-
*/
|
8953
|
-
printWidth: number;
|
8954
|
-
/**
|
8955
|
-
* Specify the number of spaces per indentation-level.
|
8956
|
-
*/
|
8957
|
-
tabWidth: number;
|
8958
|
-
/**
|
8959
|
-
* Indent lines with tabs instead of spaces
|
8960
|
-
*/
|
8961
|
-
useTabs?: boolean;
|
8962
|
-
/**
|
8963
|
-
* Print semicolons at the ends of statements.
|
8964
|
-
*/
|
8965
|
-
semi: boolean;
|
8966
|
-
/**
|
8967
|
-
* Use single quotes instead of double quotes.
|
8968
|
-
*/
|
8969
|
-
singleQuote: boolean;
|
8970
|
-
/**
|
8971
|
-
* Use single quotes in JSX.
|
8972
|
-
*/
|
8973
|
-
jsxSingleQuote: boolean;
|
8974
|
-
/**
|
8975
|
-
* Print trailing commas wherever possible.
|
8976
|
-
*/
|
8977
|
-
trailingComma: "none" | "es5" | "all";
|
8978
|
-
/**
|
8979
|
-
* Print spaces between brackets in object literals.
|
8980
|
-
*/
|
8981
|
-
bracketSpacing: boolean;
|
8982
|
-
/**
|
8983
|
-
* Put the `>` of a multi-line HTML (HTML, XML, JSX, Vue, Angular) element at the end of the last line instead of being
|
8984
|
-
* alone on the next line (does not apply to self closing elements).
|
8985
|
-
*/
|
8986
|
-
bracketSameLine: boolean;
|
8987
|
-
/**
|
8988
|
-
* Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line.
|
8989
|
-
* @deprecated use bracketSameLine instead
|
8990
|
-
*/
|
8991
|
-
jsxBracketSameLine: boolean;
|
8992
|
-
/**
|
8993
|
-
* Format only a segment of a file.
|
8994
|
-
*/
|
8995
|
-
rangeStart: number;
|
8996
|
-
/**
|
8997
|
-
* Format only a segment of a file.
|
8998
|
-
* @default Number.POSITIVE_INFINITY
|
8999
|
-
*/
|
9000
|
-
rangeEnd: number;
|
9001
|
-
/**
|
9002
|
-
* By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer.
|
9003
|
-
* In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out.
|
9004
|
-
* @default "preserve"
|
9005
|
-
*/
|
9006
|
-
proseWrap: "always" | "never" | "preserve";
|
9007
|
-
/**
|
9008
|
-
* Include parentheses around a sole arrow function parameter.
|
9009
|
-
* @default "always"
|
9010
|
-
*/
|
9011
|
-
arrowParens: "avoid" | "always";
|
9012
|
-
/**
|
9013
|
-
* Provide ability to support new languages to prettier.
|
9014
|
-
*/
|
9015
|
-
plugins: Array<string | any>;
|
9016
|
-
/**
|
9017
|
-
* How to handle whitespaces in HTML.
|
9018
|
-
* @default "css"
|
9019
|
-
*/
|
9020
|
-
htmlWhitespaceSensitivity: "css" | "strict" | "ignore";
|
9021
|
-
/**
|
9022
|
-
* Which end of line characters to apply.
|
9023
|
-
* @default "lf"
|
9024
|
-
*/
|
9025
|
-
endOfLine: "auto" | "lf" | "crlf" | "cr";
|
9026
|
-
/**
|
9027
|
-
* Change when properties in objects are quoted.
|
9028
|
-
* @default "as-needed"
|
9029
|
-
*/
|
9030
|
-
quoteProps: "as-needed" | "consistent" | "preserve";
|
9031
|
-
/**
|
9032
|
-
* Whether or not to indent the code inside <script> and <style> tags in Vue files.
|
9033
|
-
* @default false
|
9034
|
-
*/
|
9035
|
-
vueIndentScriptAndStyle: boolean;
|
9036
|
-
/**
|
9037
|
-
* Enforce single attribute per line in HTML, XML, Vue and JSX.
|
9038
|
-
* @default false
|
9039
|
-
*/
|
9040
|
-
singleAttributePerLine: boolean;
|
9041
|
-
/**
|
9042
|
-
* How to handle whitespaces in XML.
|
9043
|
-
* @default "preserve"
|
9044
|
-
*/
|
9045
|
-
xmlQuoteAttributes: "single" | "double" | "preserve";
|
9046
|
-
/**
|
9047
|
-
* Whether to put a space inside the brackets of self-closing XML elements.
|
9048
|
-
* @default true
|
9049
|
-
*/
|
9050
|
-
xmlSelfClosingSpace: boolean;
|
9051
|
-
/**
|
9052
|
-
* Whether to sort attributes by key in XML elements.
|
9053
|
-
* @default false
|
9054
|
-
*/
|
9055
|
-
xmlSortAttributesByKey: boolean;
|
9056
|
-
/**
|
9057
|
-
* How to handle whitespaces in XML.
|
9058
|
-
* @default "ignore"
|
9059
|
-
*/
|
9060
|
-
xmlWhitespaceSensitivity: "ignore" | "strict" | "preserve";
|
9061
|
-
}
|
9062
|
-
|
9063
8944
|
type Awaitable<T> = T | Promise<T>;
|
9064
8945
|
type Rules = RuleOptions;
|
9065
8946
|
|
@@ -9115,12 +8996,6 @@ interface OptionsFormatters {
|
|
9115
8996
|
* Enable formatting support for GraphQL.
|
9116
8997
|
*/
|
9117
8998
|
graphql?: "prettier" | boolean;
|
9118
|
-
/**
|
9119
|
-
* Custom options for Prettier.
|
9120
|
-
*
|
9121
|
-
* By default it's controlled by our own config.
|
9122
|
-
*/
|
9123
|
-
prettierOptions?: VendoredPrettierOptions;
|
9124
8999
|
/**
|
9125
9000
|
* Custom options for dprint.
|
9126
9001
|
*
|