aboutsummaryrefslogtreecommitdiffstats
path: root/eslint.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'eslint.config.js')
-rw-r--r--eslint.config.js30
1 files changed, 20 insertions, 10 deletions
diff --git a/eslint.config.js b/eslint.config.js
index 4c8d86bbd..bb6ca7635 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -89,12 +89,15 @@ export default [
},
{
- files: [ "src/wrapper.js" ],
+ files: [
+ "src/wrapper.js",
+ "src/wrapper-esm.js",
+ "src/wrapper-factory.js",
+ "src/wrapper-factory-esm.js"
+ ],
languageOptions: {
- sourceType: "script",
globals: {
- jQuery: false,
- module: true
+ jQuery: false
}
},
rules: {
@@ -106,7 +109,7 @@ export default [
// This makes it so code within the wrapper is not indented.
ignoredNodes: [
- "Program > ExpressionStatement > CallExpression > :last-child > *"
+ "Program > FunctionDeclaration > *"
]
}
]
@@ -114,14 +117,21 @@ export default [
},
{
- files: [ "src/wrapper-esm.js" ],
+ files: [
+ "src/wrapper.js",
+ "src/wrapper-factory.js"
+ ],
languageOptions: {
+ sourceType: "script",
globals: {
- jQuery: false
+ module: false
}
- },
+ }
+ },
+
+ {
+ files: [ "src/wrapper.js" ],
rules: {
- "no-unused-vars": "off",
indent: [
"error",
"tab",
@@ -129,7 +139,7 @@ export default [
// This makes it so code within the wrapper is not indented.
ignoredNodes: [
- "Program > FunctionDeclaration > *"
+ "Program > ExpressionStatement > CallExpression > :last-child > *"
]
}
]