eslint-plugin-vuetify
Advanced tools
Comparing version 1.0.0-beta.8 to 1.0.0
@@ -87,8 +87,8 @@ 'use strict' | ||
: { | ||
messageId: 'replacedWith', | ||
data: { | ||
a: attr.name, | ||
b: replacement | ||
messageId: 'replacedWith', | ||
data: { | ||
a: attr.name, | ||
b: replacement | ||
} | ||
} | ||
} | ||
context.report({ | ||
@@ -95,0 +95,0 @@ ...message, |
@@ -41,2 +41,28 @@ 'use strict' | ||
function isObject (obj) { | ||
return obj !== null && typeof obj === 'object' | ||
} | ||
function mergeDeep (source, target) { | ||
for (const key in target) { | ||
const sourceProperty = source[key] | ||
const targetProperty = target[key] | ||
// Only continue deep merging if | ||
// both properties are objects | ||
if ( | ||
isObject(sourceProperty) && | ||
isObject(targetProperty) | ||
) { | ||
source[key] = mergeDeep(sourceProperty, targetProperty) | ||
continue | ||
} | ||
source[key] = targetProperty | ||
} | ||
return source | ||
} | ||
module.exports = { | ||
@@ -46,3 +72,5 @@ hyphenate, | ||
isBuiltinAttribute, | ||
getAttributes | ||
getAttributes, | ||
isObject, | ||
mergeDeep | ||
} |
{ | ||
"name": "eslint-plugin-vuetify", | ||
"version": "1.0.0-beta.8", | ||
"version": "1.0.0", | ||
"description": "An eslint plugin for Vuetify", | ||
@@ -9,8 +9,2 @@ "main": "lib/index.js", | ||
"repository": "github:vuetifyjs/eslint-plugin-vuetify", | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "node scripts/lint-commit-message.js", | ||
"pre-commit": "node scripts/warn-npm-install.js && yarn run lint && yarn run test" | ||
} | ||
}, | ||
"scripts": { | ||
@@ -27,22 +21,21 @@ "test": "mocha tests --recursive --reporter dot", | ||
"dependencies": { | ||
"eslint-plugin-vue": "^6.2.2", | ||
"eslint-plugin-vue": "^7.0.0", | ||
"requireindex": "^1.2.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^7.4.0", | ||
"eslint-config-standard": "^14.1.1", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint": "^7.27.0", | ||
"eslint-config-standard": "^16.0.3", | ||
"eslint-plugin-import": "^2.23.4", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"husky": "^4.2.5", | ||
"mocha": "^8.0.1", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"husky": "^6.0.0", | ||
"mocha": "^8.4.0", | ||
"nyc": "^15.1.0", | ||
"vue": "^2.6.11", | ||
"vuetify": "^2.3.4" | ||
"vue": "^2.6.12", | ||
"vuetify": "^2.5.1" | ||
}, | ||
"peerDependencies": { | ||
"eslint": "^6.0.0 || ^7.0.0", | ||
"eslint": "^6.2.0 || ^7.0.0", | ||
"vuetify": "^2.0.0" | ||
} | ||
} |
@@ -1,4 +0,4 @@ | ||
# eslint-plugin-vuetify (WIP) | ||
# eslint-plugin-vuetify | ||
> An eslint plugin for Vuetify. | ||
> Built for https://github.com/vuetifyjs/vuetify/pull/7327, requires vuetify >=2.0.0-beta.9 | ||
> Built for https://github.com/vuetifyjs/vuetify/pull/7327, requires vuetify >=2.0.0 | ||
@@ -30,10 +30,5 @@ <br> | ||
extends: [ | ||
'plugin:vue/base' | ||
], | ||
plugins: [ | ||
'vuetify' | ||
], | ||
rules: { | ||
'vuetify/no-deprecated-classes': 'error' | ||
} | ||
'plugin:vue/base', | ||
'plugin:vuetify/base' | ||
] | ||
} | ||
@@ -47,5 +42,13 @@ ``` | ||
### Deprecations | ||
These rules will help you avoid deprecated components, props, and classes. They are included in the `plugin:vuetify/base` preset. | ||
- Prevent the use of components that have been removed from Vuetify ([`no-deprecated-components`]) | ||
- Prevent the use of props that have been removed from Vuetify ([`no-deprecated-props`]) | ||
- Prevent the use of classes that have been removed from Vuetify ([`no-deprecated-classes`]) | ||
### Grid system | ||
These rules are designed to help migrate to the new grid system in Vuetify v2 | ||
These rules are designed to help migrate to the new grid system in Vuetify v2. They are included in the `plugin:vuetify/recommended` preset. | ||
@@ -55,14 +58,8 @@ - Prevent the use of legacy grid components and props ([`no-legacy-grid`]) | ||
### Deprecations | ||
These rules will help you avoid deprecated components, props, and classes | ||
- Prevent the use of classes that have been removed from Vuetify ([`no-deprecated-classes`]) | ||
- Prevent the use of components that have been removed from Vuetify (['no-deprecated-components`]) | ||
[`no-legacy-grid`]: ./docs/rules/no-legacy-grid.md | ||
[`grid-unknown-attributes`]: ./docs/rules/grid-unknown-attributes.md | ||
[`no-deprecated-components`]: ./docs/rules/no-deprecated-components.md | ||
[`no-deprecated-props`]: ./docs/rules/no-deprecated-props.md | ||
[`no-deprecated-classes`]: ./docs/rules/no-deprecated-classes.md | ||
[`no-deprecated-components`]: ./docs/rules/no-deprecated-components.md | ||
@@ -75,4 +72,4 @@ | ||
<li> | ||
<a href="https://github.com/users/johnleider/sponsorship">Becoming a sponsor on Github</a> | ||
<strong><small>(supports John)</small></strong> | ||
<a href="https://github.com/sponsors/kaelwd">Becoming a sponsor on Github</a> | ||
<strong><small>(supports Kael)</small></strong> | ||
</li> | ||
@@ -79,0 +76,0 @@ <li> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
29968
10
16
737
0
91
+ Addedeslint-plugin-vue@7.20.0(transitive)
- Removedansi-escapes@4.3.2(transitive)
- Removedansi-regex@4.1.1(transitive)
- Removedastral-regex@1.0.0(transitive)
- Removedchardet@0.7.0(transitive)
- Removedcli-cursor@3.1.0(transitive)
- Removedcli-width@3.0.0(transitive)
- Removedcross-spawn@6.0.5(transitive)
- Removedemoji-regex@7.0.3(transitive)
- Removedeslint@6.8.0(transitive)
- Removedeslint-plugin-vue@6.2.2(transitive)
- Removedeslint-utils@1.4.3(transitive)
- Removedexternal-editor@3.1.0(transitive)
- Removedfigures@3.2.0(transitive)
- Removedfile-entry-cache@5.0.1(transitive)
- Removedflat-cache@2.0.1(transitive)
- Removedflatted@2.0.2(transitive)
- Removedglobals@12.4.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinquirer@7.3.3(transitive)
- Removedis-fullwidth-code-point@2.0.0(transitive)
- Removedlevn@0.3.0(transitive)
- Removedmimic-fn@2.1.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedmute-stream@0.0.8(transitive)
- Removednice-try@1.0.5(transitive)
- Removedonetime@5.1.2(transitive)
- Removedoptionator@0.8.3(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedpath-key@2.0.1(transitive)
- Removedprelude-ls@1.1.2(transitive)
- Removedregexpp@2.0.1(transitive)
- Removedrestore-cursor@3.1.0(transitive)
- Removedrimraf@2.6.3(transitive)
- Removedrun-async@2.4.1(transitive)
- Removedrxjs@6.6.7(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsemver@5.7.2(transitive)
- Removedshebang-command@1.2.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedslice-ansi@2.1.0(transitive)
- Removedstring-width@3.1.0(transitive)
- Removedstrip-ansi@5.2.0(transitive)
- Removedtable@5.4.6(transitive)
- Removedthrough@2.3.8(transitive)
- Removedtmp@0.0.33(transitive)
- Removedtslib@1.14.1(transitive)
- Removedtype-check@0.3.2(transitive)
- Removedtype-fest@0.21.30.8.1(transitive)
- Removedwhich@1.3.1(transitive)
- Removedwrite@1.0.3(transitive)
Updatedeslint-plugin-vue@^7.0.0