This commit is contained in:
Alex
2024-03-14 22:31:04 -04:00
parent 4c67de9f72
commit 19b07691fc
6 changed files with 192 additions and 173 deletions

View File

@ -26,10 +26,10 @@ index 883c03b7..0111d616 100644
}
diff --git a/.eslintrc b/.eslintrc
deleted file mode 100644
index ddf7bc56..00000000
index 224ffcb0..00000000
--- a/.eslintrc
+++ /dev/null
@@ -1,248 +0,0 @@
@@ -1,268 +0,0 @@
-{
- "root": true,
- "plugins": [
@ -128,6 +128,7 @@ index ddf7bc56..00000000
- "no-multiple-empty-lines": [2, { "max": 1, "maxEOF": 1, "maxBOF": 0 }],
- "no-return-assign": [2, "always"],
- "no-trailing-spaces": 2,
- "no-use-before-define": [2, { "functions": true, "classes": true, "variables": true }],
- "no-var": 2,
- "object-curly-spacing": [2, "always"],
- "object-shorthand": ["error", "always", {
@ -259,6 +260,25 @@ index ddf7bc56..00000000
- },
- {
- "files": [
- "utils/**", // TODO
- "src/ExportMap.js", // TODO
- ],
- "rules": {
- "no-use-before-define": "off",
- },
- },
- {
- "files": [
- "resolvers/webpack/index.js",
- "resolvers/webpack/test/example.js",
- "utils/parse.js",
- ],
- "rules": {
- "no-console": "off",
- },
- },
- {
- "files": [
- "resolvers/*/test/**/*",
- ],
- "env": {

View File

@ -1,5 +1,5 @@
diff --git a/lib/index.js b/lib/index.js
index 6497d22..4cc5f27 100644
index 39331a6..4c3a27d 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -1,9 +1,9 @@
@ -16,7 +16,7 @@ index 6497d22..4cc5f27 100644
const rules = {
"callback-return": require("./rules/callback-return"),
@@ -51,8 +51,8 @@ const rules = {
@@ -52,8 +52,8 @@ const rules = {
const mod = {
meta: {

View File

@ -237,10 +237,10 @@ index 64bbc8d5..b5e9c803 100644
const isCreateElement = require('../util/isCreateElement');
const report = require('../util/report');
diff --git a/lib/rules/no-unknown-property.js b/lib/rules/no-unknown-property.js
index ec913e1f..d4ec6688 100644
index 781e5495..73cc5eb3 100644
--- a/lib/rules/no-unknown-property.js
+++ b/lib/rules/no-unknown-property.js
@@ -541,7 +541,7 @@ module.exports = {
@@ -543,7 +543,7 @@ module.exports = {
create(context) {
function getIgnoreConfig() {
@ -249,7 +249,7 @@ index ec913e1f..d4ec6688 100644
}
function getRequireDataLowercase() {
@@ -554,7 +554,7 @@ module.exports = {
@@ -556,7 +556,7 @@ module.exports = {
JSXAttribute(node) {
const ignoreNames = getIgnoreConfig();
const actualName = context.getSourceCode().getText(node.name);
@ -258,7 +258,7 @@ index ec913e1f..d4ec6688 100644
return;
}
const name = normalizeAttributeCase(actualName);
@@ -582,6 +582,15 @@ module.exports = {
@@ -584,6 +584,15 @@ module.exports = {
const tagName = getTagName(node);