Skip to content

Commit 5a1e516

Browse files
committed
🐥 release: commit first
0 parents  commit 5a1e516

16 files changed

+3572
-0
lines changed

Diff for: .editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

Diff for: .eslintignore

Whitespace-only changes.

Diff for: .eslintrc.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
'use strict'
2+
3+
module.exports = {
4+
root: true,
5+
env: {
6+
node: true,
7+
mocha: true
8+
},
9+
extends: [
10+
'plugin:vue-libs/recommended'
11+
],
12+
plugins: [
13+
],
14+
parserOptions: {
15+
ecmaVersion: 6
16+
},
17+
rules: {
18+
}
19+
}

Diff for: .github/.gitkeep

Whitespace-only changes.

Diff for: .gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
coverage
3+
.DS_Store
4+
*.log
5+
*.swp
6+
*~

Diff for: CHANGELOG.md

Whitespace-only changes.

Diff for: LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 kazuya kawaguchi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Diff for: README.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# eslint-plugin-vue-i18n
2+
3+
ESLint plugin for vue-i18n
4+
5+
## Installation
6+
7+
You'll first need to install [ESLint](http://eslint.org):
8+
9+
```
10+
$ npm i eslint --save-dev
11+
```
12+
13+
Next, install `eslint-plugin-vue-i18n`:
14+
15+
```
16+
$ npm install eslint-plugin-vue-i18n --save-dev
17+
```
18+
19+
**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-vue-i18n` globally.
20+
21+
## Usage
22+
23+
Add `vue-i18n` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
24+
25+
```json
26+
{
27+
"plugins": [
28+
"vue-i18n"
29+
]
30+
}
31+
```
32+
33+
34+
Then configure the rules you want to use under the rules section.
35+
36+
```json
37+
{
38+
"rules": {
39+
"vue-i18n/rule-name": 2
40+
}
41+
}
42+
```
43+
44+
## Supported Rules
45+
46+
* Fill in provided rules here

Diff for: docs/README.md

Whitespace-only changes.

Diff for: docs/rules/.gitkeep

Whitespace-only changes.

Diff for: lib/index.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* @fileoverview ESLint plugin for vue-i18n
3+
* @author kazuya kawaguchi
4+
*/
5+
'use strict'
6+
7+
// ------------------------------------------------------------------------------
8+
// Requirements
9+
// ------------------------------------------------------------------------------
10+
11+
// ------------------------------------------------------------------------------
12+
// Plugin Definition
13+
// ------------------------------------------------------------------------------
14+
15+
// import all rules in lib/rules
16+
module.exports.rules = {
17+
// add your processors here
18+
}
19+
20+
// import processors
21+
module.exports.processors = {
22+
// add your processors here
23+
}

Diff for: lib/processors/.gitkeep

Whitespace-only changes.

Diff for: lib/rules/no-missing.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict'
2+
3+
function create (context) {
4+
return {
5+
}
6+
}
7+
8+
module.exports = {
9+
meta: {
10+
},
11+
create
12+
}

Diff for: package.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "eslint-plugin-vue-i18n",
3+
"description": "ESLint plugin for Vue I18n",
4+
"version": "0.0.1",
5+
"author": {
6+
"name": "kazuya kawaguchi",
7+
"email": "[email protected]"
8+
},
9+
"bugs": {
10+
"url": "https://github.com/kazupon/eslint-plugin-vue-i18n/issues"
11+
},
12+
"devDependencies": {
13+
"conventional-changelog-cli": "^2.0.12",
14+
"conventional-github-releaser": "^3.1.2",
15+
"eslint": "^5.15.0",
16+
"eslint-plugin-vue-libs": "^3.0.0",
17+
"git-commit-message-convention": "git://github.com/kazupon/git-commit-message-convention.git",
18+
"mocha": "^6.0.2"
19+
},
20+
"engines": {
21+
"node": ">=0.10.0"
22+
},
23+
"homepage": "https://github.com/kazupon/eslint-plugin-vue-i18n#readme",
24+
"keywords": [
25+
"eslint",
26+
"eslint-plugin",
27+
"eslintplugin",
28+
"i18n",
29+
"internationalization",
30+
"vue",
31+
"vue-i18n",
32+
"vue.js",
33+
"vuejs"
34+
],
35+
"license": "MIT",
36+
"main": "lib/index.js",
37+
"repository": {
38+
"type": "git",
39+
"url": "git+https://github.com/kazupon/eslint-plugin-vue-i18n.git"
40+
},
41+
"scripts": {
42+
"changelog": "conventional-changelog -i CHANGELOG.md -s -n ./node_modules/git-commit-message-convention/convention.js",
43+
"lint": "eslint . --ignore-pattern \"!.*\"",
44+
"release": "conventional-github-releaser -n ./node_modules/git-commit-message-convention/convention.js",
45+
"test": "mocha ./tests/**/*.js"
46+
}
47+
}

Diff for: tests/lib/rules/no-missing.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict'
2+
3+
const RuleTester = require('eslint').RuleTester
4+
5+
const tester = new RuleTester()
6+
7+
tester.run('no-missing', require('../../lib/rules/no-missing'), {
8+
valid: [
9+
],
10+
invalid: [
11+
]
12+
})

0 commit comments

Comments
 (0)