@gooddata/oxlint-config 11.19.0-alpha.11 → 11.20.0-alpha.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/PACKAGES.md +1 -0
- package/dist/base.json +130 -0
- package/dist/browser-esm.json +130 -0
- package/dist/browser.json +130 -0
- package/dist/esm-react-cypress.json +130 -0
- package/dist/esm-react-vitest-storybook.json +130 -0
- package/dist/esm-react-vitest.json +130 -0
- package/dist/esm-react.json +130 -0
- package/dist/esm-vitest.json +130 -0
- package/dist/esm.json +130 -0
- package/dist/react-cypress.json +130 -0
- package/dist/react-vitest.json +130 -0
- package/dist/react.json +130 -0
- package/dist/vitest.json +130 -0
- package/package.json +8 -6
package/dist/vitest.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"plugins": [
|
|
4
4
|
"oxc",
|
|
5
5
|
"eslint",
|
|
6
|
+
"typescript",
|
|
6
7
|
"import"
|
|
7
8
|
],
|
|
8
9
|
"jsPlugins": [
|
|
@@ -621,6 +622,7 @@
|
|
|
621
622
|
"no-extra-boolean-cast": "error",
|
|
622
623
|
"no-unexpected-multiline": "off",
|
|
623
624
|
"no-duplicate-imports": "error",
|
|
625
|
+
"prefer-const": "off",
|
|
624
626
|
"headers/header-format": [
|
|
625
627
|
"error",
|
|
626
628
|
{
|
|
@@ -2017,6 +2019,134 @@
|
|
|
2017
2019
|
"no-restricted-exports": "off"
|
|
2018
2020
|
}
|
|
2019
2021
|
},
|
|
2022
|
+
{
|
|
2023
|
+
"files": [
|
|
2024
|
+
"**/*.ts",
|
|
2025
|
+
"**/*.tsx",
|
|
2026
|
+
"**/*.mts",
|
|
2027
|
+
"**/*.cts"
|
|
2028
|
+
],
|
|
2029
|
+
"rules": {
|
|
2030
|
+
"constructor-super": "off",
|
|
2031
|
+
"getter-return": "off",
|
|
2032
|
+
"no-class-assign": "off",
|
|
2033
|
+
"no-const-assign": "off",
|
|
2034
|
+
"no-dupe-args": "off",
|
|
2035
|
+
"no-dupe-class-members": "off",
|
|
2036
|
+
"no-dupe-keys": "off",
|
|
2037
|
+
"no-func-assign": "off",
|
|
2038
|
+
"no-import-assign": "off",
|
|
2039
|
+
"no-new-native-nonconstructor": "off",
|
|
2040
|
+
"no-new-symbol": "off",
|
|
2041
|
+
"no-obj-calls": "off",
|
|
2042
|
+
"no-redeclare": "off",
|
|
2043
|
+
"no-setter-return": "off",
|
|
2044
|
+
"no-this-before-super": "off",
|
|
2045
|
+
"no-undef": "off",
|
|
2046
|
+
"no-unreachable": "off",
|
|
2047
|
+
"no-unsafe-negation": "off",
|
|
2048
|
+
"no-var": "error",
|
|
2049
|
+
"no-with": "off",
|
|
2050
|
+
"prefer-const": "error",
|
|
2051
|
+
"prefer-rest-params": "error",
|
|
2052
|
+
"prefer-spread": "error",
|
|
2053
|
+
"no-array-constructor": "off",
|
|
2054
|
+
"no-unused-expressions": "off",
|
|
2055
|
+
"no-unused-vars": "off",
|
|
2056
|
+
"@typescript-eslint/no-array-constructor": "error",
|
|
2057
|
+
"@typescript-eslint/no-duplicate-enum-values": "error",
|
|
2058
|
+
"@typescript-eslint/no-empty-object-type": "error",
|
|
2059
|
+
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
2060
|
+
"@typescript-eslint/no-misused-new": "error",
|
|
2061
|
+
"@typescript-eslint/no-namespace": "error",
|
|
2062
|
+
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
2063
|
+
"@typescript-eslint/no-require-imports": "error",
|
|
2064
|
+
"@typescript-eslint/no-this-alias": "error",
|
|
2065
|
+
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
2066
|
+
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
2067
|
+
"@typescript-eslint/prefer-as-const": "error",
|
|
2068
|
+
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
2069
|
+
"@typescript-eslint/triple-slash-reference": "error",
|
|
2070
|
+
"@typescript-eslint/explicit-function-return-type": 0,
|
|
2071
|
+
"@typescript-eslint/no-use-before-define": 0,
|
|
2072
|
+
"@typescript-eslint/no-empty-function": 0,
|
|
2073
|
+
"@typescript-eslint/no-unused-vars": [
|
|
2074
|
+
2,
|
|
2075
|
+
{
|
|
2076
|
+
"varsIgnorePattern": "^_.*$",
|
|
2077
|
+
"argsIgnorePattern": "^_.*$"
|
|
2078
|
+
}
|
|
2079
|
+
],
|
|
2080
|
+
"@typescript-eslint/no-explicit-any": "error",
|
|
2081
|
+
"@typescript-eslint/array-type": "off",
|
|
2082
|
+
"@typescript-eslint/ban-ts-comment": [
|
|
2083
|
+
"error",
|
|
2084
|
+
{
|
|
2085
|
+
"ts-expect-error": "allow-with-description"
|
|
2086
|
+
}
|
|
2087
|
+
],
|
|
2088
|
+
"@typescript-eslint/no-wrapper-object-types": "error",
|
|
2089
|
+
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
2090
|
+
"@typescript-eslint/no-restricted-types": [
|
|
2091
|
+
"error",
|
|
2092
|
+
{
|
|
2093
|
+
"types": {
|
|
2094
|
+
"String": {
|
|
2095
|
+
"message": "Use 'string' instead",
|
|
2096
|
+
"fixWith": "string"
|
|
2097
|
+
},
|
|
2098
|
+
"Number": {
|
|
2099
|
+
"message": "Use 'number' instead",
|
|
2100
|
+
"fixWith": "number"
|
|
2101
|
+
},
|
|
2102
|
+
"Boolean": {
|
|
2103
|
+
"message": "Use 'boolean' instead",
|
|
2104
|
+
"fixWith": "boolean"
|
|
2105
|
+
},
|
|
2106
|
+
"Symbol": {
|
|
2107
|
+
"message": "Use 'symbol' instead",
|
|
2108
|
+
"fixWith": "symbol"
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
],
|
|
2113
|
+
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
2114
|
+
"@typescript-eslint/interface-name-prefix": "off",
|
|
2115
|
+
"@typescript-eslint/member-ordering": "off",
|
|
2116
|
+
"@typescript-eslint/no-inferrable-types": "off",
|
|
2117
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
2118
|
+
"no-restricted-syntax": [
|
|
2119
|
+
"error",
|
|
2120
|
+
{
|
|
2121
|
+
"selector": "MemberExpression[object.name='React']",
|
|
2122
|
+
"message": "Do not use `React.*`. Use named imports instead."
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
"selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
|
|
2126
|
+
"message": "Do not use `React.*` types. Use named imports instead."
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
"selector": "ExportNamespaceSpecifier",
|
|
2130
|
+
"message": "Usage of 'export * as …' is forbidden."
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
"selector": "ExportAllDeclaration",
|
|
2134
|
+
"message": "Usage of `export * from` is forbidden."
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
"selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
|
|
2138
|
+
"message": "Do not use `import * as ...` from relative paths."
|
|
2139
|
+
}
|
|
2140
|
+
],
|
|
2141
|
+
"@typescript-eslint/consistent-type-imports": [
|
|
2142
|
+
"error",
|
|
2143
|
+
{
|
|
2144
|
+
"prefer": "type-imports",
|
|
2145
|
+
"fixStyle": "inline-type-imports"
|
|
2146
|
+
}
|
|
2147
|
+
]
|
|
2148
|
+
}
|
|
2149
|
+
},
|
|
2020
2150
|
{
|
|
2021
2151
|
"files": [
|
|
2022
2152
|
"**/eslint.config.ts"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/oxlint-config",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.20.0-alpha.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "GoodData",
|
|
6
6
|
"repository": {
|
|
@@ -53,16 +53,18 @@
|
|
|
53
53
|
"jiti": "2.6.1",
|
|
54
54
|
"oxfmt": "0.27.0",
|
|
55
55
|
"oxlint": "^1.43.0",
|
|
56
|
+
"oxlint-tsgolint": "0.11.4",
|
|
56
57
|
"typescript": "5.9.3",
|
|
57
58
|
"vite-node": "^5.2.0",
|
|
58
|
-
"@gooddata/eslint-config": "11.
|
|
59
|
-
"@gooddata/lint-config": "11.
|
|
59
|
+
"@gooddata/eslint-config": "11.20.0-alpha.0",
|
|
60
|
+
"@gooddata/lint-config": "11.20.0-alpha.0"
|
|
60
61
|
},
|
|
61
62
|
"peerDependencies": {
|
|
62
63
|
"eslint-plugin-headers": "1.3.3",
|
|
63
64
|
"eslint-plugin-no-barrel-files": "1.2.2",
|
|
64
65
|
"eslint-plugin-sonarjs": "3.0.6",
|
|
65
|
-
"oxlint": "^1.43.0"
|
|
66
|
+
"oxlint": "^1.43.0",
|
|
67
|
+
"oxlint-tsgolint": "0.11.4"
|
|
66
68
|
},
|
|
67
69
|
"scripts": {
|
|
68
70
|
"_phase:build": "npm run build",
|
|
@@ -75,8 +77,8 @@
|
|
|
75
77
|
"lint-fix": "npm run oxlint-fix && npm run eslint-fix",
|
|
76
78
|
"oxfmt-check": "oxfmt --check .",
|
|
77
79
|
"oxfmt-write": "oxfmt .",
|
|
78
|
-
"oxlint": "oxlint .",
|
|
79
|
-
"oxlint-fix": "oxlint . --fix",
|
|
80
|
+
"oxlint": "oxlint . --type-aware",
|
|
81
|
+
"oxlint-fix": "oxlint . --type-aware --fix",
|
|
80
82
|
"update-package": "vite-node scripts/updatePackage.ts",
|
|
81
83
|
"validate": "npm run lint && npm run oxfmt-check"
|
|
82
84
|
}
|