@borela-tech/eslint-config 1.0.0 → 1.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.
@@ -74,10 +74,7 @@ var CONFIG = typescript.config(
74
74
  "error",
75
75
  "as-needed"
76
76
  ],
77
- "@typescript-eslint/member-ordering": [
78
- "error",
79
- { default: { order: "natural" } }
80
- ],
77
+ "@typescript-eslint/no-empty-function": "off",
81
78
  "@typescript-eslint/consistent-indexed-object-style": "off"
82
79
  }
83
80
  }
@@ -85,4 +82,4 @@ var CONFIG = typescript.config(
85
82
  export {
86
83
  CONFIG
87
84
  };
88
- //# sourceMappingURL=index.mjs.map
85
+ //# sourceMappingURL=index.js.map
@@ -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 '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-spacing': [\n 'error',\n 'never',\n ],\n '@stylistic/operator-linebreak': [\n 'error',\n 'before',\n {overrides: {'=': 'after'}},\n ],\n '@stylistic/quote-props': [\n 'error',\n 'as-needed',\n ],\n '@typescript-eslint/member-ordering': [\n 'error',\n {default: {order: 'natural'}},\n ],\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;AAAA,MACR,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AAAA,EACA,OAAO,QAAQ;AAAA,EACf,MAAM,QAAQ,KAAK;AAAA,EACnB,UAAU,QAAQ;AAAA,EAClB,WAAW,QAAQ;AAAA,EACnB,WAAW,QAAQ;AAAA,EACnB;AAAA,IACE,SAAS;AAAA,MACP,eAAe;AAAA,IACjB;AAAA,IACA,OAAO,WAAW,QAAQ,YAAY;AAAA,EACxC;AAAA,EACA;AAAA,IACE,OAAO;AAAA,MACL,wBAAwB;AAAA,QACtB;AAAA,QACA;AAAA,QACA,EAAC,2BAA2B,KAAI;AAAA,MAClC;AAAA,MACA,4BAA4B;AAAA,MAC5B,2BAA2B;AAAA,QACzB;AAAA,QACA;AAAA,MACF;AAAA,MACA,0BAA0B;AAAA,QACxB;AAAA,QACA;AAAA,QACA,EAAC,iBAAiB,KAAI;AAAA,MACxB;AAAA,MACA,qBAAqB;AAAA,QACnB;AAAA,QACA;AAAA,QACA,EAAC,cAAc,CAAC,kBAAkB,EAAC;AAAA,MACrC;AAAA,MACA,8BAA8B;AAAA,QAC5B;AAAA,QACA;AAAA,UACE,cAAc;AAAA,UACd,eAAe;AAAA,UACf,mBAAmB;AAAA,UACnB,cAAc;AAAA,QAChB;AAAA,MACF;AAAA,MACA,kCAAkC;AAAA,MAClC,0CAA0C;AAAA,MAC1C,mCAAmC;AAAA,QACjC;AAAA,QACA;AAAA,MACF;AAAA,MACA,iCAAiC;AAAA,QAC/B;AAAA,QACA;AAAA,QACA,EAAC,WAAW,EAAC,KAAK,QAAO,EAAC;AAAA,MAC5B;AAAA,MACA,0BAA0B;AAAA,QACxB;AAAA,QACA;AAAA,MACF;AAAA,MACA,sCAAsC;AAAA,QACpC;AAAA,QACA,EAAC,SAAS,EAAC,OAAO,UAAS,EAAC;AAAA,MAC9B;AAAA,MACA,sDAAsD;AAAA,IACxD;AAAA,EACF;AACF;","names":[]}
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 '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-spacing': [\n 'error',\n 'never',\n ],\n '@stylistic/operator-linebreak': [\n 'error',\n 'before',\n {overrides: {'=': 'after'}},\n ],\n '@stylistic/quote-props': [\n 'error',\n 'as-needed',\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;AAAA,MACR,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AAAA,EACA,OAAO,QAAQ;AAAA,EACf,MAAM,QAAQ,KAAK;AAAA,EACnB,UAAU,QAAQ;AAAA,EAClB,WAAW,QAAQ;AAAA,EACnB,WAAW,QAAQ;AAAA,EACnB;AAAA,IACE,SAAS;AAAA,MACP,eAAe;AAAA,IACjB;AAAA,IACA,OAAO,WAAW,QAAQ,YAAY;AAAA,EACxC;AAAA,EACA;AAAA,IACE,OAAO;AAAA,MACL,wBAAwB;AAAA,QACtB;AAAA,QACA;AAAA,QACA,EAAC,2BAA2B,KAAI;AAAA,MAClC;AAAA,MACA,4BAA4B;AAAA,MAC5B,2BAA2B;AAAA,QACzB;AAAA,QACA;AAAA,MACF;AAAA,MACA,0BAA0B;AAAA,QACxB;AAAA,QACA;AAAA,QACA,EAAC,iBAAiB,KAAI;AAAA,MACxB;AAAA,MACA,qBAAqB;AAAA,QACnB;AAAA,QACA;AAAA,QACA,EAAC,cAAc,CAAC,kBAAkB,EAAC;AAAA,MACrC;AAAA,MACA,8BAA8B;AAAA,QAC5B;AAAA,QACA;AAAA,UACE,cAAc;AAAA,UACd,eAAe;AAAA,UACf,mBAAmB;AAAA,UACnB,cAAc;AAAA,QAChB;AAAA,MACF;AAAA,MACA,kCAAkC;AAAA,MAClC,0CAA0C;AAAA,MAC1C,mCAAmC;AAAA,QACjC;AAAA,QACA;AAAA,MACF;AAAA,MACA,iCAAiC;AAAA,QAC/B;AAAA,QACA;AAAA,QACA,EAAC,WAAW,EAAC,KAAK,QAAO,EAAC;AAAA,MAC5B;AAAA,MACA,0BAA0B;AAAA,QACxB;AAAA,QACA;AAAA,MACF;AAAA,MACA,wCAAwC;AAAA,MACxC,sDAAsD;AAAA,IACxD;AAAA,EACF;AACF;","names":[]}
package/package.json CHANGED
@@ -1,8 +1,15 @@
1
1
  {
2
2
  "name": "@borela-tech/eslint-config",
3
- "version": "1.0.0",
3
+ "version": "1.1.3",
4
4
  "description": "ESLint config used in Borela Tech projects.",
5
- "main": "eslint.config.ts",
5
+ "type": "module",
6
+ "main": "src/index.ts",
7
+ "exports": {
8
+ "import": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ }
12
+ },
6
13
  "repository": {
7
14
  "type": "git",
8
15
  "url": "git+https://github.com/borela-tech/eslint-config.git"
@@ -19,24 +26,21 @@
19
26
  "email": "alexandre@borela.tech"
20
27
  },
21
28
  "license": "Apache-2.0",
22
- "exports": {
23
- "./package.json": "./package.json",
24
- ".": {
25
- "types": "./dist/index.d.mts",
26
- "import": "./dist/index.mjs"
27
- }
28
- },
29
29
  "dependencies": {
30
30
  "@eslint/js": "^9.24.0",
31
31
  "@stylistic/eslint-plugin": "^4.2.0",
32
- "eslint": "^9.24.0",
33
32
  "eslint-plugin-react": "^7.37.5",
34
33
  "eslint-plugin-react-hooks": "^5.2.0",
35
34
  "typescript-eslint": "^8.29.1"
36
35
  },
37
36
  "devDependencies": {
37
+ "eslint": "^9.24.0",
38
38
  "jiti": "^2.4.2",
39
39
  "tsup": "^8.3.5",
40
40
  "typescript": "^5.8.3"
41
+ },
42
+ "peerDependencies": {
43
+ "eslint": "^9.24.0",
44
+ "typescript": "^5.8.3"
41
45
  }
42
46
  }
package/src/index.ts ADDED
@@ -0,0 +1,81 @@
1
+ import eslint from '@eslint/js'
2
+ import react from 'eslint-plugin-react'
3
+ import reactHooks from 'eslint-plugin-react-hooks'
4
+ import stylistic from '@stylistic/eslint-plugin'
5
+ import typescript from 'typescript-eslint'
6
+
7
+ export const CONFIG = typescript.config(
8
+ {
9
+ ignores: [
10
+ 'src/graphql/sdk.ts',
11
+ '**/node_modules/**',
12
+ '**/dist/**',
13
+ ],
14
+ settings: {
15
+ react: {
16
+ version: '19',
17
+ },
18
+ },
19
+ },
20
+ eslint.configs.recommended,
21
+ react.configs.flat.recommended,
22
+ stylistic.configs.recommended,
23
+ typescript.configs.recommended,
24
+ typescript.configs.stylistic,
25
+ {
26
+ plugins: {
27
+ 'react-hooks': reactHooks,
28
+ },
29
+ rules: reactHooks.configs.recommended.rules,
30
+ },
31
+ {
32
+ rules: {
33
+ 'capitalized-comments': [
34
+ 'error',
35
+ 'always',
36
+ {ignoreConsecutiveComments: true},
37
+ ],
38
+ 'react/react-in-jsx-scope': 'off',
39
+ '@stylistic/arrow-parens': [
40
+ 'error',
41
+ 'as-needed',
42
+ ],
43
+ '@stylistic/brace-style': [
44
+ 'error',
45
+ '1tbs',
46
+ {allowSingleLine: true},
47
+ ],
48
+ '@stylistic/indent': [
49
+ 'error',
50
+ 2,
51
+ {ignoredNodes: ['TSMappedType > *']},
52
+ ],
53
+ '@stylistic/jsx-tag-spacing': [
54
+ 'error',
55
+ {
56
+ afterOpening: 'never',
57
+ beforeClosing: 'never',
58
+ beforeSelfClosing: 'never',
59
+ closingSlash: 'never',
60
+ },
61
+ ],
62
+ '@stylistic/jsx-wrap-multilines': 'off',
63
+ '@stylistic/lines-between-class-members': 'off',
64
+ '@stylistic/object-curly-spacing': [
65
+ 'error',
66
+ 'never',
67
+ ],
68
+ '@stylistic/operator-linebreak': [
69
+ 'error',
70
+ 'before',
71
+ {overrides: {'=': 'after'}},
72
+ ],
73
+ '@stylistic/quote-props': [
74
+ 'error',
75
+ 'as-needed',
76
+ ],
77
+ '@typescript-eslint/no-empty-function': 'off',
78
+ '@typescript-eslint/consistent-indexed-object-style': 'off',
79
+ },
80
+ },
81
+ )
package/eslint.config.ts DELETED
@@ -1,2 +0,0 @@
1
- import {CONFIG} from './src'
2
- export default CONFIG
File without changes