16 Commits

Author SHA1 Message Date
5c7fa64f19 feat(project): Bump version
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-16 14:04:43 +04:00
e87fbc4bb9 feat(eslint): no-param-reassign
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-16 14:04:17 +04:00
bbf940aafe feat(vue): space-infix-ops
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 21:21:20 +04:00
7adf510a94 feat(eslint): space-infix-ops
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 21:17:28 +04:00
a2f1c52972 fix(typescript): indent
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 21:07:18 +04:00
98f096b481 fix(eslint): indent
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 21:06:43 +04:00
937a2257f8 feat(eslint): no-whitespace-before-property
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 21:02:23 +04:00
0419c2558d feat(eslint): no-trailing-spaces
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 21:00:55 +04:00
b00af86b1b feat(project): Bump version
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 20:49:22 +04:00
72b09d4176 fix(typescript): type-annotation-spacing
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 20:49:02 +04:00
e7da809741 feat(project): Bump version
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 20:43:09 +04:00
39cc9c02d9 fix(typescript): Rule "type-annotation-spacing"
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 20:42:34 +04:00
7d84ff8e8e fix(gitlab): Config npmrc
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 17:02:50 +04:00
385c4f57ed fix(gitlab): Correcting quotes
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 16:56:36 +04:00
577faf9774 feat(project): Bump version
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 16:53:52 +04:00
656bc470f7 feat(gitlab): Initial CI config
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-02-14 16:51:29 +04:00
8 changed files with 70 additions and 10 deletions

View File

@ -14,3 +14,7 @@ trim_trailing_whitespace = true
[*.json] [*.json]
indent_size = 2 indent_size = 2
indent_style = space indent_style = space
[*.yml]
indent_size = 2
indent_style = space

19
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,19 @@
image: "node:latest"
cache:
paths:
- node_modules/
job-publish:
only:
- tags
before_script:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
script:
- yarn install
- yarn run build
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
- npm publish

View File

@ -204,5 +204,6 @@ src/
.editorconfig .editorconfig
.eslintrc.json .eslintrc.json
.gitignore .gitignore
.gitlab-ci.yml
rollup.config.js rollup.config.js
tsconfig.json tsconfig.json

View File

@ -160,7 +160,7 @@
- [ ] "no-obj-calls" - [ ] "no-obj-calls"
- [ ] "no-octal" - [ ] "no-octal"
- [X] "no-octal-escape" - [X] "no-octal-escape"
- [ ] "no-param-reassign" - [X] "no-param-reassign"
- [X] "no-path-concat" - [X] "no-path-concat"
- [ ] "no-plusplus" - [ ] "no-plusplus"
- [ ] "no-process-env" - [ ] "no-process-env"
@ -192,7 +192,7 @@
- [X] "no-ternary" - [X] "no-ternary"
- [ ] "no-this-before-super" - [ ] "no-this-before-super"
- [ ] "no-throw-literal" - [ ] "no-throw-literal"
- [ ] "no-trailing-spaces" - [X] "no-trailing-spaces"
- [ ] "no-undef" - [ ] "no-undef"
- [X] "no-undef-init" - [X] "no-undef-init"
- [X] "no-undefined" - [X] "no-undefined"
@ -219,7 +219,7 @@
- [X] "no-var" - [X] "no-var"
- [ ] "no-void" - [ ] "no-void"
- [ ] "no-warning-comments" - [ ] "no-warning-comments"
- [ ] "no-whitespace-before-property" - [X] "no-whitespace-before-property"
- [X] "no-with" - [X] "no-with"
- [ ] "nonblock-statement-body-position" - [ ] "nonblock-statement-body-position"
- [X] "object-curly-newline" - [X] "object-curly-newline"
@ -263,7 +263,7 @@
- [X] "space-before-blocks" - [X] "space-before-blocks"
- [X] "space-before-function-paren" - [X] "space-before-function-paren"
- [ ] "space-in-parens" - [ ] "space-in-parens"
- [ ] "space-infix-ops" - [X] "space-infix-ops"
- [ ] "space-unary-ops" - [ ] "space-unary-ops"
- [ ] "spaced-comment" - [ ] "spaced-comment"
- [X] "strict" - [X] "strict"
@ -593,7 +593,7 @@
- [ ] "return-in-computed-property" - [ ] "return-in-computed-property"
- [X] "script-indent" - [X] "script-indent"
- [ ] "singleline-html-element-content-newline" - [ ] "singleline-html-element-content-newline"
- [ ] "space-infix-ops" - [X] "space-infix-ops"
- [ ] "space-unary-ops" - [ ] "space-unary-ops"
- [ ] "static-class-names-order" - [ ] "static-class-names-order"
- [ ] "this-in-template" - [ ] "this-in-template"

