@borela-tech/eslint-config 1.1.3 → 1.2.0
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.js +27 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +27 -1
package/dist/index.js
CHANGED
|
@@ -40,9 +40,21 @@ var CONFIG = typescript.config(
|
|
|
40
40
|
"error",
|
|
41
41
|
"as-needed"
|
|
42
42
|
],
|
|
43
|
+
"@stylistic/array-bracket-newline": [
|
|
44
|
+
"error",
|
|
45
|
+
"consistent"
|
|
46
|
+
],
|
|
47
|
+
"@stylistic/array-bracket-spacing": [
|
|
48
|
+
"error",
|
|
49
|
+
"never"
|
|
50
|
+
],
|
|
51
|
+
"@stylistic/array-element-newline": [
|
|
52
|
+
"error",
|
|
53
|
+
"consistent"
|
|
54
|
+
],
|
|
43
55
|
"@stylistic/brace-style": [
|
|
44
56
|
"error",
|
|
45
|
-
"
|
|
57
|
+
"stroustrup",
|
|
46
58
|
{ allowSingleLine: true }
|
|
47
59
|
],
|
|
48
60
|
"@stylistic/indent": [
|
|
@@ -61,6 +73,10 @@ var CONFIG = typescript.config(
|
|
|
61
73
|
],
|
|
62
74
|
"@stylistic/jsx-wrap-multilines": "off",
|
|
63
75
|
"@stylistic/lines-between-class-members": "off",
|
|
76
|
+
"@stylistic/object-curly-newline": [
|
|
77
|
+
"error",
|
|
78
|
+
{ consistent: true }
|
|
79
|
+
],
|
|
64
80
|
"@stylistic/object-curly-spacing": [
|
|
65
81
|
"error",
|
|
66
82
|
"never"
|
|
@@ -70,10 +86,20 @@ var CONFIG = typescript.config(
|
|
|
70
86
|
"before",
|
|
71
87
|
{ overrides: { "=": "after" } }
|
|
72
88
|
],
|
|
89
|
+
"@stylistic/quotes": [
|
|
90
|
+
"error",
|
|
91
|
+
"single",
|
|
92
|
+
{ avoidEscape: true }
|
|
93
|
+
],
|
|
73
94
|
"@stylistic/quote-props": [
|
|
74
95
|
"error",
|
|
75
96
|
"as-needed"
|
|
76
97
|
],
|
|
98
|
+
"@stylistic/semi": [
|
|
99
|
+
"error",
|
|
100
|
+
"never",
|
|
101
|
+
{ beforeStatementContinuationChars: "always" }
|
|
102
|
+
],
|
|
77
103
|
"@typescript-eslint/no-empty-function": "off",
|
|
78
104
|
"@typescript-eslint/consistent-indexed-object-style": "off"
|
|
79
105
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import eslint from '@eslint/js'\nimport react from 'eslint-plugin-react'\nimport reactHooks from 'eslint-plugin-react-hooks'\nimport stylistic from '@stylistic/eslint-plugin'\nimport typescript from 'typescript-eslint'\n\nexport const CONFIG = typescript.config(\n {\n ignores: [\n 'src/graphql/sdk.ts',\n '**/node_modules/**',\n '**/dist/**',\n ],\n settings: {\n react: {\n version: '19',\n },\n },\n },\n eslint.configs.recommended,\n react.configs.flat.recommended,\n stylistic.configs.recommended,\n typescript.configs.recommended,\n typescript.configs.stylistic,\n {\n plugins: {\n 'react-hooks': reactHooks,\n },\n rules: reactHooks.configs.recommended.rules,\n },\n {\n rules: {\n 'capitalized-comments': [\n 'error',\n 'always',\n {ignoreConsecutiveComments: true},\n ],\n 'react/react-in-jsx-scope': 'off',\n '@stylistic/arrow-parens': [\n 'error',\n 'as-needed',\n ],\n '@stylistic/brace-style': [\n 'error',\n '
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import eslint from '@eslint/js'\nimport react from 'eslint-plugin-react'\nimport reactHooks from 'eslint-plugin-react-hooks'\nimport stylistic from '@stylistic/eslint-plugin'\nimport typescript from 'typescript-eslint'\n\nexport const CONFIG = typescript.config(\n {\n ignores: [\n 'src/graphql/sdk.ts',\n '**/node_modules/**',\n '**/dist/**',\n ],\n settings: {\n react: {\n version: '19',\n },\n },\n },\n eslint.configs.recommended,\n react.configs.flat.recommended,\n stylistic.configs.recommended,\n typescript.configs.recommended,\n typescript.configs.stylistic,\n {\n plugins: {\n 'react-hooks': reactHooks,\n },\n rules: reactHooks.configs.recommended.rules,\n },\n {\n rules: {\n 'capitalized-comments': [\n 'error',\n 'always',\n {ignoreConsecutiveComments: true},\n ],\n 'react/react-in-jsx-scope': 'off',\n '@stylistic/arrow-parens': [\n 'error',\n 'as-needed',\n ],\n '@stylistic/array-bracket-newline': [\n 'error',\n 'consistent',\n ],\n '@stylistic/array-bracket-spacing': [\n 'error',\n 'never',\n ],\n '@stylistic/array-element-newline': [\n 'error',\n 'consistent',\n ],\n '@stylistic/brace-style': [\n 'error',\n 'stroustrup',\n {allowSingleLine: true},\n ],\n '@stylistic/indent': [\n 'error',\n 2,\n {ignoredNodes: ['TSMappedType > *']},\n ],\n '@stylistic/jsx-tag-spacing': [\n 'error',\n {\n afterOpening: 'never',\n beforeClosing: 'never',\n beforeSelfClosing: 'never',\n closingSlash: 'never',\n },\n ],\n '@stylistic/jsx-wrap-multilines': 'off',\n '@stylistic/lines-between-class-members': 'off',\n '@stylistic/object-curly-newline': [\n 'error',\n {consistent: true},\n ],\n '@stylistic/object-curly-spacing': [\n 'error',\n 'never',\n ],\n '@stylistic/operator-linebreak': [\n 'error',\n 'before',\n {overrides: {'=': 'after'}},\n ],\n '@stylistic/quotes': [\n 'error',\n 'single',\n {avoidEscape: true},\n ],\n '@stylistic/quote-props': [\n 'error',\n 'as-needed',\n ],\n '@stylistic/semi': [\n 'error',\n 'never',\n {beforeStatementContinuationChars: 'always'},\n ],\n '@typescript-eslint/no-empty-function': 'off',\n '@typescript-eslint/consistent-indexed-object-style': 'off',\n },\n },\n)\n"],"mappings":";AAAA,OAAO,YAAY;AACnB,OAAO,WAAW;AAClB,OAAO,gBAAgB;AACvB,OAAO,eAAe;AACtB,OAAO,gBAAgB;AAEhB,IAAM,SAAS,WAAW;AAAA,EAC/B;AAAA,IACE,SAAS;AAAA,MACP;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,UAAU;AAA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5B;AAAA,MACA,qBAAqB;AAAA,QACnB;AAAA,QACA;AAAA,QACA,EAAC,aAAa,KAAI;AAAA,MACpB;AAAA,MACA,0BAA0B;AAAA,QACxB;AAAA,QACA;AAAA,MACF;AAAA,MACA,mBAAmB;AAAA,QACjB;AAAA,QACA;AAAA,QACA,EAAC,kCAAkC,SAAQ;AAAA,MAC7C;AAAA,MACA,wCAAwC;AAAA,MACxC,sDAAsD;AAAA,IACxD;AAAA,EACF;AACF;","names":[]}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -40,9 +40,21 @@ export const CONFIG = typescript.config(
|
|
|
40
40
|
'error',
|
|
41
41
|
'as-needed',
|
|
42
42
|
],
|
|
43
|
+
'@stylistic/array-bracket-newline': [
|
|
44
|
+
'error',
|
|
45
|
+
'consistent',
|
|
46
|
+
],
|
|
47
|
+
'@stylistic/array-bracket-spacing': [
|
|
48
|
+
'error',
|
|
49
|
+
'never',
|
|
50
|
+
],
|
|
51
|
+
'@stylistic/array-element-newline': [
|
|
52
|
+
'error',
|
|
53
|
+
'consistent',
|
|
54
|
+
],
|
|
43
55
|
'@stylistic/brace-style': [
|
|
44
56
|
'error',
|
|
45
|
-
'
|
|
57
|
+
'stroustrup',
|
|
46
58
|
{allowSingleLine: true},
|
|
47
59
|
],
|
|
48
60
|
'@stylistic/indent': [
|
|
@@ -61,6 +73,10 @@ export const CONFIG = typescript.config(
|
|
|
61
73
|
],
|
|
62
74
|
'@stylistic/jsx-wrap-multilines': 'off',
|
|
63
75
|
'@stylistic/lines-between-class-members': 'off',
|
|
76
|
+
'@stylistic/object-curly-newline': [
|
|
77
|
+
'error',
|
|
78
|
+
{consistent: true},
|
|
79
|
+
],
|
|
64
80
|
'@stylistic/object-curly-spacing': [
|
|
65
81
|
'error',
|
|
66
82
|
'never',
|
|
@@ -70,10 +86,20 @@ export const CONFIG = typescript.config(
|
|
|
70
86
|
'before',
|
|
71
87
|
{overrides: {'=': 'after'}},
|
|
72
88
|
],
|
|
89
|
+
'@stylistic/quotes': [
|
|
90
|
+
'error',
|
|
91
|
+
'single',
|
|
92
|
+
{avoidEscape: true},
|
|
93
|
+
],
|
|
73
94
|
'@stylistic/quote-props': [
|
|
74
95
|
'error',
|
|
75
96
|
'as-needed',
|
|
76
97
|
],
|
|
98
|
+
'@stylistic/semi': [
|
|
99
|
+
'error',
|
|
100
|
+
'never',
|
|
101
|
+
{beforeStatementContinuationChars: 'always'},
|
|
102
|
+
],
|
|
77
103
|
'@typescript-eslint/no-empty-function': 'off',
|
|
78
104
|
'@typescript-eslint/consistent-indexed-object-style': 'off',
|
|
79
105
|
},
|