Skip to content

Commit a488f15

Browse files
authoredJan 17, 2024
feat: add support for eslint v9 (#463)
* feat: add support for eslint v9 * Create shiny-colts-search.md * fix * format
1 parent 7042275 commit a488f15

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+424
-268
lines changed
 

‎.changeset/shiny-colts-search.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@intlify/eslint-plugin-vue-i18n": minor
3+
---
4+
5+
feat: add support for eslint v9

‎.eslintrc.cjs

+36-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,42 @@ module.exports = {
2020
rules: {
2121
'object-shorthand': 'error',
2222
'no-debugger': 'error',
23-
'vue/multi-word-component-names': 'off'
23+
'vue/multi-word-component-names': 'off',
24+
25+
'prefer-template': 'error',
26+
'no-restricted-properties': [
27+
'error',
28+
{
29+
object: 'context',
30+
property: 'getSourceCode',
31+
message: 'Use lib/utils/compat.ts'
32+
},
33+
{
34+
object: 'context',
35+
property: 'getFilename',
36+
message: 'Use lib/utils/compat.ts'
37+
},
38+
{
39+
object: 'context',
40+
property: 'getPhysicalFilename',
41+
message: 'Use lib/utils/compat.ts'
42+
},
43+
{
44+
object: 'context',
45+
property: 'getCwd',
46+
message: 'Use lib/utils/compat.ts'
47+
},
48+
{
49+
object: 'context',
50+
property: 'getScope',
51+
message: 'Use lib/utils/compat.ts'
52+
},
53+
{
54+
object: 'context',
55+
property: 'parserServices',
56+
message: 'Use lib/utils/compat.ts'
57+
}
58+
]
2459
},
2560
overrides: [
2661
{

0 commit comments

Comments
 (0)
Please sign in to comment.