Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update eslint-plugin dependencies #447

Merged
merged 11 commits into from
Apr 29, 2022
2,913 changes: 1,491 additions & 1,422 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"colors": "1.4.0",
"conventional-changelog-conventionalcommits": "~4.6.0",
"cross-env": "~7.0.3",
"eslint": "~7.18.0",
"eslint": "~8.14.0",
"husky": "~7.0.2",
"lerna": "~4.0.0",
"lint-staged": "~11.1.2",
Expand Down
4 changes: 3 additions & 1 deletion packages/eslint-plugin-x/lib/configs/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ module.exports = {
extends: ['plugin:jest/recommended', 'plugin:jest/style'],
rules: {
'jest/expect-expect': ['error', { assertFunctionNames: ['expect*'] }],
'jest/lowercase-name': ['error', { ignore: ['test'] }],
'jest/prefer-to-be': 'warn',
'jest/prefer-lowercase-title': ['error', { ignore: ['test'] }],
'jest/no-alias-methods': 'error',
'jest/no-conditional-expect': 'warn',
'jest/no-commented-out-tests': 'error',
'jest/no-disabled-tests': 'error',
'jest/no-duplicate-hooks': 'error',
Expand Down
11 changes: 7 additions & 4 deletions packages/eslint-plugin-x/lib/configs/jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,23 @@ module.exports = {
rules: {
'jsdoc/check-alignment': 'error',
'jsdoc/check-indentation': 'error',
'jsdoc/check-param-names': 'error',
'jsdoc/check-param-names': 'warn',
'jsdoc/check-tag-names': [
'error',
{
definedTags: ['internal', 'remarks', 'typeParam', 'packageDocumentation']
}
],
'jsdoc/empty-tags': 'warn',
'jsdoc/implements-on-classes': 'off',
'jsdoc/multiline-blocks': 'warn',
'jsdoc/newline-after-description': 'error',
'jsdoc/no-multi-asterisks': 'warn',
'jsdoc/require-description': 'error',
'jsdoc/require-description-complete-sentence': 'error',
'jsdoc/require-description-complete-sentence': 'warn',
'jsdoc/require-hyphen-before-param-description': 'error',
'jsdoc/require-param': 'error',
'jsdoc/require-param-description': 'error',
'jsdoc/require-param': 'warn',
'jsdoc/require-param-description': 'warn',
'jsdoc/require-param-name': 'error',
'jsdoc/require-param-type': 'off',
'jsdoc/require-returns': 'error',
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin-x/lib/configs/ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const syntaxRules = {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-expressions': ['error'],
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }],
'@typescript-eslint/no-unused-vars-experimental': 'error',
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
'@typescript-eslint/prefer-optional-chain': 'error'
};
Expand All @@ -31,7 +30,8 @@ const typeRules = {
'@typescript-eslint/no-unsafe-member-access': 'off', // TODO - Consider to enable
'@typescript-eslint/no-unsafe-return': 'off', // TODO - Consider to enable
'@typescript-eslint/prefer-nullish-coalescing': 'error',
'@typescript-eslint/restrict-template-expressions': 'error'
'@typescript-eslint/restrict-template-expressions': 'error',
'@typescript-eslint/no-unsafe-argument': 'warn'
};

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-x/lib/configs/tsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
tsdoc: {
plugins: ['tsdoc'],
rules: {
'tsdoc/syntax': 'error'
'tsdoc/syntax': 'warn'
}
}
};
6 changes: 5 additions & 1 deletion packages/eslint-plugin-x/lib/configs/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ module.exports = {
}
],
'vue/eqeqeq': 'error',
'vue/multi-word-component-names': 'warn',
'vue/no-template-shadow': 'off',
'vue/no-v-html': 'off',
'vue/v-on-function-call': 'error'
'vue/component-tags-order': 'warn',
'vue/v-on-function-call': 'error',
'vue/v-slot-style': 'warn',
'vue/valid-v-slot': 'warn'
}
}
};
Loading