@vinicunca/eslint-config 2.1.2 → 2.1.3

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/index.cjs CHANGED
@@ -1793,7 +1793,6 @@ async function node() {
1793
1793
  }
1794
1794
 
1795
1795
  // src/configs/react.ts
1796
- var STR_PARENS_NEW_LINE = "parens-new-line";
1797
1796
  async function react(options = {}) {
1798
1797
  const {
1799
1798
  files = [GLOB_JSX, GLOB_TSX],
@@ -1841,57 +1840,17 @@ async function react(options = {}) {
1841
1840
  }],
1842
1841
  "react/destructuring-assignment": [ERROR, "always"],
1843
1842
  "react/jsx-boolean-value": [ERROR, NEVER, { always: [] }],
1844
- "react/jsx-child-element-spacing": OFF,
1845
- "react/jsx-closing-bracket-location": [ERROR, "line-aligned"],
1846
- "react/jsx-closing-tag-location": ERROR,
1847
- "react/jsx-curly-brace-presence": [ERROR, { children: NEVER, props: NEVER }],
1848
- "react/jsx-curly-newline": [ERROR, {
1849
- multiline: "consistent",
1850
- singleline: "consistent"
1851
- }],
1852
- "react/jsx-curly-spacing": [ERROR, {
1853
- children: true,
1854
- spacing: {
1855
- objectLiterals: NEVER
1856
- },
1857
- when: "always"
1858
- }],
1859
- "react/jsx-equals-spacing": [ERROR, NEVER],
1860
- "react/jsx-first-prop-new-line": [ERROR, "multiline-multiprop"],
1861
- "react/jsx-indent": [ERROR, 2],
1862
- "react/jsx-indent-props": [ERROR, 2],
1863
1843
  "react/jsx-key": OFF,
1864
1844
  "react/jsx-max-depth": OFF,
1865
- "react/jsx-max-props-per-line": [ERROR, { maximum: 1, when: "multiline" }],
1866
- "react/jsx-newline": ERROR,
1867
1845
  "react/jsx-no-duplicate-props": [ERROR, { ignoreCase: true }],
1868
1846
  "react/jsx-no-literals": [OFF, { noStrings: true }],
1869
- "react/jsx-one-expression-per-line": [ERROR, { allow: "single-child" }],
1870
1847
  "react/jsx-pascal-case": [ERROR, {
1871
1848
  allowAllCaps: true,
1872
1849
  ignore: []
1873
1850
  }],
1874
- "react/jsx-props-no-multi-spaces": ERROR,
1875
1851
  "react/jsx-sort-default-props": [OFF, {
1876
1852
  ignoreCase: true
1877
1853
  }],
1878
- // Turned off to avoid conflicts with Perfectionist. https://eslint-plugin-perfectionist.azat.io/rules/sort-jsx-props
1879
- "react/jsx-sort-props": [OFF],
1880
- "react/jsx-tag-spacing": [ERROR, {
1881
- afterOpening: NEVER,
1882
- beforeClosing: NEVER,
1883
- beforeSelfClosing: "always",
1884
- closingSlash: NEVER
1885
- }],
1886
- "react/jsx-wrap-multilines": [ERROR, {
1887
- arrow: STR_PARENS_NEW_LINE,
1888
- assignment: STR_PARENS_NEW_LINE,
1889
- condition: STR_PARENS_NEW_LINE,
1890
- declaration: STR_PARENS_NEW_LINE,
1891
- logical: STR_PARENS_NEW_LINE,
1892
- prop: STR_PARENS_NEW_LINE,
1893
- return: STR_PARENS_NEW_LINE
1894
- }],
1895
1854
  "react/no-danger": WARN,
1896
1855
  "react/no-unescaped-entities": OFF,
1897
1856
  "react/prop-types": OFF,
@@ -2121,6 +2080,7 @@ function sortTsconfig() {
2121
2080
  }
2122
2081
 
2123
2082
  // src/configs/stylistic.ts
2083
+ var STR_PARENS_NEW_LINE = "parens-new-line";
2124
2084
  var STYLISTIC_CONFIG_DEFAULTS = {
2125
2085
  indent: 2,
2126
2086
  jsx: true,
@@ -2163,6 +2123,46 @@ async function stylistic(options = {}) {
2163
2123
  "style/arrow-parens": [ERROR, ALWAYS],
2164
2124
  "style/brace-style": [ERROR],
2165
2125
  "style/func-call-spacing": [ERROR, NEVER],
2126
+ "style/jsx-child-element-spacing": OFF,
2127
+ "style/jsx-closing-bracket-location": [ERROR, "line-aligned"],
2128
+ "style/jsx-closing-tag-location": ERROR,
2129
+ "style/jsx-curly-brace-presence": [ERROR, { children: NEVER, props: NEVER }],
2130
+ "style/jsx-curly-newline": [ERROR, {
2131
+ multiline: "consistent",
2132
+ singleline: "consistent"
2133
+ }],
2134
+ "style/jsx-curly-spacing": [ERROR, {
2135
+ children: true,
2136
+ spacing: {
2137
+ objectLiterals: NEVER
2138
+ },
2139
+ when: "always"
2140
+ }],
2141
+ "style/jsx-equals-spacing": [ERROR, NEVER],
2142
+ "style/jsx-first-prop-new-line": [ERROR, "multiline-multiprop"],
2143
+ "style/jsx-indent": [ERROR, 2],
2144
+ "style/jsx-indent-props": [ERROR, 2],
2145
+ "style/jsx-max-props-per-line": [ERROR, { maximum: 1, when: "multiline" }],
2146
+ "style/jsx-newline": ERROR,
2147
+ "style/jsx-one-expression-per-line": [ERROR, { allow: "single-child" }],
2148
+ "style/jsx-props-no-multi-spaces": ERROR,
2149
+ // Turned off to avoid conflicts with Perfectionist. https://eslint-plugin-perfectionist.azat.io/rules/sort-jsx-props
2150
+ "style/jsx-sort-props": [OFF],
2151
+ "style/jsx-tag-spacing": [ERROR, {
2152
+ afterOpening: NEVER,
2153
+ beforeClosing: NEVER,
2154
+ beforeSelfClosing: "always",
2155
+ closingSlash: NEVER
2156
+ }],
2157
+ "style/jsx-wrap-multilines": [ERROR, {
2158
+ arrow: STR_PARENS_NEW_LINE,
2159
+ assignment: STR_PARENS_NEW_LINE,
2160
+ condition: STR_PARENS_NEW_LINE,
2161
+ declaration: STR_PARENS_NEW_LINE,
2162
+ logical: STR_PARENS_NEW_LINE,
2163
+ prop: STR_PARENS_NEW_LINE,
2164
+ return: STR_PARENS_NEW_LINE
2165
+ }],
2166
2166
  "style/member-delimiter-style": [ERROR],
2167
2167
  "style/object-curly-newline": [ERROR, { consistent: true, multiline: true }],
2168
2168
  "style/object-curly-spacing": [ERROR, ALWAYS],
package/dist/index.js CHANGED
@@ -1703,7 +1703,6 @@ async function node() {
1703
1703
  }
1704
1704
 
1705
1705
  // src/configs/react.ts
1706
- var STR_PARENS_NEW_LINE = "parens-new-line";
1707
1706
  async function react(options = {}) {
1708
1707
  const {
1709
1708
  files = [GLOB_JSX, GLOB_TSX],
@@ -1751,57 +1750,17 @@ async function react(options = {}) {
1751
1750
  }],
1752
1751
  "react/destructuring-assignment": [ERROR, "always"],
1753
1752
  "react/jsx-boolean-value": [ERROR, NEVER, { always: [] }],
1754
- "react/jsx-child-element-spacing": OFF,
1755
- "react/jsx-closing-bracket-location": [ERROR, "line-aligned"],
1756
- "react/jsx-closing-tag-location": ERROR,
1757
- "react/jsx-curly-brace-presence": [ERROR, { children: NEVER, props: NEVER }],
1758
- "react/jsx-curly-newline": [ERROR, {
1759
- multiline: "consistent",
1760
- singleline: "consistent"
1761
- }],
1762
- "react/jsx-curly-spacing": [ERROR, {
1763
- children: true,
1764
- spacing: {
1765
- objectLiterals: NEVER
1766
- },
1767
- when: "always"
1768
- }],
1769
- "react/jsx-equals-spacing": [ERROR, NEVER],
1770
- "react/jsx-first-prop-new-line": [ERROR, "multiline-multiprop"],
1771
- "react/jsx-indent": [ERROR, 2],
1772
- "react/jsx-indent-props": [ERROR, 2],
1773
1753
  "react/jsx-key": OFF,
1774
1754
  "react/jsx-max-depth": OFF,
1775
- "react/jsx-max-props-per-line": [ERROR, { maximum: 1, when: "multiline" }],
1776
- "react/jsx-newline": ERROR,
1777
1755
  "react/jsx-no-duplicate-props": [ERROR, { ignoreCase: true }],
1778
1756
  "react/jsx-no-literals": [OFF, { noStrings: true }],
1779
- "react/jsx-one-expression-per-line": [ERROR, { allow: "single-child" }],
1780
1757
  "react/jsx-pascal-case": [ERROR, {
1781
1758
  allowAllCaps: true,
1782
1759
  ignore: []
1783
1760
  }],
1784
- "react/jsx-props-no-multi-spaces": ERROR,
1785
1761
  "react/jsx-sort-default-props": [OFF, {
1786
1762
  ignoreCase: true
1787
1763
  }],
1788
- // Turned off to avoid conflicts with Perfectionist. https://eslint-plugin-perfectionist.azat.io/rules/sort-jsx-props
1789
- "react/jsx-sort-props": [OFF],
1790
- "react/jsx-tag-spacing": [ERROR, {
1791
- afterOpening: NEVER,
1792
- beforeClosing: NEVER,
1793
- beforeSelfClosing: "always",
1794
- closingSlash: NEVER
1795
- }],
1796
- "react/jsx-wrap-multilines": [ERROR, {
1797
- arrow: STR_PARENS_NEW_LINE,
1798
- assignment: STR_PARENS_NEW_LINE,
1799
- condition: STR_PARENS_NEW_LINE,
1800
- declaration: STR_PARENS_NEW_LINE,
1801
- logical: STR_PARENS_NEW_LINE,
1802
- prop: STR_PARENS_NEW_LINE,
1803
- return: STR_PARENS_NEW_LINE
1804
- }],
1805
1764
  "react/no-danger": WARN,
1806
1765
  "react/no-unescaped-entities": OFF,
1807
1766
  "react/prop-types": OFF,
@@ -2031,6 +1990,7 @@ function sortTsconfig() {
2031
1990
  }
2032
1991
 
2033
1992
  // src/configs/stylistic.ts
1993
+ var STR_PARENS_NEW_LINE = "parens-new-line";
2034
1994
  var STYLISTIC_CONFIG_DEFAULTS = {
2035
1995
  indent: 2,
2036
1996
  jsx: true,
@@ -2073,6 +2033,46 @@ async function stylistic(options = {}) {
2073
2033
  "style/arrow-parens": [ERROR, ALWAYS],
2074
2034
  "style/brace-style": [ERROR],
2075
2035
  "style/func-call-spacing": [ERROR, NEVER],
2036
+ "style/jsx-child-element-spacing": OFF,
2037
+ "style/jsx-closing-bracket-location": [ERROR, "line-aligned"],
2038
+ "style/jsx-closing-tag-location": ERROR,
2039
+ "style/jsx-curly-brace-presence": [ERROR, { children: NEVER, props: NEVER }],
2040
+ "style/jsx-curly-newline": [ERROR, {
2041
+ multiline: "consistent",
2042
+ singleline: "consistent"
2043
+ }],
2044
+ "style/jsx-curly-spacing": [ERROR, {
2045
+ children: true,
2046
+ spacing: {
2047
+ objectLiterals: NEVER
2048
+ },
2049
+ when: "always"
2050
+ }],
2051
+ "style/jsx-equals-spacing": [ERROR, NEVER],
2052
+ "style/jsx-first-prop-new-line": [ERROR, "multiline-multiprop"],
2053
+ "style/jsx-indent": [ERROR, 2],
2054
+ "style/jsx-indent-props": [ERROR, 2],
2055
+ "style/jsx-max-props-per-line": [ERROR, { maximum: 1, when: "multiline" }],
2056
+ "style/jsx-newline": ERROR,
2057
+ "style/jsx-one-expression-per-line": [ERROR, { allow: "single-child" }],
2058
+ "style/jsx-props-no-multi-spaces": ERROR,
2059
+ // Turned off to avoid conflicts with Perfectionist. https://eslint-plugin-perfectionist.azat.io/rules/sort-jsx-props
2060
+ "style/jsx-sort-props": [OFF],
2061
+ "style/jsx-tag-spacing": [ERROR, {
2062
+ afterOpening: NEVER,
2063
+ beforeClosing: NEVER,
2064
+ beforeSelfClosing: "always",
2065
+ closingSlash: NEVER
2066
+ }],
2067
+ "style/jsx-wrap-multilines": [ERROR, {
2068
+ arrow: STR_PARENS_NEW_LINE,
2069
+ assignment: STR_PARENS_NEW_LINE,
2070
+ condition: STR_PARENS_NEW_LINE,
2071
+ declaration: STR_PARENS_NEW_LINE,
2072
+ logical: STR_PARENS_NEW_LINE,
2073
+ prop: STR_PARENS_NEW_LINE,
2074
+ return: STR_PARENS_NEW_LINE
2075
+ }],
2076
2076
  "style/member-delimiter-style": [ERROR],
2077
2077
  "style/object-curly-newline": [ERROR, { consistent: true, multiline: true }],
2078
2078
  "style/object-curly-spacing": [ERROR, ALWAYS],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinicunca/eslint-config",
3
3
  "type": "module",
4
- "version": "2.1.2",
4
+ "version": "2.1.3",
5
5
  "description": "Vinicunca ESLint config",
6
6
  "author": {
7
7
  "name": "praburangki",