View File

@ -1,6 +1,6 @@
{ {
"name": "@valentineus/eslint-config", "name": "@valentineus/eslint-config",
"version": "0.0.3", "version": "0.0.7",
"description": "Personal ESLint configuration", "description": "Personal ESLint configuration",
"main": "index.js", "main": "index.js",
"repository": "git@code.valentineus.link:eslint-config.git", "repository": "git@code.valentineus.link:eslint-config.git",

View File

@ -111,7 +111,7 @@
"MemberExpression": 1, "MemberExpression": 1,
"ObjectExpression": 1, "ObjectExpression": 1,
"SwitchCase": 1, "SwitchCase": 1,
"VariableDeclarator": "first", "VariableDeclarator": 1,
"flatTernaryExpressions": true, "flatTernaryExpressions": true,
"ignoreComments": false, "ignoreComments": false,
"ignoredNodes": [], "ignoredNodes": [],
@ -181,6 +181,12 @@
"tabWidth": 4 "tabWidth": 4
} }
], ],
"no-param-reassign": [
"warn",
{
"props": true
}
],
"max-lines": [ "max-lines": [
"off" "off"
], ],
@ -375,6 +381,13 @@
"no-ternary": [ "no-ternary": [
"off" "off"
], ],
"no-trailing-spaces": [
"error",
{
"ignoreComments": false,
"skipBlankLines": false
}
],
"no-undef-init": [ "no-undef-init": [
"error" "error"
], ],
@ -442,6 +455,9 @@
"no-var": [ "no-var": [
"error" "error"
], ],
"no-whitespace-before-property": [
"error"
],
"no-with": [ "no-with": [
"error" "error"
], ],
@ -594,6 +610,12 @@
"named": "never" "named": "never"
} }
], ],
"space-infix-ops": [
"error",
{
"int32Hint": false
}
],
"strict": [ "strict": [
"error", "error",
"safe" "safe"

View File

@ -22,7 +22,7 @@
"MemberExpression": 1, "MemberExpression": 1,
"ObjectExpression": 1, "ObjectExpression": 1,
"SwitchCase": 1, "SwitchCase": 1,
"VariableDeclarator": "first", "VariableDeclarator": 1,
"flatTernaryExpressions": true, "flatTernaryExpressions": true,
"ignoreComments": false, "ignoreComments": false,
"ignoredNodes": [], "ignoredNodes": [],
@ -142,8 +142,16 @@
"@typescript-eslint/type-annotation-spacing": [ "@typescript-eslint/type-annotation-spacing": [
"error", "error",
{ {
"after": true, "overrides": {
"before": false "arrow": {
"after": true,
"before": true
},
"colon": {
"after": true,
"before": false
}
}
} }
], ],
"@typescript-eslint/typedef": [ "@typescript-eslint/typedef": [

View File

@ -75,5 +75,11 @@
"baseIndent": 0, "baseIndent": 0,
"switchCase": 1 "switchCase": 1
} }
],
"vue/space-infix-ops": [
"error",
{
"int32Hint": false
}
] ]
} }