Compare commits

..

No commits in common. "master" and "v0.0.13" have entirely different histories.

11 changed files with 48 additions and 109 deletions

View File

@ -1,17 +0,0 @@
name: Workflow
on: [push]
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@master
with:
REMOTE: 'https://git.popov.link/eslint-config.git'
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}

View File

@ -203,7 +203,7 @@ src/
# Configuration file # Configuration file
.editorconfig .editorconfig
.eslintrc.json .eslintrc.json
.github/
.gitignore .gitignore
.gitlab-ci.yml
rollup.config.js rollup.config.js
tsconfig.json tsconfig.json

View File

@ -1,19 +1,4 @@
<p align="center"> # Personal ESLint configuration
<img height="60px" width="60px" src="https://eslint.org/assets/img/favicon.512x512.png" />
<h1 align="center">Personal ESLint configuration</h1>
</p>
<p align="center">
<a href="https://www.npmjs.com/package/@valentineus/eslint-config">
<img src="https://flat.badgen.net/npm/v/@valentineus/eslint-config" />
</a>
<a href="https://www.npmjs.com/package/@valentineus/eslint-config">
<img src="https://flat.badgen.net/packagephobia/install/@valentineus/eslint-config" />
</a>
<a href="https://github.com/valentineus/eslint-config">
<img src="https://flat.badgen.net/github/last-commit/valentineus/eslint-config" />
</a>
</p>
## Configurations ## Configurations

View File

@ -568,7 +568,7 @@
- [ ] "no-duplicate-attributes" - [ ] "no-duplicate-attributes"
- [ ] "no-empty-pattern" - [ ] "no-empty-pattern"
- [ ] "no-irregular-whitespace" - [ ] "no-irregular-whitespace"
- [X] "no-multi-spaces" - [ ] "no-multi-spaces"
- [ ] "no-parsing-error" - [ ] "no-parsing-error"
- [ ] "no-reserved-component-names" - [ ] "no-reserved-component-names"
- [ ] "no-reserved-keys" - [ ] "no-reserved-keys"

View File

@ -1,6 +1,6 @@
{ {
"name": "@valentineus/eslint-config", "name": "@valentineus/eslint-config",
"version": "0.0.15", "version": "0.0.13",
"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",
@ -13,14 +13,14 @@
"devDependencies": { "devDependencies": {
"@rollup/plugin-json": "^4.0.2", "@rollup/plugin-json": "^4.0.2",
"@rollup/plugin-typescript": "^3.0.0", "@rollup/plugin-typescript": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^2.26.0", "@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.26.0", "@typescript-eslint/parser": "^2.25.0",
"eslint": "^6.8.0", "eslint": "^6.8.0",
"eslint-plugin-eslint-comments": "^3.1.2", "eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.20.2", "eslint-plugin-import": "^2.20.1",
"eslint-plugin-security": "^1.4.0", "eslint-plugin-security": "^1.4.0",
"eslint-plugin-sonarjs": "^0.5.0", "eslint-plugin-sonarjs": "^0.5.0",
"eslint-plugin-unicorn": "^18.0.1", "eslint-plugin-unicorn": "^18.0.0",
"eslint-plugin-vue": "^6.2.2", "eslint-plugin-vue": "^6.2.2",
"rollup": "^1.31.1", "rollup": "^1.31.1",
"rollup-plugin-terser": "^5.2.0", "rollup-plugin-terser": "^5.2.0",
@ -28,14 +28,14 @@
"typescript": "^3.7.5" "typescript": "^3.7.5"
}, },
"peerDependencies": { "peerDependencies": {
"@typescript-eslint/eslint-plugin": "^2.26.0", "@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.26.0", "@typescript-eslint/parser": "^2.25.0",
"eslint": "^6.8.0", "eslint": "^6.8.0",
"eslint-plugin-eslint-comments": "^3.1.2", "eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.20.2", "eslint-plugin-import": "^2.20.1",
"eslint-plugin-security": "^1.4.0", "eslint-plugin-security": "^1.4.0",
"eslint-plugin-sonarjs": "^0.5.0", "eslint-plugin-sonarjs": "^0.5.0",
"eslint-plugin-unicorn": "^18.0.1", "eslint-plugin-unicorn": "^18.0.0",
"eslint-plugin-vue": "^6.2.2" "eslint-plugin-vue": "^6.2.2"
}, },
"dependencies": {} "dependencies": {}

View File

@ -222,7 +222,7 @@
"error", "error",
{ {
"after": true, "after": true,
"before": false, "before": true,
"overrides": { "overrides": {
"arrow": { "arrow": {
"after": true, "after": true,
@ -234,19 +234,19 @@
}, },
"parameter": { "parameter": {
"after": true, "after": true,
"before": false "before": true
}, },
"property": { "property": {
"after": true, "after": true,
"before": false "before": true
}, },
"returnType": { "returnType": {
"after": true, "after": true,
"before": false "before": true
}, },
"variable": { "variable": {
"after": true, "after": true,
"before": false "before": true
} }
} }
} }

View File

@ -76,12 +76,6 @@
"singleline": 8 "singleline": 8
} }
], ],
"vue/no-multi-spaces": [
"error",
{
"ignoreProperties": false
}
],
"vue/no-unused-vars": [ "vue/no-unused-vars": [
"error" "error"
], ],

