eslint-plugin-import-lite 0.1.0 → 0.2.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/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # eslint-plugin-import-lite
2
2
 
3
+ > [!WARNING]
4
+ > WIP
5
+
3
6
  [![npm version][npm-version-src]][npm-version-href]
4
7
  [![npm bundle size][npm-bundle-size-src]][npm-bundle-size-href]
5
8
  [![License][license-src]][license-href]
@@ -24,7 +27,8 @@ But there are some useful rules and [some people (include me) want to bring the
24
27
 
25
28
  ## Credits
26
29
 
27
- [eslint-plugin-import-x](https://github.com/un-ts/eslint-plugin-import-x) - [MIT](https://github.com/un-ts/eslint-plugin-import-x/blob/master/LICENSE)
30
+ - [eslint-plugin-import-x](https://github.com/un-ts/eslint-plugin-import-x) - source codes [MIT](https://github.com/un-ts/eslint-plugin-import-x/blob/master/LICENSE)
31
+ - [eslint-stylistic](https://github.com/eslint-stylistic/eslint-stylistic) - project structure and scripts [MIT](https://github.com/eslint-stylistic/eslint-stylistic/blob/main/LICENSE)
28
32
 
29
33
  ## License
30
34
 
package/dist/ast.js CHANGED
@@ -1,10 +1,10 @@
1
- import { TSESTree } from "@typescript-eslint/utils";
1
+ import { AST_NODE_TYPES } from "@typescript-eslint/types";
2
2
 
3
3
  //#region src/utils/ast.ts
4
4
  function getValue(node) {
5
5
  switch (node.type) {
6
- case TSESTree.AST_NODE_TYPES.Identifier: return node.name;
7
- case TSESTree.AST_NODE_TYPES.Literal: return node.value;
6
+ case AST_NODE_TYPES.Identifier: return node.name;
7
+ case AST_NODE_TYPES.Literal: return node.value;
8
8
  default: throw new Error(`Unsupported node type: ${node.type}`);
9
9
  }
10
10
  }