@backstage/eslint-plugin 0.1.10-next.0 → 0.1.10
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @backstage/eslint-plugin
|
|
2
2
|
|
|
3
|
+
## 0.1.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b1c2a2d: Exclude `@material-ui/data-grid`
|
|
8
|
+
- 63963f6: Internal refactor to deal with `estree` upgrade
|
|
9
|
+
|
|
10
|
+
## 0.1.10-next.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- b1c2a2d: Exclude `@material-ui/data-grid`
|
|
15
|
+
|
|
3
16
|
## 0.1.10-next.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/eslint-plugin",
|
|
3
|
-
"version": "0.1.10
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Backstage ESLint plugin",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"minimatch": "^9.0.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@backstage/cli": "0.28.0
|
|
25
|
+
"@backstage/cli": "^0.28.0",
|
|
26
26
|
"@types/estree": "^1.0.5",
|
|
27
27
|
"eslint": "^8.33.0"
|
|
28
28
|
}
|
|
@@ -135,6 +135,8 @@ module.exports = {
|
|
|
135
135
|
if (!node.source.value.startsWith('@material-ui/')) return;
|
|
136
136
|
// Return if import is from '@material-ui/core/styles', as it's valid already
|
|
137
137
|
if (node.source.value === '@material-ui/core/styles') return;
|
|
138
|
+
// Ignore the @material-ui/data-grid library which shares this namespace
|
|
139
|
+
if (node.source.value === '@material-ui/data-grid') return;
|
|
138
140
|
// Return if proper import eg. `import Box from '@material-ui/core/Box'`
|
|
139
141
|
// Or if third level or deeper imports
|
|
140
142
|
if (node.source.value?.split('/').length >= 3) return;
|
|
@@ -47,6 +47,9 @@ ruleTester.run('path-imports-rule', rule, {
|
|
|
47
47
|
{
|
|
48
48
|
code: `import { CreateCSSProperties, StyledComponentProps } from '@material-ui/core/styles/withStyles';`,
|
|
49
49
|
},
|
|
50
|
+
{
|
|
51
|
+
code: `import { DataGrid, GridColDef, GridValueGetterParams } from '@material-ui/data-grid';`,
|
|
52
|
+
},
|
|
50
53
|
],
|
|
51
54
|
invalid: [
|
|
52
55
|
{
|