View File

@ -1,5 +0,0 @@
{
"sort-keys": [
"off"
]
}

View File

@ -1,5 +1,4 @@
import rDefault from "./rules/vue/default.json"; import rDefault from "./rules/vue/default.json";
import rOverrides from "./rules/vue/overrides.json";
module.exports = { module.exports = {
"extends": [ "extends": [
@ -9,14 +8,6 @@ module.exports = {
"plugin:vue/recommended", "plugin:vue/recommended",
"plugin:vue/strongly-recommended", "plugin:vue/strongly-recommended",
], ],
"overrides": [
{
files: [
"*.vue",
],
rules: { ...rOverrides },
},
],
"parser": "vue-eslint-parser", "parser": "vue-eslint-parser",
"parserOptions": { "parserOptions": {
extraFileExtensions: [ extraFileExtensions: [

View File

@ -1,5 +1,4 @@
import rDefault from "./rules/vue/default.json"; import rDefault from "./rules/vue/default.json";
import rOverrides from "./rules/vue/overrides.json";
module.exports = { module.exports = {
"extends": [ "extends": [
@ -9,14 +8,6 @@ module.exports = {
"plugin:vue/recommended", "plugin:vue/recommended",
"plugin:vue/strongly-recommended", "plugin:vue/strongly-recommended",
], ],
"overrides": [
{
files: [
"*.vue",
],
rules: { ...rOverrides },
},
],
"parser": "vue-eslint-parser", "parser": "vue-eslint-parser",
"parserOptions": { "parserOptions": {
createDefaultProgram: true, createDefaultProgram: true,

View File

@ -65,40 +65,40 @@
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA== integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==
"@typescript-eslint/eslint-plugin@^2.26.0": "@typescript-eslint/eslint-plugin@^2.25.0":
version "2.26.0" version "2.25.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.26.0.tgz#04c96560c8981421e5a9caad8394192363cc423f" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.25.0.tgz#0b60917332f20dcff54d0eb9be2a9e9f4c9fbd02"
integrity sha512-4yUnLv40bzfzsXcTAtZyTjbiGUXMrcIJcIMioI22tSOyAxpdXiZ4r7YQUU8Jj6XXrLz9d5aMHPQf5JFR7h27Nw== integrity sha512-W2YyMtjmlrOjtXc+FtTelVs9OhuR6OlYc4XKIslJ8PUJOqgYYAPRJhAqkYRQo3G4sjvG8jSodsNycEn4W2gHUw==
dependencies: dependencies:
"@typescript-eslint/experimental-utils" "2.26.0" "@typescript-eslint/experimental-utils" "2.25.0"
functional-red-black-tree "^1.0.1" functional-red-black-tree "^1.0.1"
regexpp "^3.0.0" regexpp "^3.0.0"
tsutils "^3.17.1" tsutils "^3.17.1"
"@typescript-eslint/experimental-utils@2.26.0": "@typescript-eslint/experimental-utils@2.25.0":
version "2.26.0" version "2.25.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.26.0.tgz#063390c404d9980767d76274df386c0aa675d91d" resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.25.0.tgz#13691c4fe368bd377b1e5b1e4ad660b220bf7714"
integrity sha512-RELVoH5EYd+JlGprEyojUv9HeKcZqF7nZUGSblyAw1FwOGNnmQIU8kxJ69fttQvEwCsX5D6ECJT8GTozxrDKVQ== integrity sha512-0IZ4ZR5QkFYbaJk+8eJ2kYeA+1tzOE1sBjbwwtSV85oNWYUBep+EyhlZ7DLUCyhMUGuJpcCCFL0fDtYAP1zMZw==
dependencies: dependencies:
"@types/json-schema" "^7.0.3" "@types/json-schema" "^7.0.3"
"@typescript-eslint/typescript-estree" "2.26.0" "@typescript-eslint/typescript-estree" "2.25.0"
eslint-scope "^5.0.0" eslint-scope "^5.0.0"
eslint-utils "^2.0.0" eslint-utils "^2.0.0"
"@typescript-eslint/parser@^2.26.0": "@typescript-eslint/parser@^2.25.0":
version "2.26.0" version "2.25.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.26.0.tgz#385463615818b33acb72a25b39c03579df93d76f" resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.25.0.tgz#abfb3d999084824d9a756d9b9c0f36fba03adb76"
integrity sha512-+Xj5fucDtdKEVGSh9353wcnseMRkPpEAOY96EEenN7kJVrLqy/EVwtIh3mxcUz8lsFXW1mT5nN5vvEam/a5HiQ== integrity sha512-mccBLaBSpNVgp191CP5W+8U1crTyXsRziWliCqzj02kpxdjKMvFHGJbK33NroquH3zB/gZ8H511HEsJBa2fNEg==
dependencies: dependencies:
"@types/eslint-visitor-keys" "^1.0.0" "@types/eslint-visitor-keys" "^1.0.0"
"@typescript-eslint/experimental-utils" "2.26.0" "@typescript-eslint/experimental-utils" "2.25.0"
"@typescript-eslint/typescript-estree" "2.26.0" "@typescript-eslint/typescript-estree" "2.25.0"
eslint-visitor-keys "^1.1.0" eslint-visitor-keys "^1.1.0"
"@typescript-eslint/typescript-estree@2.26.0": "@typescript-eslint/typescript-estree@2.25.0":
version "2.26.0" version "2.25.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.26.0.tgz#d8132cf1ee8a72234f996519a47d8a9118b57d56" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.25.0.tgz#b790497556734b7476fa7dd3fa539955a5c79e2c"
integrity sha512-3x4SyZCLB4zsKsjuhxDLeVJN6W29VwBnYpCsZ7vIdPel9ZqLfIZJgJXO47MNUkurGpQuIBALdPQKtsSnWpE1Yg== integrity sha512-VUksmx5lDxSi6GfmwSK7SSoIKSw9anukWWNitQPqt58LuYrKalzsgeuignbqnB+rK/xxGlSsCy8lYnwFfB6YJg==
dependencies: dependencies:
debug "^4.1.1" debug "^4.1.1"
eslint-visitor-keys "^1.1.0" eslint-visitor-keys "^1.1.0"
@ -401,10 +401,10 @@ eslint-plugin-eslint-comments@^3.1.2:
escape-string-regexp "^1.0.5" escape-string-regexp "^1.0.5"
ignore "^5.0.5" ignore "^5.0.5"
eslint-plugin-import@^2.20.2: eslint-plugin-import@^2.20.1:
version "2.20.2" version "2.20.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.20.2.tgz#91fc3807ce08be4837141272c8b99073906e588d" resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.20.1.tgz#802423196dcb11d9ce8435a5fc02a6d3b46939b3"
integrity sha512-FObidqpXrR8OnCh4iNsxy+WACztJLXAHBO5hK79T1Hc77PgQZkyDGA5Ag9xAvRpglvLNxhH/zSmZ70/pZ31dHg== integrity sha512-qQHgFOTjguR+LnYRoToeZWT62XM55MBVXObHM6SKFd1VzDcX/vqT1kAz8ssqigh5eMj8qXcRoXXGZpPP6RfdCw==
dependencies: dependencies:
array-includes "^3.0.3" array-includes "^3.0.3"
array.prototype.flat "^1.2.1" array.prototype.flat "^1.2.1"
@ -431,10 +431,10 @@ eslint-plugin-sonarjs@^0.5.0:
resolved "https://registry.yarnpkg.com/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.5.0.tgz#ce17b2daba65a874c2862213a9e38e8986ad7d7d" resolved "https://registry.yarnpkg.com/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.5.0.tgz#ce17b2daba65a874c2862213a9e38e8986ad7d7d"
integrity sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ== integrity sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ==
eslint-plugin-unicorn@^18.0.1: eslint-plugin-unicorn@^18.0.0:
version "18.0.1" version "18.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-18.0.1.tgz#8d3285ffa57b2f6b07550b94e62228d93bf61813" resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-18.0.0.tgz#94a8477d47f4d25fc931a27658dff44c0fcbc192"
integrity sha512-Y4bgygek4x4ogeMcSHr6MZi3frBPZ80eIpMOsxew7jAblb53OYflpRh0an62Z6jv/fw7D3TkXauqLOBWbT9adg== integrity sha512-2mk3Cz6H2LCsKSEmJ7Wmqm/XbMAQ55+PjSBFM2Yh1/A7uk2gryNNhdfbFDycsjs/ylqk0m7LJ4qPpK9OlP8f9A==
dependencies: dependencies:
ci-info "^2.0.0" ci-info "^2.0.0"
clean-regexp "^1.0.0" clean-regexp "^1.0.0"
@ -942,9 +942,9 @@ lodash.zip@^4.2.0:
integrity sha1-7GZi5IlkCO1KtsVCo5kLcswIACA= integrity sha1-7GZi5IlkCO1KtsVCo5kLcswIACA=
lodash@^4.17.14, lodash@^4.17.15: lodash@^4.17.14, lodash@^4.17.15:
version "4.17.19" version "4.17.15"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ== integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
merge-stream@^2.0.0: merge-stream@^2.0.0:
version "2.0.0" version "2.0.0"