![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
eslint-plugin-crisp
Advanced tools
A set of custom ESLint configurations and rules for Crisp.
π Maintainers: @baptistejamin, @eliottvincent
The plugin provides two configurations:
crisp/recommended
: JS rules targetting backend code (Node.js)crisp/recommended-vue
: JS rules targetting frontend code (Vue.js)Add the plugin in your ESLint config object, then extend the desired configuration:
{
"plugins": [
"eslint-plugin-crisp"
],
"extends": [
"plugin:crisp/recommended"
// OR "plugin:crisp/recommended-vue"
]
}
This is the list of plugins and rules used by ESLint Plugin Crisp, and what they do.
Each item has emojis denoting:
plugin:crisp/recommended
plugin:crisp/recommended-vue
Name | Description | π | π’ |
---|---|---|---|
eslint:recommended | Core ESLint rules | π’ | |
plugin:jsdoc/recommended | JSDoc linting rules | π | π’ |
plugin:vue/vue3-recommended | Vue.js 3 linting rules | π’ | |
plugin:vue-pug/vue3-recommended | Pug templates support for Vue.js linting rules | π’ |
Name | Description | π | π’ |
---|---|---|---|
eslint-plugin-jsdoc | JSDoc linting rules for ESLint | π | π’ |
Name | Description | π | π’ |
---|---|---|---|
arrow-parens | Requires parentheses around arrow function arguments | π | π’ |
brace-style | Enforces one true brace style for blocks | π | π’ |
comma-dangle | Disallows trailing commas | π | π’ |
comma-spacing | Enforces consistent spacing before and after commas | π’ | |
comma-style | Requires a comma after and on the same line | π | π’ |
curly | Ensures block statements are always wrapped in curly braces | π | π’ |
computed-property-spacing | Disallows spaces inside computed property brackets | π’ | |
default-param-last | Enforces default parameters to be last | π | π’ |
default-case-last | Enforces default clauses in switch statements to be last | π | π’ |
dot-notation | Enforces dot notation instead of square-bracket notation | π | π’ |
eqeqeq | Requires the use of === and !== | π | π’ |
eol-last | Requires newline at the end of files | π | π’ |
indent | Enforces 2-space indentation, and specific indentation levels for some nodes | π | π’ |
for-direction | Prevents for-loops to have stop condition that can never be reached | π | π’ |
key-spacing | Enforces consistent spacing in object literal properties (no space between the key and the colon, one space between the colon and the value) | π’ | |
keyword-spacing | Enforces consistent spacing before and after keywords | π | π’ |
linebreak-style | Enforces Unix-style line endings | π | π’ |
max-len | Enforces a maximum line length of 80 characters | π | |
newline-per-chained-call | Requires a newline after each call in a method chain | π’ | |
no-console | Disallows the use of console | π | π’ |
no-debugger | Disallows the use of debugger | π | π’ |
no-eval | Disallows the use of eval | π | π’ |
no-magic-numbers | Disallows magic numbers (except the ones in the context of array indexes and in default value assignments) | π | |
no-multi-str | Disallows multiline strings | π | π’ |
no-multiple-empty-lines | Allows a maximum of 1 consecutive empty lines | π’ | |
no-mixed-spaces-and-tabs | Disallows mixed spaces and tabs for indentation | π | π’ |
no-restricted-syntax | Enforces switch case 's content to be enclosed in braces | π’ | |
no-tabs | Disallows tabs | π | π’ |
no-trailing-spaces | Disallows trailing whitespace at the end of lines | π | π’ |
no-undef | Disallows use of undeclared variables | π | π’ |
no-unused-vars | Disallows unused variables | π | π’ |
no-unsafe-optional-chaining | Disallows use of optional chaining in contexts where the undefined value is not allowed | π | π’ |
object-curly-newline | Requires line breaks after opening and before closing braces | π | π’ |
object-curly-spacing | Requires spacing inside of braces | π | π’ |
padded-blocks | Disallows empty lines at the beginning and ending of blocks | π | π’ |
padding-line-between-statements | Requires padding lines between various statements | π | π’ |
prefer-arrow-callback | Requires using arrow functions for callbacks | π’ | |
quotes | Enforces the consistent use of double quotes (while allowing single quotes in order to avoid escape, and backticks for template literals) | π | π’ |
quote-props | Disallows quotes around object literal property names that are not strictly required | π | π’ |
semi | Requires semicolons at the end of statements | π | π’ |
semi-style | Enforces that semicolons are at the end of statements | π | π’ |
semi-spacing | Disallows space before semicolons, enforces spaces after | π’ | |
space-before-blocks | Enforces consistent spacing before blocks | π | π’ |
space-in-parens | Enforces zero spaces inside of parentheses | π | π’ |
space-infix-ops | Enforces spaces around infix operators | π’ |
Name | Description | π | π’ |
---|---|---|---|
crisp/align-comments | Enforces alignment of comments compared to the previous line (the indent rule doesn't check this case) | π | π’ |
crisp/align-consecutive-class-assignements | Enforces alignment of consecutive assignment statements in a class constructor | π | |
crisp/align-one-var | Enforces alignment of variables in 'one-var' statements | π | |
crisp/align-requires | Enforces alignment of require statements | π | |
crisp/const | Enforces that const variables start with __ or are all uppercase | π | |
crisp/constructor-variables | Ensures all class properties in the constructor start with _ | π | |
crisp/enforce-optional | Enforces use of optional chaining | π | π’ |
crisp/header-check | Enforces files to start with Crisp header | π | π’ |
crisp/header-comments-check | Enforces different comment blocks before different groups (imports, constants, instances and exports) | π | π’ |
crisp/import-group-comment | Ensures import statements are preceded by a comment stating their type | π’ | |
crisp/import-group-order | Ensures import statements are correctly ordered | π’ | |
crisp/methods-naming | Ensures methods are named according to their access (public , private , protected ) | π | π’ |
crisp/methods-ordering | Ensures methods order according to their access: public then protected then private | π | π’ |
crisp/multiline-comment-end-backslash | Enforces multiline comments to end with a backslash | π | π’ |
crisp/newline-after-switch-case | Requires newline between switch cases | π | π’ |
crisp/no-async | Disallows the use of async/syntax , in favor of Promise | π | π’ |
crisp/no-short-parameters | Disallow parameter names shorter than 3 characters | π | π’ |
crisp/no-space-in-optional-arguments | Disallows space before or after = in optional parameters | π | |
crisp/no-useless-template-literals | Disallows unnecessary use of template literals | π’ | |
crisp/no-var-in-blocks | Disallows var declarations inside function, method, or class block | π | π’ |
crisp/one-space-after-operator | Enforces at least one space before and one space after = and : operators | π | π’ |
crisp/regex-in-constructor | Ensures regular expressions are defined in the class constructor | π | π’ |
crisp/ternary-parenthesis | Enforces parentheses around conditions with operators in ternary expressions | π | π’ |
crisp/two-lines-between-class-members | Requires exactly two line breaks between class methods | π | |
crisp/variable-names | Requires variables defined within a method to start with _ | π | π’ |
Name | Description | π | π’ |
---|---|---|---|
jsdoc/no-undefined-types | Rule is disabled to allow some undefined types | π | |
jsdoc/require-description | Requires all functions to have a description in their JSDoc | π’ | |
jsdoc/require-param-description | Rule is disabled as we don't write any description for @param tags | π | π’ |
jsdoc/require-jsdoc | Enforces JSDoc comments on functions and classes | π | π’ |
jsdoc/sort-tags | Enforces specific order for tags | π | π’ |
Name | Description | π | π’ |
---|---|---|---|
crisp/jsdoc-align-params | Enforces various alignments | π | π’ |
crisp/jsdoc-check-indentation | Enforces consistent indentation | π | π’ |
crisp/jsdoc-check-optional-params | Requires optional parameters to be surrounded by brackets | π’ | |
crisp/jsdoc-enforce-access | Requires one of @public , @private , or @protected for functions | π’ | |
crisp/jsdoc-enforce-classdesc | Ensures JSDoc for class headers to include a non-empty @classdesc | π | π’ |
crisp/jsdoc-require-description-uppercase | Requires descriptions to start with an uppercase character | π | π’ |
Name | Description | π | π’ |
---|---|---|---|
vue/attributes-order | Enforces order of attributes | π’ | |
vue/block-lang | Allows script blocks to have no lang attribute | π’ | |
vue/block-order | Enforces order of component top-level elements (template , then script , then style ) | π’ | |
vue/block-tag-newline | Requires one line break after opening and before closing block-level tags | π’ | |
vue/comma-dangle | Disallows trailing commas in <template> | π’ | |
vue/component-api-style | Enforces Options API style | π’ | |
vue/component-name-in-template-casing | Enforces tag names to kebab case | π’ | |
vue/component-options-name-casing | Enforces component names in components options to pascal case | π’ | |
vue/custom-event-name-casing | Enforces custom event names to camel case | π’ | |
vue/eqeqeq | Requires the use of === and !== in <template> | π’ | |
vue/html-comment-content-spacing | Requires one space before and after HTML comment tags | π’ | |
vue/html-quotes | Rule is disabled in order to allow backticks in HTML attributes | π’ | |
vue/key-spacing | Enforces consistent spacing in object literal properties in <template> (no space between the key and the colon, one space between the colon and the value) | π’ | |
vue/match-component-import-name | Requires the registered component name to match the imported component name | π’ | |
vue/max-len | Enforces a maximum line length of 80 characters (only for <script> ) | π’ | |
vue/new-line-between-multi-line-property | Requires new lines between multi-line props | π’ | |
vue/no-bare-strings-in-template | Disallows the use of bare strings in <template> | π’ | |
vue/no-irregular-whitespace | Disallows irregular / invalid whitespaces | π’ | |
vue/no-multiple-objects-in-class | Disallows to pass multiple objects into array to class HTML property | π’ | |
vue/no-mutating-props | Disallows mutation of component props (except shallow mutation) | π’ | |
vue/no-static-inline-styles | Disallows static inline style attributes | π’ | |
vue/no-use-v-else-with-v-for | Disallows using v-else-if/v-else on the same element as v-for (works but confusing) | π’ | |
vue/no-useless-v-bind | Disallows unnecessary v-bind directives | π’ | |
vue/no-v-html | Rule is disabled in order to allow the use of v-html | π’ | |
vue/padding-line-between-blocks | Requires padding lines between blocks | π’ | |
vue/padding-lines-in-component-definition | Requires padding lines in component definition | π’ | |
vue/prefer-true-attribute-shorthand | Requires shorthand form attribute when v-bind value is true | π’ | |
vue/require-direct-export | Requires the component to be directly exported | π’ | |
vue/v-for-delimiter-style | Enforces the use of in delimiter in v-for directive | π’ | |
vue/v-slot-style | Disallows v-slot shorthand style | π’ |
Name | Description | π | π’ |
---|---|---|---|
crisp/vue-attribute-comma | Disallows trailing comma after attribute | π’ | |
crisp/vue-attribute-linebreak | Enforces linebreak before first attribute and after last attribute | π’ | |
crisp/vue-computed-order | Ensures computed properties are alphabetically ordered | π’ | |
crisp/vue-emits-order | Ensures emits properties are alphabetically ordered | π’ | |
crisp/vue-header-check | Ensures script , template and style tags start with corresponding comment block | π’ | |
crisp/vue-html-indent | Enforces consistent indentation in template (supports for Pug) | π’ | |
crisp/vue-html-quotes | Enforces HTML attributes to be enclosed with double quotes | π’ | |
crisp/vue-no-regex-data | Disallows regular expressions to be declared in Vue data object | π’ | |
crisp/vue-props-declaration-line-break | Enforces line break between type and default function in prop definition | π’ | |
crisp/vue-props-declaration-multiline | Enforces props declarations to be multiline | π’ | |
crisp/vue-props-declaration-order | Ensures props declarations are alphabetically ordered | π’ | |
crisp/vue-ref-case | Enforces ref attributes to snake case | π’ |
eslint-plugin-crisp is released under the MIT License. See the bundled LICENSE file for details.
FAQs
Custom ESLint Rules for Crisp
The npm package eslint-plugin-crisp receives a total of 7 weekly downloads. As such, eslint-plugin-crisp popularity was classified as not popular.
We found that eslint-plugin-crisp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenanceβdevelopers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.