// Files to be included in the dist repo.
// README.md and bower.json are generated.
+// package.json is a simplified version of the original.
const files = [
"dist",
"dist-module",
// See https://github.com/eslint/eslint/discussions/17412
ignores: [
"external",
- "**/tmp",
+ "tmp",
"test/data/json_obj.js",
"test/data/jquery-*.js"
]
}
],
"no-implicit-globals": "error",
+ "no-unused-vars": [
+ "error",
+ { caughtErrorsIgnorePattern: "^_" }
+ ],
"one-var": [ "error", { var: "always" } ],
strict: [ "error", "function" ]
}
rules: {
...jqueryConfig.rules,
"no-implicit-globals": "error",
+ "no-unused-vars": [
+ "error",
+ { caughtErrorsIgnorePattern: "^_" }
+ ],
strict: [ "error", "global" ]
}
},
// That is okay for the built version
"no-multiple-empty-lines": "off",
+ "no-unused-vars": [
+ "error",
+ { caughtErrorsIgnorePattern: "^_" }
+ ],
+
// When custom compilation is used, the version string
// can get large. Accept that in the built version.
"max-len": "off",