diff --git a/README.md b/README.md index 23068f1..e63aff5 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ Each item has emojis denoting: | [no-restricted-syntax](https://eslint.org/docs/latest/rules/no-restricted-syntax) | Enforces `switch` `case`'s content to be enclosed in braces | | 🟢 | | [no-tabs](https://eslint.org/docs/latest/rules/no-tabs) | Disallows tabs | 🟠 | 🟢 | | [no-trailing-spaces](https://eslint.org/docs/latest/rules/no-trailing-spaces) | Disallows trailing whitespace at the end of lines | 🟠 | 🟢 | +| [no-undef](https://eslint.org/docs/latest/rules/no-undef) | Disallows use of undeclared variables | 🟠 | 🟢 | | [no-unused-vars](https://eslint.org/docs/latest/rules/no-unused-vars) | Disallows unused variables | 🟠 | 🟢 | | [no-unsafe-optional-chaining](https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining) | Disallows use of optional chaining in contexts where the `undefined` value is not allowed | 🟠 | 🟢 | | [object-curly-newline](https://eslint.org/docs/latest/rules/object-curly-newline) | Requires line breaks after opening and before closing braces | 🟠 | 🟢 | diff --git a/package-lock.json b/package-lock.json index 020af07..84c11ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "eslint-plugin-crisp", - "version": "1.0.73", + "version": "1.0.74", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "eslint-plugin-crisp", - "version": "1.0.73", + "version": "1.0.74", "license": "MIT", "dependencies": { "doctrine": "3.0.0", diff --git a/package.json b/package.json index 4a4fe1a..a2626e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-crisp", - "version": "1.0.73", + "version": "1.0.74", "description": "Custom ESLint Rules for Crisp", "author": "Crisp IM SAS", "main": "index.js", diff --git a/recommended-vue.js b/recommended-vue.js index 4dbbd57..611d0e7 100644 --- a/recommended-vue.js +++ b/recommended-vue.js @@ -94,6 +94,7 @@ module.exports = { ], "no-tabs": "error", "no-trailing-spaces": "error", + "no-undef": "error", "no-unused-vars": "warn", "no-unsafe-optional-chaining": "error", "object-curly-newline": [ diff --git a/recommended.js b/recommended.js index c52e368..a0a8e41 100644 --- a/recommended.js +++ b/recommended.js @@ -95,6 +95,7 @@ module.exports = { "no-mixed-spaces-and-tabs": "error", "no-tabs": "error", "no-trailing-spaces": "error", + "no-undef": "error", "no-unused-vars": "warn", "no-unsafe-optional-chaining": "error", "object-curly-newline": [