@vue/eslint-config-typescript
Advanced tools
Comparing version 9.0.1 to 9.1.0
{ | ||
"name": "@vue/eslint-config-typescript", | ||
"version": "9.0.1", | ||
"version": "9.1.0", | ||
"description": "eslint-config-typescript for vue-cli", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -51,4 +51,3 @@ # @vue/eslint-config-typescript | ||
Some of its rules, however, might conflict with `prettier`. | ||
So when used alongside other sharable configs, this config should be placed after all other configs except for the `prettier` ones in the `extends` array. | ||
And make sure to also include the `@typescript-eslint` sub ruleset of the `prettier` config. | ||
So when used alongside other sharable configs, this config should be placed after all other configs except for the one from `eslint-plugin-prettier` in the `extends` array. | ||
@@ -64,6 +63,5 @@ An example `.eslintrc.js`: | ||
'@vue/prettier', | ||
'@vue/prettier/@typescript-eslint' | ||
'plugin:prettier/recommended' | ||
] | ||
} | ||
``` |
@@ -23,4 +23,11 @@ module.exports = { | ||
} | ||
}, | ||
{ | ||
files: ['*.js', '*.cjs'], | ||
rules: { | ||
// in plain CommonJS modules, you can't use `import foo = require('foo')` to pass this rule, so it has to be disabled | ||
'@typescript-eslint/no-var-requires': 'off' | ||
} | ||
} | ||
] | ||
} |
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
6158
54
66