-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: update scripts * refactor: remove unnecesarry codes * refactor: update scripts * chore: change node register to jiti from ts-node * feat: flat config implementation * fix: update separate * fix: integration tests * fix: format * chore: bump node * chore: bump eslint * fix: forgot commit * fix: forgot lock file * fix: add ignore lint for tests * fix: test * docs: updates * Create pink-hairs-fail.md --------- Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
- Loading branch information
Showing
50 changed files
with
814 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@intlify/eslint-plugin-vue-i18n": minor | ||
--- | ||
|
||
feat: support flat config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** DON'T EDIT THIS FILE; was created by scripts. */ | ||
export = [ | ||
{ | ||
name: '@intlify/vue-i18n:base:setup', | ||
plugins: { | ||
get '@intlify/vue-i18n'() { | ||
return require('../../index') | ||
} | ||
} | ||
}, | ||
{ | ||
name: '@intlify/vue-i18n:base:setup:json', | ||
files: ['*.json', '**/*.json', '*.json5', '**/*.json5'], | ||
languageOptions: { | ||
parser: require('vue-eslint-parser'), | ||
parserOptions: { | ||
parser: require('jsonc-eslint-parser') | ||
} | ||
} | ||
}, | ||
{ | ||
name: '@intlify/vue-i18n:base:setup:yaml', | ||
files: ['*.yaml', '**/*.yaml', '*.yml', '**/*.yml'], | ||
languageOptions: { | ||
parser: require('vue-eslint-parser'), | ||
parserOptions: { | ||
parser: require('yaml-eslint-parser') | ||
} | ||
}, | ||
rules: { | ||
'no-irregular-whitespace': 'off', | ||
'spaced-comment': 'off' | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** DON'T EDIT THIS FILE; was created by scripts. */ | ||
const globals = require('globals') | ||
const config = require('./base') | ||
export = [ | ||
...config, | ||
{ | ||
name: '@intlify/vue-i18n:recommended:setup', | ||
languageOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
globals: globals.browser, | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
name: '@intlify/vue-i18n:recommended:rules', | ||
rules: { | ||
'@intlify/vue-i18n/no-html-messages': 'warn', | ||
'@intlify/vue-i18n/no-missing-keys': 'warn', | ||
'@intlify/vue-i18n/no-raw-text': 'warn', | ||
'@intlify/vue-i18n/no-v-html': 'warn' | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,59 @@ | ||
/** | ||
* @fileoverview ESLint plugin for vue-i18n | ||
* @author kazuya kawaguchi (a.k.a. kazupon) | ||
*/ | ||
import configs from './configs' | ||
import rules from './rules' | ||
/** DON'T EDIT THIS FILE; was created by scripts. */ | ||
// configs | ||
import base from './configs/base' | ||
import recommended from './configs/recommended' | ||
import flatBase from './configs/flat/base' | ||
import flatRecommended from './configs/flat/recommended' | ||
|
||
// rules | ||
import keyFormatStyle from './rules/key-format-style' | ||
import noDeprecatedI18nComponent from './rules/no-deprecated-i18n-component' | ||
import noDeprecatedI18nPlaceAttr from './rules/no-deprecated-i18n-place-attr' | ||
import noDeprecatedI18nPlacesProp from './rules/no-deprecated-i18n-places-prop' | ||
import noDuplicateKeysInLocale from './rules/no-duplicate-keys-in-locale' | ||
import noDynamicKeys from './rules/no-dynamic-keys' | ||
import noHtmlMessages from './rules/no-html-messages' | ||
import noI18nTPathProp from './rules/no-i18n-t-path-prop' | ||
import noMissingKeysInOtherLocales from './rules/no-missing-keys-in-other-locales' | ||
import noMissingKeys from './rules/no-missing-keys' | ||
import noRawText from './rules/no-raw-text' | ||
import noUnknownLocale from './rules/no-unknown-locale' | ||
import noUnusedKeys from './rules/no-unused-keys' | ||
import noVHtml from './rules/no-v-html' | ||
import preferLinkedKeyWithParen from './rules/prefer-linked-key-with-paren' | ||
import preferSfcLangAttr from './rules/prefer-sfc-lang-attr' | ||
import sfcLocaleAttr from './rules/sfc-locale-attr' | ||
import validMessageSyntax from './rules/valid-message-syntax' | ||
|
||
// export plugin | ||
export = { | ||
configs, | ||
rules | ||
configs: { | ||
// eslintrc configs | ||
base, | ||
recommended, | ||
|
||
// flat configs | ||
'flat/base': flatBase, | ||
'flat/recommended': flatRecommended | ||
}, | ||
rules: { | ||
'key-format-style': keyFormatStyle, | ||
'no-deprecated-i18n-component': noDeprecatedI18nComponent, | ||
'no-deprecated-i18n-place-attr': noDeprecatedI18nPlaceAttr, | ||
'no-deprecated-i18n-places-prop': noDeprecatedI18nPlacesProp, | ||
'no-duplicate-keys-in-locale': noDuplicateKeysInLocale, | ||
'no-dynamic-keys': noDynamicKeys, | ||
'no-html-messages': noHtmlMessages, | ||
'no-i18n-t-path-prop': noI18nTPathProp, | ||
'no-missing-keys-in-other-locales': noMissingKeysInOtherLocales, | ||
'no-missing-keys': noMissingKeys, | ||
'no-raw-text': noRawText, | ||
'no-unknown-locale': noUnknownLocale, | ||
'no-unused-keys': noUnusedKeys, | ||
'no-v-html': noVHtml, | ||
'prefer-linked-key-with-paren': preferLinkedKeyWithParen, | ||
'prefer-sfc-lang-attr': preferSfcLangAttr, | ||
'sfc-locale-attr': sfcLocaleAttr, | ||
'valid-message-syntax': validMessageSyntax | ||
} | ||
} |
Oops, something went wrong.