@borela-tech/eslint-config 1.2.1 → 1.3.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/bin/build +9 -0
- package/bin/lint +12 -0
- package/bin/publish +12 -0
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +9 -1
package/bin/build
ADDED
package/bin/lint
ADDED
package/bin/publish
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env -S bash -e -o pipefail
|
|
2
|
+
|
|
3
|
+
SCRIPT_DIR=$(dirname -- "${BASH_SOURCE[0]}")
|
|
4
|
+
pushd "$SCRIPT_DIR/.." > /dev/null
|
|
5
|
+
|
|
6
|
+
./bin/build
|
|
7
|
+
npm publish \
|
|
8
|
+
--access public \
|
|
9
|
+
--registry https://registry.npmjs.org/ \
|
|
10
|
+
--tag latest
|
|
11
|
+
|
|
12
|
+
popd > /dev/null
|
package/dist/index.js
CHANGED
|
@@ -54,7 +54,7 @@ var CONFIG = typescript.config(
|
|
|
54
54
|
],
|
|
55
55
|
"@stylistic/brace-style": [
|
|
56
56
|
"error",
|
|
57
|
-
"
|
|
57
|
+
"1tbs",
|
|
58
58
|
{ allowSingleLine: true }
|
|
59
59
|
],
|
|
60
60
|
"@stylistic/indent": [
|
|
@@ -101,7 +101,15 @@ var CONFIG = typescript.config(
|
|
|
101
101
|
{ beforeStatementContinuationChars: "always" }
|
|
102
102
|
],
|
|
103
103
|
"@typescript-eslint/no-empty-function": "off",
|
|
104
|
-
"@typescript-eslint/consistent-indexed-object-style": "off"
|
|
104
|
+
"@typescript-eslint/consistent-indexed-object-style": "off",
|
|
105
|
+
"sort-imports": [
|
|
106
|
+
"error",
|
|
107
|
+
{
|
|
108
|
+
allowSeparatedGroups: true,
|
|
109
|
+
ignoreCase: true,
|
|
110
|
+
ignoreMemberSort: false
|
|
111
|
+
}
|
|
112
|
+
]
|
|
105
113
|
}
|
|
106
114
|
}
|
|
107
115
|
);
|
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/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 '
|
|
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 '1tbs',\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 'sort-imports': [\n 'error',\n {\n allowSeparatedGroups: true,\n ignoreCase: true,\n ignoreMemberSort: false,\n },\n ],\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;AAAA,MACR,OAAO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A,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,MACtD,gBAAgB;AAAA,QACd;AAAA,QACA;AAAA,UACE,sBAAsB;AAAA,UACtB,YAAY;AAAA,UACZ,kBAAkB;AAAA,QACpB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -54,7 +54,7 @@ export const CONFIG = typescript.config(
|
|
|
54
54
|
],
|
|
55
55
|
'@stylistic/brace-style': [
|
|
56
56
|
'error',
|
|
57
|
-
'
|
|
57
|
+
'1tbs',
|
|
58
58
|
{allowSingleLine: true},
|
|
59
59
|
],
|
|
60
60
|
'@stylistic/indent': [
|
|
@@ -102,6 +102,14 @@ export const CONFIG = typescript.config(
|
|
|
102
102
|
],
|
|
103
103
|
'@typescript-eslint/no-empty-function': 'off',
|
|
104
104
|
'@typescript-eslint/consistent-indexed-object-style': 'off',
|
|
105
|
+
'sort-imports': [
|
|
106
|
+
'error',
|
|
107
|
+
{
|
|
108
|
+
allowSeparatedGroups: true,
|
|
109
|
+
ignoreCase: true,
|
|
110
|
+
ignoreMemberSort: false,
|
|
111
|
+
},
|
|
112
|
+
],
|
|
105
113
|
},
|
|
106
114
|
},
|
|
107
115
|
)
|