@gooddata/eslint-config 11.19.0-alpha.3 → 11.19.0-alpha.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/LICENSE +7 -0
- package/PACKAGES_V8.md +23 -26
- package/PACKAGES_V9.md +24 -29
- package/README.md +22 -0
- package/dist/base.js +62 -9
- package/dist/base.json +59 -11
- package/dist/browser-esm.js +37 -351
- package/dist/browser-esm.json +60 -13
- package/dist/browser.js +23 -337
- package/dist/browser.json +60 -13
- package/dist/esm-react-cypress.js +62 -376
- package/dist/esm-react-cypress.json +59 -12
- package/dist/esm-react-vitest-storybook.js +62 -376
- package/dist/esm-react-vitest-storybook.json +59 -12
- package/dist/esm-react-vitest.js +62 -376
- package/dist/esm-react-vitest.json +59 -12
- package/dist/esm-react.js +62 -376
- package/dist/esm-react.json +59 -12
- package/dist/esm-vitest.js +56 -370
- package/dist/esm-vitest.json +59 -12
- package/dist/esm.js +32 -346
- package/dist/esm.json +60 -13
- package/dist/react-cypress.js +62 -376
- package/dist/react-cypress.json +59 -12
- package/dist/react-vitest.js +62 -376
- package/dist/react-vitest.json +59 -12
- package/dist/react.js +62 -376
- package/dist/react.json +59 -12
- package/dist/vitest.js +36 -716
- package/dist/vitest.json +59 -13
- package/package.json +15 -59
- package/dist/oxfmt-browser-esm.d.ts +0 -12
- package/dist/oxfmt-browser-esm.js +0 -1859
- package/dist/oxfmt-browser.d.ts +0 -12
- package/dist/oxfmt-browser.js +0 -1844
- package/dist/oxfmt-esm-react-cypress.d.ts +0 -12
- package/dist/oxfmt-esm-react-cypress.js +0 -1942
- package/dist/oxfmt-esm-react-vitest-storybook.d.ts +0 -12
- package/dist/oxfmt-esm-react-vitest-storybook.js +0 -1964
- package/dist/oxfmt-esm-react-vitest.d.ts +0 -12
- package/dist/oxfmt-esm-react-vitest.js +0 -1930
- package/dist/oxfmt-esm-react.d.ts +0 -12
- package/dist/oxfmt-esm-react.js +0 -1905
- package/dist/oxfmt-esm-vitest.d.ts +0 -12
- package/dist/oxfmt-esm-vitest.js +0 -1879
- package/dist/oxfmt-esm.d.ts +0 -12
- package/dist/oxfmt-esm.js +0 -1854
- package/dist/oxfmt-react-cypress.d.ts +0 -12
- package/dist/oxfmt-react-cypress.js +0 -1933
- package/dist/oxfmt-react-vitest.d.ts +0 -12
- package/dist/oxfmt-react-vitest.js +0 -1921
- package/dist/oxfmt-react.d.ts +0 -12
- package/dist/oxfmt-react.js +0 -1896
- package/dist/oxfmt-vitest.d.ts +0 -12
- package/dist/oxfmt-vitest.js +0 -2231
- package/dist/oxfmt.d.ts +0 -12
- package/dist/oxfmt.js +0 -1839
- package/dist/prettier.d.ts +0 -12
- package/dist/prettier.js +0 -2197
- package/dist/prettier.json +0 -1451
package/dist/vitest.json
CHANGED
|
@@ -12,9 +12,7 @@
|
|
|
12
12
|
"plugin:import-x/recommended",
|
|
13
13
|
"plugin:regexp/recommended",
|
|
14
14
|
"plugin:sonarjs/recommended-legacy",
|
|
15
|
-
"plugin:@vitest/legacy-recommended"
|
|
16
|
-
"plugin:prettier/recommended",
|
|
17
|
-
"plugin:prettier/recommended"
|
|
15
|
+
"plugin:@vitest/legacy-recommended"
|
|
18
16
|
],
|
|
19
17
|
"rules": {
|
|
20
18
|
"no-console": [
|
|
@@ -55,6 +53,13 @@
|
|
|
55
53
|
],
|
|
56
54
|
"message": "Default import from React is not allowed. Use named imports instead."
|
|
57
55
|
},
|
|
56
|
+
{
|
|
57
|
+
"name": "react-dom",
|
|
58
|
+
"importNames": [
|
|
59
|
+
"default"
|
|
60
|
+
],
|
|
61
|
+
"message": "Default import from React DOM is not allowed. Use named imports instead."
|
|
62
|
+
},
|
|
58
63
|
{
|
|
59
64
|
"name": "@gooddata/sdk-ui-kit",
|
|
60
65
|
"importNames": [
|
|
@@ -562,6 +567,10 @@
|
|
|
562
567
|
{
|
|
563
568
|
"selector": "MemberExpression[object.name='React']",
|
|
564
569
|
"message": "Do not use `React.*`. Use named imports instead."
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"selector": "MemberExpression[object.name='ReactDOM']",
|
|
573
|
+
"message": "Do not use `ReactDOM.*`. Use named imports instead."
|
|
565
574
|
}
|
|
566
575
|
],
|
|
567
576
|
"sort-imports": [
|
|
@@ -581,16 +590,7 @@
|
|
|
581
590
|
}
|
|
582
591
|
],
|
|
583
592
|
"no-extra-boolean-cast": "error",
|
|
584
|
-
"no-unexpected-multiline":
|
|
585
|
-
"no-warning-comments": [
|
|
586
|
-
"warn",
|
|
587
|
-
{
|
|
588
|
-
"terms": [
|
|
589
|
-
"todo"
|
|
590
|
-
],
|
|
591
|
-
"location": "start"
|
|
592
|
-
}
|
|
593
|
-
],
|
|
593
|
+
"no-unexpected-multiline": 0,
|
|
594
594
|
"header/header": [
|
|
595
595
|
2,
|
|
596
596
|
"line",
|
|
@@ -718,6 +718,45 @@
|
|
|
718
718
|
"no-eval": 2,
|
|
719
719
|
"no-delete-var": 2,
|
|
720
720
|
"no-octal-escape": 2,
|
|
721
|
+
"curly": 0,
|
|
722
|
+
"@typescript-eslint/lines-around-comment": 0,
|
|
723
|
+
"@typescript-eslint/quotes": 0,
|
|
724
|
+
"unicorn/template-indent": 0,
|
|
725
|
+
"@typescript-eslint/block-spacing": "off",
|
|
726
|
+
"@typescript-eslint/brace-style": "off",
|
|
727
|
+
"@typescript-eslint/comma-dangle": "off",
|
|
728
|
+
"@typescript-eslint/comma-spacing": "off",
|
|
729
|
+
"@typescript-eslint/func-call-spacing": "off",
|
|
730
|
+
"@typescript-eslint/indent": "off",
|
|
731
|
+
"@typescript-eslint/key-spacing": "off",
|
|
732
|
+
"@typescript-eslint/keyword-spacing": "off",
|
|
733
|
+
"@typescript-eslint/member-delimiter-style": "off",
|
|
734
|
+
"@typescript-eslint/no-extra-parens": "off",
|
|
735
|
+
"@typescript-eslint/no-extra-semi": "off",
|
|
736
|
+
"@typescript-eslint/object-curly-spacing": "off",
|
|
737
|
+
"@typescript-eslint/semi": "off",
|
|
738
|
+
"@typescript-eslint/space-before-blocks": "off",
|
|
739
|
+
"@typescript-eslint/space-before-function-paren": "off",
|
|
740
|
+
"@typescript-eslint/space-infix-ops": "off",
|
|
741
|
+
"@typescript-eslint/type-annotation-spacing": "off",
|
|
742
|
+
"react/jsx-child-element-spacing": "off",
|
|
743
|
+
"react/jsx-closing-bracket-location": "off",
|
|
744
|
+
"react/jsx-closing-tag-location": "off",
|
|
745
|
+
"react/jsx-curly-newline": "off",
|
|
746
|
+
"react/jsx-curly-spacing": "off",
|
|
747
|
+
"react/jsx-equals-spacing": "off",
|
|
748
|
+
"react/jsx-first-prop-new-line": "off",
|
|
749
|
+
"react/jsx-indent": "off",
|
|
750
|
+
"react/jsx-indent-props": "off",
|
|
751
|
+
"react/jsx-max-props-per-line": "off",
|
|
752
|
+
"react/jsx-newline": "off",
|
|
753
|
+
"react/jsx-one-expression-per-line": "off",
|
|
754
|
+
"react/jsx-props-no-multi-spaces": "off",
|
|
755
|
+
"react/jsx-tag-spacing": "off",
|
|
756
|
+
"react/jsx-wrap-multilines": "off",
|
|
757
|
+
"unicorn/empty-brace-spaces": "off",
|
|
758
|
+
"unicorn/no-nested-ternary": "off",
|
|
759
|
+
"unicorn/number-literal-case": "off",
|
|
721
760
|
"@vitest/expect-expect": "off",
|
|
722
761
|
"@vitest/no-commented-out-tests": "warn",
|
|
723
762
|
"@vitest/valid-title": "error",
|
|
@@ -756,6 +795,13 @@
|
|
|
756
795
|
],
|
|
757
796
|
"message": "Default import from React is not allowed. Use named imports instead."
|
|
758
797
|
},
|
|
798
|
+
{
|
|
799
|
+
"name": "react-dom",
|
|
800
|
+
"importNames": [
|
|
801
|
+
"default"
|
|
802
|
+
],
|
|
803
|
+
"message": "Default import from React DOM is not allowed. Use named imports instead."
|
|
804
|
+
},
|
|
759
805
|
{
|
|
760
806
|
"name": "@gooddata/sdk-ui-kit",
|
|
761
807
|
"importNames": [
|
package/package.json
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/eslint-config",
|
|
3
|
-
"version": "11.19.0-alpha.
|
|
3
|
+
"version": "11.19.0-alpha.5",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "GoodData",
|
|
4
6
|
"repository": {
|
|
5
7
|
"type": "git",
|
|
6
8
|
"url": "https://github.com/gooddata/gooddata-ui-sdk.git",
|
|
7
9
|
"directory": "tools/eslint-config"
|
|
8
10
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
"files": [
|
|
12
|
+
"dist/*.json",
|
|
13
|
+
"dist/*.js",
|
|
14
|
+
"dist/*.d.ts",
|
|
15
|
+
"dist/*.cjs",
|
|
16
|
+
"*.md",
|
|
17
|
+
"LICENSE"
|
|
18
|
+
],
|
|
12
19
|
"type": "module",
|
|
20
|
+
"sideEffects": false,
|
|
13
21
|
"exports": {
|
|
14
22
|
".": {
|
|
15
23
|
"import": "./dist/base.js",
|
|
@@ -63,61 +71,11 @@
|
|
|
63
71
|
"import": "./dist/esm-react-vitest-storybook.js",
|
|
64
72
|
"require": "./dist/esm-react-vitest-storybook.json"
|
|
65
73
|
},
|
|
66
|
-
"./prettier": {
|
|
67
|
-
"import": "./dist/prettier.js",
|
|
68
|
-
"require": "./dist/prettier.json"
|
|
69
|
-
},
|
|
70
|
-
"./oxfmt-browser": {
|
|
71
|
-
"import": "./dist/oxfmt-browser.js"
|
|
72
|
-
},
|
|
73
|
-
"./oxfmt-browser-esm": {
|
|
74
|
-
"import": "./dist/oxfmt-browser-esm.js"
|
|
75
|
-
},
|
|
76
|
-
"./oxfmt-vitest": {
|
|
77
|
-
"import": "./dist/oxfmt-vitest.js"
|
|
78
|
-
},
|
|
79
|
-
"./oxfmt-esm": {
|
|
80
|
-
"import": "./dist/oxfmt-esm.js"
|
|
81
|
-
},
|
|
82
|
-
"./oxfmt-esm-vitest": {
|
|
83
|
-
"import": "./dist/oxfmt-esm-vitest.js"
|
|
84
|
-
},
|
|
85
|
-
"./oxfmt-react": {
|
|
86
|
-
"import": "./dist/oxfmt-react.js"
|
|
87
|
-
},
|
|
88
|
-
"./oxfmt-react-vitest": {
|
|
89
|
-
"import": "./dist/oxfmt-react-vitest.js"
|
|
90
|
-
},
|
|
91
|
-
"./oxfmt-react-cypress": {
|
|
92
|
-
"import": "./dist/oxfmt-react-cypress.js"
|
|
93
|
-
},
|
|
94
|
-
"./oxfmt-esm-react": {
|
|
95
|
-
"import": "./dist/oxfmt-esm-react.js"
|
|
96
|
-
},
|
|
97
|
-
"./oxfmt-esm-react-cypress": {
|
|
98
|
-
"import": "./dist/oxfmt-esm-react-cypress.js"
|
|
99
|
-
},
|
|
100
|
-
"./oxfmt-esm-react-vitest": {
|
|
101
|
-
"import": "./dist/oxfmt-esm-react-vitest.js"
|
|
102
|
-
},
|
|
103
|
-
"./oxfmt-esm-react-vitest-storybook": {
|
|
104
|
-
"import": "./dist/oxfmt-esm-react-vitest-storybook.js"
|
|
105
|
-
},
|
|
106
|
-
"./oxfmt": {
|
|
107
|
-
"import": "./dist/oxfmt.js"
|
|
108
|
-
},
|
|
109
74
|
"./tsOverride": {
|
|
110
75
|
"import": "./dist/tsOverride.js",
|
|
111
76
|
"require": "./dist/tsOverride.cjs"
|
|
112
77
|
}
|
|
113
78
|
},
|
|
114
|
-
"files": [
|
|
115
|
-
"dist/*.json",
|
|
116
|
-
"dist/*.js",
|
|
117
|
-
"dist/*.d.ts",
|
|
118
|
-
"dist/*.cjs",
|
|
119
|
-
"*.md"
|
|
120
|
-
],
|
|
121
79
|
"devDependencies": {
|
|
122
80
|
"@eslint/js": "9.28.0",
|
|
123
81
|
"@testing-library/dom": "10.4.1",
|
|
@@ -126,7 +84,6 @@
|
|
|
126
84
|
"@typescript-eslint/parser": "8.52.0",
|
|
127
85
|
"@vitest/eslint-plugin": "1.6.6",
|
|
128
86
|
"eslint": "^9.39.2",
|
|
129
|
-
"eslint-config-prettier": "10.1.8",
|
|
130
87
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
131
88
|
"eslint-plugin-chai-friendly": "1.1.0",
|
|
132
89
|
"eslint-plugin-cypress": "3.6.0",
|
|
@@ -136,8 +93,6 @@
|
|
|
136
93
|
"eslint-plugin-jsdoc": "62.1.0",
|
|
137
94
|
"eslint-plugin-no-barrel-files": "1.2.2",
|
|
138
95
|
"eslint-plugin-no-only-tests": "3.3.0",
|
|
139
|
-
"eslint-plugin-oxfmt": "0.0.11",
|
|
140
|
-
"eslint-plugin-prettier": "5.5.4",
|
|
141
96
|
"eslint-plugin-react": "7.37.5",
|
|
142
97
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
143
98
|
"eslint-plugin-sonarjs": "3.0.6",
|
|
@@ -145,7 +100,6 @@
|
|
|
145
100
|
"globals": "17.2.0",
|
|
146
101
|
"jiti": "2.6.1",
|
|
147
102
|
"oxfmt": "0.27.0",
|
|
148
|
-
"prettier": "^3.6.2",
|
|
149
103
|
"react": "19.1.1",
|
|
150
104
|
"react-dom": "19.1.1",
|
|
151
105
|
"storybook": "^10.1.11",
|
|
@@ -170,7 +124,9 @@
|
|
|
170
124
|
"clean": "../../common/scripts/clean-command-state.sh && rm -rf ci dist esm coverage *.log tsconfig.tsbuildinfo",
|
|
171
125
|
"eslint": "eslint .",
|
|
172
126
|
"eslint-fix": "eslint . --fix",
|
|
127
|
+
"oxfmt-check": "oxfmt --check .",
|
|
128
|
+
"oxfmt-write": "oxfmt .",
|
|
173
129
|
"update-package": "vite-node scripts/updatePackage.ts",
|
|
174
|
-
"validate": "tsc && npm run eslint"
|
|
130
|
+
"validate": "tsc && npm run eslint && npm run oxfmt-check"
|
|
175
131
|
}
|
|
176
132
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface FlatConfig {
|
|
2
|
-
files?: string[];
|
|
3
|
-
ignores?: string[];
|
|
4
|
-
languageOptions?: Record<string, unknown>;
|
|
5
|
-
linterOptions?: Record<string, unknown>;
|
|
6
|
-
processor?: unknown;
|
|
7
|
-
plugins?: Record<string, unknown>;
|
|
8
|
-
rules?: Record<string, unknown>;
|
|
9
|
-
settings?: Record<string, unknown>;
|
|
10
|
-
}
|
|
11
|
-
declare const config: FlatConfig[];
|
|
12
|
-
export default config;
|