This commit is contained in:
Alex
2023-07-30 20:43:14 -04:00
parent 08cf6729ae
commit 13f2f75acf
11 changed files with 378 additions and 127 deletions

View File

@ -26,10 +26,10 @@ index 883c03b7..0111d616 100644
}
diff --git a/.eslintrc b/.eslintrc
deleted file mode 100644
index 709a4744..00000000
index 932055e8..00000000
--- a/.eslintrc
+++ /dev/null
@@ -1,247 +0,0 @@
@@ -1,248 +0,0 @@
-{
- "root": true,
- "plugins": [
@ -51,6 +51,7 @@ index 709a4744..00000000
- "ecmaVersion": 2020,
- },
- "rules": {
- "array-bracket-spacing": [2, "never"],
- "arrow-body-style": [2, "as-needed"],
- "arrow-parens": [2, "always"],
- "arrow-spacing": [2, { "before": true, "after": true }],
@ -607,3 +608,15 @@ index feafba90..9a464041 100644
+ )
+}
\ No newline at end of file
diff --git a/src/rules/imports-first.js b/src/rules/imports-first.js
index 966367e9..3881d383 100644
--- a/src/rules/imports-first.js
+++ b/src/rules/imports-first.js
@@ -1,6 +1,6 @@
import docsUrl from '../docsUrl';
-const first = require('./first');
+import first from './first';
const newMeta = {
...first.meta,

View File

@ -211,7 +211,7 @@ index a1bb4811..db051356 100644
const docsUrl = require('../util/docsUrl');
const jsxUtil = require('../util/jsx');
diff --git a/lib/rules/jsx-sort-props.js b/lib/rules/jsx-sort-props.js
index 5de5bee1..8013a8de 100644
index 6d19f201..4b1849cc 100644
--- a/lib/rules/jsx-sort-props.js
+++ b/lib/rules/jsx-sort-props.js
@@ -5,7 +5,7 @@
@ -284,7 +284,7 @@ index 55073bfe..efc07af1 100644
const astUtil = require('./ast');
const isCreateElement = require('./isCreateElement');
diff --git a/package.json b/package.json
index b1fa86fa..758b2177 100644
index e37bae08..5bfa4b9f 100644
--- a/package.json
+++ b/package.json
@@ -25,21 +25,13 @@

View File

@ -71,12 +71,12 @@ index 0f1cd04..bfed363 100644
+export { hasProp } from './src';
\ No newline at end of file
diff --git a/package.json b/package.json
index 40f7947..4759eca 100644
index f77b766..3e6d321 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "jsx-ast-utils",
"version": "3.3.4",
"version": "3.3.5",
"description": "AST utility module for statically analyzing JSX",
- "main": "lib/index.js",
+ "main": "src/index.js",