Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 37d64f2906 | |||
| e14265b816 | |||
|
fe85ed91d7
|
|||
|
|
6587de6ea8 | ||
|
|
354d343ce6 | ||
|
|
c9e51ad9e8 |
19
.github/workflows/publish.yml
vendored
19
.github/workflows/publish.yml
vendored
@@ -1,19 +0,0 @@
|
|||||||
name: Publish
|
|
||||||
|
|
||||||
on:
|
|
||||||
create:
|
|
||||||
tags:
|
|
||||||
- v*
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: '13.x'
|
|
||||||
- run: npm install
|
|
||||||
- run: npm run build
|
|
||||||
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
|
|
||||||
- run: npm publish
|
|
||||||
8
.gitignore
vendored
8
.gitignore
vendored
@@ -198,5 +198,9 @@ $RECYCLE.BIN/
|
|||||||
### Project ###
|
### Project ###
|
||||||
|
|
||||||
# Resulting code
|
# Resulting code
|
||||||
/*.js
|
/_tslib-*.js
|
||||||
|
/default-*.js
|
||||||
|
/javascript.js
|
||||||
|
/typescript.js
|
||||||
|
/vue-javascript.js
|
||||||
|
/vue-typescript.js
|
||||||
|
|||||||
37
ROADMAP.md
37
ROADMAP.md
@@ -13,6 +13,7 @@
|
|||||||
- [ ] "block-scoped-var"
|
- [ ] "block-scoped-var"
|
||||||
- [ ] "block-spacing"
|
- [ ] "block-spacing"
|
||||||
- [X] "brace-style"
|
- [X] "brace-style"
|
||||||
|
- [X] "callback-return"
|
||||||
- [X] "camelcase"
|
- [X] "camelcase"
|
||||||
- [ ] "capitalized-comments"
|
- [ ] "capitalized-comments"
|
||||||
- [X] "class-methods-use-this"
|
- [X] "class-methods-use-this"
|
||||||
@@ -41,8 +42,10 @@
|
|||||||
- [ ] "function-paren-newline"
|
- [ ] "function-paren-newline"
|
||||||
- [ ] "generator-star-spacing"
|
- [ ] "generator-star-spacing"
|
||||||
- [ ] "getter-return"
|
- [ ] "getter-return"
|
||||||
|
- [ ] "global-require"
|
||||||
- [ ] "grouped-accessor-pairs"
|
- [ ] "grouped-accessor-pairs"
|
||||||
- [ ] "guard-for-in"
|
- [ ] "guard-for-in"
|
||||||
|
- [X] "handle-callback-err"
|
||||||
- [ ] "id-blacklist"
|
- [ ] "id-blacklist"
|
||||||
- [X] "id-length"
|
- [X] "id-length"
|
||||||
- [ ] "id-match"
|
- [ ] "id-match"
|
||||||
@@ -135,10 +138,10 @@
|
|||||||
- [X] "no-lone-blocks"
|
- [X] "no-lone-blocks"
|
||||||
- [ ] "no-lonely-if"
|
- [ ] "no-lonely-if"
|
||||||
- [ ] "no-loop-func"
|
- [ ] "no-loop-func"
|
||||||
- [ ] "no-loss-of-precision"
|
|
||||||
- [X] "no-magic-numbers"
|
- [X] "no-magic-numbers"
|
||||||
- [ ] "no-misleading-character-class"
|
- [ ] "no-misleading-character-class"
|
||||||
- [ ] "no-mixed-operators"
|
- [ ] "no-mixed-operators"
|
||||||
|
- [ ] "no-mixed-requires"
|
||||||
- [X] "no-mixed-spaces-and-tabs"
|
- [X] "no-mixed-spaces-and-tabs"
|
||||||
- [ ] "no-multi-assign"
|
- [ ] "no-multi-assign"
|
||||||
- [X] "no-multi-spaces"
|
- [X] "no-multi-spaces"
|
||||||
@@ -151,13 +154,17 @@
|
|||||||
- [ ] "no-new"
|
- [ ] "no-new"
|
||||||
- [X] "no-new-func"
|
- [X] "no-new-func"
|
||||||
- [ ] "no-new-object"
|
- [ ] "no-new-object"
|
||||||
|
- [X] "no-new-require"
|
||||||
- [ ] "no-new-symbol"
|
- [ ] "no-new-symbol"
|
||||||
- [X] "no-new-wrappers"
|
- [X] "no-new-wrappers"
|
||||||
- [ ] "no-obj-calls"
|
- [ ] "no-obj-calls"
|
||||||
- [ ] "no-octal"
|
- [ ] "no-octal"
|
||||||
- [X] "no-octal-escape"
|
- [X] "no-octal-escape"
|
||||||
- [ ] "no-param-reassign"
|
- [ ] "no-param-reassign"
|
||||||
|
- [X] "no-path-concat"
|
||||||
- [ ] "no-plusplus"
|
- [ ] "no-plusplus"
|
||||||
|
- [X] "no-process-env"
|
||||||
|
- [ ] "no-process-exit"
|
||||||
- [X] "no-proto"
|
- [X] "no-proto"
|
||||||
- [ ] "no-prototype-builtins"
|
- [ ] "no-prototype-builtins"
|
||||||
- [ ] "no-redeclare"
|
- [ ] "no-redeclare"
|
||||||
@@ -165,6 +172,7 @@
|
|||||||
- [ ] "no-restricted-exports"
|
- [ ] "no-restricted-exports"
|
||||||
- [ ] "no-restricted-globals"
|
- [ ] "no-restricted-globals"
|
||||||
- [ ] "no-restricted-imports"
|
- [ ] "no-restricted-imports"
|
||||||
|
- [ ] "no-restricted-modules"
|
||||||
- [X] "no-restricted-properties"
|
- [X] "no-restricted-properties"
|
||||||
- [ ] "no-restricted-syntax"
|
- [ ] "no-restricted-syntax"
|
||||||
- [ ] "no-return-assign"
|
- [ ] "no-return-assign"
|
||||||
@@ -178,6 +186,7 @@
|
|||||||
- [ ] "no-shadow-restricted-names"
|
- [ ] "no-shadow-restricted-names"
|
||||||
- [X] "no-spaced-func"
|
- [X] "no-spaced-func"
|
||||||
- [ ] "no-sparse-arrays"
|
- [ ] "no-sparse-arrays"
|
||||||
|
- [ ] "no-sync"
|
||||||
- [X] "no-tabs"
|
- [X] "no-tabs"
|
||||||
- [ ] "no-template-curly-in-string"
|
- [ ] "no-template-curly-in-string"
|
||||||
- [X] "no-ternary"
|
- [X] "no-ternary"
|
||||||
@@ -282,7 +291,6 @@
|
|||||||
- [X] "no-unused-disable"
|
- [X] "no-unused-disable"
|
||||||
- [X] "no-unused-enable"
|
- [X] "no-unused-enable"
|
||||||
- [X] "no-use"
|
- [X] "no-use"
|
||||||
- [ ] "require-description"
|
|
||||||
|
|
||||||
## Import
|
## Import
|
||||||
|
|
||||||
@@ -308,7 +316,6 @@
|
|||||||
- [ ] "no-dynamic-require"
|
- [ ] "no-dynamic-require"
|
||||||
- [ ] "no-extraneous-dependencies"
|
- [ ] "no-extraneous-dependencies"
|
||||||
- [ ] "no-internal-modules"
|
- [ ] "no-internal-modules"
|
||||||
- [ ] "no-loss-of-precision"
|
|
||||||
- [ ] "no-mutable-exports"
|
- [ ] "no-mutable-exports"
|
||||||
- [ ] "no-named-as-default"
|
- [ ] "no-named-as-default"
|
||||||
- [ ] "no-named-as-default-member"
|
- [ ] "no-named-as-default-member"
|
||||||
@@ -378,31 +385,29 @@
|
|||||||
- [ ] "array-type"
|
- [ ] "array-type"
|
||||||
- [X] "await-thenable"
|
- [X] "await-thenable"
|
||||||
- [ ] "ban-ts-comment"
|
- [ ] "ban-ts-comment"
|
||||||
- [ ] "ban-tslint-comment"
|
- [ ] "ban-ts-ignore"
|
||||||
- [ ] "ban-types"
|
- [ ] "ban-types"
|
||||||
- [ ] "brace-style"
|
- [ ] "brace-style"
|
||||||
- [ ] "camelcase"
|
- [ ] "camelcase"
|
||||||
- [X] "class-literal-property-style"
|
- [X] "class-literal-property-style"
|
||||||
|
- [ ] "class-name-casing"
|
||||||
- [X] "comma-spacing"
|
- [X] "comma-spacing"
|
||||||
- [ ] "consistent-type-assertions"
|
- [ ] "consistent-type-assertions"
|
||||||
- [ ] "consistent-type-definitions"
|
- [ ] "consistent-type-definitions"
|
||||||
- [ ] "default-param-last"
|
- [ ] "default-param-last"
|
||||||
- [ ] "dot-notation"
|
|
||||||
- [X] "explicit-function-return-type"
|
- [X] "explicit-function-return-type"
|
||||||
- [X] "explicit-member-accessibility"
|
- [X] "explicit-member-accessibility"
|
||||||
- [ ] "explicit-module-boundary-types"
|
- [ ] "explicit-module-boundary-types"
|
||||||
- [ ] "func-call-spacing"
|
- [ ] "func-call-spacing"
|
||||||
|
- [ ] "generic-type-naming"
|
||||||
- [X] "indent"
|
- [X] "indent"
|
||||||
- [ ] "init-declarations"
|
- [X] "interface-name-prefix"
|
||||||
- [ ] "keyword-spacing"
|
|
||||||
- [ ] "lines-between-class-members"
|
|
||||||
- [ ] "member-delimiter-style"
|
- [ ] "member-delimiter-style"
|
||||||
|
- [ ] "member-naming"
|
||||||
- [ ] "member-ordering"
|
- [ ] "member-ordering"
|
||||||
- [X] "method-signature-style"
|
|
||||||
- [ ] "naming-convention"
|
- [ ] "naming-convention"
|
||||||
- [ ] "no-array-constructor"
|
- [ ] "no-array-constructor"
|
||||||
- [X] "no-base-to-string"
|
- [X] "no-base-to-string"
|
||||||
- [ ] "no-confusing-non-null-assertion"
|
|
||||||
- [ ] "no-dupe-class-members"
|
- [ ] "no-dupe-class-members"
|
||||||
- [ ] "no-dynamic-delete"
|
- [ ] "no-dynamic-delete"
|
||||||
- [ ] "no-empty-function"
|
- [ ] "no-empty-function"
|
||||||
@@ -416,8 +421,6 @@
|
|||||||
- [ ] "no-for-in-array"
|
- [ ] "no-for-in-array"
|
||||||
- [X] "no-implied-eval"
|
- [X] "no-implied-eval"
|
||||||
- [X] "no-inferrable-types"
|
- [X] "no-inferrable-types"
|
||||||
- [ ] "no-invalid-this"
|
|
||||||
- [ ] "no-invalid-void-type"
|
|
||||||
- [X] "no-magic-numbers"
|
- [X] "no-magic-numbers"
|
||||||
- [ ] "no-misused-new"
|
- [ ] "no-misused-new"
|
||||||
- [X] "no-misused-promises"
|
- [X] "no-misused-promises"
|
||||||
@@ -434,10 +437,10 @@
|
|||||||
- [ ] "no-unnecessary-qualifier"
|
- [ ] "no-unnecessary-qualifier"
|
||||||
- [ ] "no-unnecessary-type-arguments"
|
- [ ] "no-unnecessary-type-arguments"
|
||||||
- [X] "no-unnecessary-type-assertion"
|
- [X] "no-unnecessary-type-assertion"
|
||||||
- [ ] "no-unsafe-assignment"
|
|
||||||
- [X] "no-unsafe-call"
|
- [X] "no-unsafe-call"
|
||||||
- [X] "no-unsafe-member-access"
|
- [X] "no-unsafe-member-access"
|
||||||
- [X] "no-unsafe-return"
|
- [X] "no-unsafe-return"
|
||||||
|
- [X] "no-untyped-public-signature"
|
||||||
- [ ] "no-unused-expressions"
|
- [ ] "no-unused-expressions"
|
||||||
- [X] "no-unused-vars"
|
- [X] "no-unused-vars"
|
||||||
- [X] "no-unused-vars-experimental"
|
- [X] "no-unused-vars-experimental"
|
||||||
@@ -453,10 +456,8 @@
|
|||||||
- [ ] "prefer-optional-chain"
|
- [ ] "prefer-optional-chain"
|
||||||
- [ ] "prefer-readonly"
|
- [ ] "prefer-readonly"
|
||||||
- [X] "prefer-readonly-parameter-types"
|
- [X] "prefer-readonly-parameter-types"
|
||||||
- [ ] "prefer-reduce-type-parameter"
|
|
||||||
- [ ] "prefer-regexp-exec"
|
- [ ] "prefer-regexp-exec"
|
||||||
- [ ] "prefer-string-starts-ends-with"
|
- [ ] "prefer-string-starts-ends-with"
|
||||||
- [ ] "prefer-ts-expect-error"
|
|
||||||
- [ ] "promise-function-async"
|
- [ ] "promise-function-async"
|
||||||
- [X] "quotes"
|
- [X] "quotes"
|
||||||
- [ ] "require-array-sort-compare"
|
- [ ] "require-array-sort-compare"
|
||||||
@@ -496,17 +497,13 @@
|
|||||||
- [ ] "no-keyword-prefix"
|
- [ ] "no-keyword-prefix"
|
||||||
- [ ] "no-nested-ternary"
|
- [ ] "no-nested-ternary"
|
||||||
- [ ] "no-new-buffer"
|
- [ ] "no-new-buffer"
|
||||||
- [ ] "no-null"
|
|
||||||
- [ ] "no-process-exit"
|
- [ ] "no-process-exit"
|
||||||
- [ ] "no-reduce"
|
|
||||||
- [ ] "no-unreadable-array-destructuring"
|
- [ ] "no-unreadable-array-destructuring"
|
||||||
- [ ] "no-unsafe-regex"
|
- [ ] "no-unsafe-regex"
|
||||||
- [ ] "no-unused-properties"
|
- [ ] "no-unused-properties"
|
||||||
- [ ] "no-useless-undefined"
|
|
||||||
- [ ] "no-zero-fractions"
|
- [ ] "no-zero-fractions"
|
||||||
- [ ] "number-literal-case"
|
- [ ] "number-literal-case"
|
||||||
- [ ] "prefer-add-event-listener"
|
- [ ] "prefer-add-event-listener"
|
||||||
- [ ] "prefer-array-find"
|
|
||||||
- [ ] "prefer-dataset"
|
- [ ] "prefer-dataset"
|
||||||
- [ ] "prefer-event-key"
|
- [ ] "prefer-event-key"
|
||||||
- [ ] "prefer-exponentiation-operator"
|
- [ ] "prefer-exponentiation-operator"
|
||||||
@@ -517,7 +514,6 @@
|
|||||||
- [ ] "prefer-node-append"
|
- [ ] "prefer-node-append"
|
||||||
- [ ] "prefer-node-remove"
|
- [ ] "prefer-node-remove"
|
||||||
- [X] "prefer-number-properties"
|
- [X] "prefer-number-properties"
|
||||||
- [ ] "prefer-optional-catch-binding"
|
|
||||||
- [ ] "prefer-query-selector"
|
- [ ] "prefer-query-selector"
|
||||||
- [ ] "prefer-reflect-apply"
|
- [ ] "prefer-reflect-apply"
|
||||||
- [ ] "prefer-replace-all"
|
- [ ] "prefer-replace-all"
|
||||||
@@ -529,7 +525,6 @@
|
|||||||
- [ ] "prefer-trim-start-end"
|
- [ ] "prefer-trim-start-end"
|
||||||
- [ ] "prefer-type-error"
|
- [ ] "prefer-type-error"
|
||||||
- [X] "prevent-abbreviations"
|
- [X] "prevent-abbreviations"
|
||||||
- [ ] "string-content"
|
|
||||||
- [ ] "throw-new-error"
|
- [ ] "throw-new-error"
|
||||||
|
|
||||||
## Vue
|
## Vue
|
||||||
|
|||||||
2233
package-lock.json
generated
2233
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
39
package.json
39
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@valentineus/eslint-config",
|
"name": "@valentineus/eslint-config",
|
||||||
"version": "0.0.16",
|
"version": "0.0.15",
|
||||||
"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",
|
||||||
@@ -11,32 +11,31 @@
|
|||||||
"build": "rollup --config rollup.config.js"
|
"build": "rollup --config rollup.config.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.0.2",
|
||||||
"@rollup/plugin-typescript": "^4.1.2",
|
"@rollup/plugin-typescript": "^3.0.0",
|
||||||
"@types/node": "^14.0.13",
|
"@typescript-eslint/eslint-plugin": "^2.26.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^3.3.0",
|
"@typescript-eslint/parser": "^2.26.0",
|
||||||
"@typescript-eslint/parser": "^3.3.0",
|
"eslint": "^6.8.0",
|
||||||
"eslint": "^7.2.0",
|
"eslint-plugin-eslint-comments": "^3.1.2",
|
||||||
"eslint-plugin-eslint-comments": "^3.2.0",
|
"eslint-plugin-import": "^2.20.2",
|
||||||
"eslint-plugin-import": "^2.21.2",
|
|
||||||
"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": "^20.1.0",
|
"eslint-plugin-unicorn": "^18.0.1",
|
||||||
"eslint-plugin-vue": "^6.2.2",
|
"eslint-plugin-vue": "^6.2.2",
|
||||||
"rollup": "^2.17.0",
|
"rollup": "^1.31.1",
|
||||||
"rollup-plugin-terser": "^6.1.0",
|
"rollup-plugin-terser": "^5.2.0",
|
||||||
"tslib": "^2.0.0",
|
"tslib": "^1.10.0",
|
||||||
"typescript": "^3.9.5"
|
"typescript": "^3.7.5"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^3.3.0",
|
"@typescript-eslint/eslint-plugin": "^2.26.0",
|
||||||
"@typescript-eslint/parser": "^3.3.0",
|
"@typescript-eslint/parser": "^2.26.0",
|
||||||
"eslint": "^7.2.0",
|
"eslint": "^6.8.0",
|
||||||
"eslint-plugin-eslint-comments": "^3.2.0",
|
"eslint-plugin-eslint-comments": "^3.1.2",
|
||||||
"eslint-plugin-import": "^2.21.2",
|
"eslint-plugin-import": "^2.20.2",
|
||||||
"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": "^20.1.0",
|
"eslint-plugin-unicorn": "^18.0.1",
|
||||||
"eslint-plugin-vue": "^6.2.2"
|
"eslint-plugin-vue": "^6.2.2"
|
||||||
},
|
},
|
||||||
"dependencies": {}
|
"dependencies": {}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { terser } from "rollup-plugin-terser";
|
||||||
import json from "@rollup/plugin-json";
|
import json from "@rollup/plugin-json";
|
||||||
import typescript from "@rollup/plugin-typescript";
|
import typescript from "@rollup/plugin-typescript";
|
||||||
import { terser } from "rollup-plugin-terser";
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
input: {
|
input: {
|
||||||
@@ -25,6 +25,7 @@ module.exports = {
|
|||||||
output: {
|
output: {
|
||||||
comments: false,
|
comments: false,
|
||||||
},
|
},
|
||||||
|
sourcemap: false,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
"array-callback-return": [
|
"array-callback-return": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
"allowImplicit": false,
|
"allowImplicit": false
|
||||||
"checkForEach": true
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"arrow-parens": [
|
"arrow-parens": [
|
||||||
@@ -24,6 +23,9 @@
|
|||||||
"allowSingleLine": false
|
"allowSingleLine": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"callback-return": [
|
||||||
|
"warn"
|
||||||
|
],
|
||||||
"camelcase": [
|
"camelcase": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
@@ -51,7 +53,10 @@
|
|||||||
],
|
],
|
||||||
"comma-style": [
|
"comma-style": [
|
||||||
"error",
|
"error",
|
||||||
"last"
|
"last",
|
||||||
|
{
|
||||||
|
"exceptions": {}
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"curly": [
|
"curly": [
|
||||||
"error",
|
"error",
|
||||||
@@ -75,6 +80,9 @@
|
|||||||
"error",
|
"error",
|
||||||
"consistent"
|
"consistent"
|
||||||
],
|
],
|
||||||
|
"handle-callback-err": [
|
||||||
|
"error"
|
||||||
|
],
|
||||||
"id-length": [
|
"id-length": [
|
||||||
"warn",
|
"warn",
|
||||||
{
|
{
|
||||||
@@ -106,7 +114,7 @@
|
|||||||
"VariableDeclarator": 1,
|
"VariableDeclarator": 1,
|
||||||
"flatTernaryExpressions": true,
|
"flatTernaryExpressions": true,
|
||||||
"ignoreComments": false,
|
"ignoreComments": false,
|
||||||
"offsetTernaryExpressions": true,
|
"ignoredNodes": [],
|
||||||
"outerIIFEBody": 1
|
"outerIIFEBody": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -322,6 +330,9 @@
|
|||||||
"no-new-func": [
|
"no-new-func": [
|
||||||
"error"
|
"error"
|
||||||
],
|
],
|
||||||
|
"no-new-require": [
|
||||||
|
"error"
|
||||||
|
],
|
||||||
"no-new-wrappers": [
|
"no-new-wrappers": [
|
||||||
"error"
|
"error"
|
||||||
],
|
],
|
||||||
@@ -334,6 +345,12 @@
|
|||||||
"props": true
|
"props": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"no-path-concat": [
|
||||||
|
"error"
|
||||||
|
],
|
||||||
|
"no-process-env": [
|
||||||
|
"off"
|
||||||
|
],
|
||||||
"no-proto": [
|
"no-proto": [
|
||||||
"error"
|
"error"
|
||||||
],
|
],
|
||||||
@@ -452,22 +469,9 @@
|
|||||||
"object-curly-newline": [
|
"object-curly-newline": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
"ExportDeclaration": {
|
"consistent": true,
|
||||||
"consistent": true,
|
"minProperties": 5,
|
||||||
"minProperties": 1,
|
"multiline": true
|
||||||
"multiline": true
|
|
||||||
},
|
|
||||||
"ImportDeclaration": "never",
|
|
||||||
"ObjectExpression": {
|
|
||||||
"consistent": true,
|
|
||||||
"minProperties": 1,
|
|
||||||
"multiline": true
|
|
||||||
},
|
|
||||||
"ObjectPattern": {
|
|
||||||
"consistent": true,
|
|
||||||
"minProperties": 1,
|
|
||||||
"multiline": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"object-curly-spacing": [
|
"object-curly-spacing": [
|
||||||
@@ -638,4 +642,4 @@
|
|||||||
"onlyEquality": false
|
"onlyEquality": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
"@typescript-eslint/explicit-function-return-type": [
|
"@typescript-eslint/explicit-function-return-type": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
"allowConciseArrowFunctionExpressionsStartingWithVoid": false,
|
|
||||||
"allowExpressions": false,
|
"allowExpressions": false,
|
||||||
"allowHigherOrderFunctions": false,
|
"allowHigherOrderFunctions": false,
|
||||||
"allowTypedFunctionExpressions": false
|
"allowTypedFunctionExpressions": false
|
||||||
@@ -62,9 +61,12 @@
|
|||||||
"outerIIFEBody": 1
|
"outerIIFEBody": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"@typescript-eslint/method-signature-style": [
|
"@typescript-eslint/interface-name-prefix": [
|
||||||
"error",
|
"error",
|
||||||
"property"
|
{
|
||||||
|
"allowUnderscorePrefix": false,
|
||||||
|
"prefixWithI": "always"
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"@typescript-eslint/no-base-to-string": [
|
"@typescript-eslint/no-base-to-string": [
|
||||||
"error"
|
"error"
|
||||||
@@ -123,7 +125,9 @@
|
|||||||
"@typescript-eslint/no-unnecessary-condition": [
|
"@typescript-eslint/no-unnecessary-condition": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
"allowConstantLoopConditions": false
|
"allowConstantLoopConditions": false,
|
||||||
|
"checkArrayPredicates": true,
|
||||||
|
"ignoreRhs": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"@typescript-eslint/no-unnecessary-type-assertion": [
|
"@typescript-eslint/no-unnecessary-type-assertion": [
|
||||||
@@ -138,6 +142,14 @@
|
|||||||
"@typescript-eslint/no-unsafe-return": [
|
"@typescript-eslint/no-unsafe-return": [
|
||||||
"error"
|
"error"
|
||||||
],
|
],
|
||||||
|
"@typescript-eslint/no-untyped-public-signature": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"ignoredMethods": [
|
||||||
|
"constructor"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"@typescript-eslint/no-unused-vars": [
|
"@typescript-eslint/no-unused-vars": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
@@ -201,13 +213,9 @@
|
|||||||
"@typescript-eslint/strict-boolean-expressions": [
|
"@typescript-eslint/strict-boolean-expressions": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
"allowAny": false,
|
"allowNullable": false,
|
||||||
"allowNullableBoolean": false,
|
"allowSafe": false,
|
||||||
"allowNullableNumber": false,
|
"ignoreRhs": false
|
||||||
"allowNullableObject": false,
|
|
||||||
"allowNullableString": false,
|
|
||||||
"allowNumber": false,
|
|
||||||
"allowString": false
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"@typescript-eslint/type-annotation-spacing": [
|
"@typescript-eslint/type-annotation-spacing": [
|
||||||
@@ -289,4 +297,4 @@
|
|||||||
"space-before-function-paren": [
|
"space-before-function-paren": [
|
||||||
"off"
|
"off"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import rDefault from "./rules/typescript/default.json";
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
"extends": [
|
"extends": [
|
||||||
"./javascript",
|
"./javascript",
|
||||||
|
"plugin:@typescript-eslint/eslint-recommended",
|
||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:@typescript-eslint/recommended",
|
||||||
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
||||||
"plugin:import/typescript",
|
"plugin:import/typescript",
|
||||||
@@ -14,7 +15,5 @@ module.exports = {
|
|||||||
"plugins": [
|
"plugins": [
|
||||||
"@typescript-eslint",
|
"@typescript-eslint",
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": { ...rDefault },
|
||||||
...rDefault,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,9 +14,7 @@ module.exports = {
|
|||||||
files: [
|
files: [
|
||||||
"*.vue",
|
"*.vue",
|
||||||
],
|
],
|
||||||
rules: {
|
rules: { ...rOverrides },
|
||||||
...rOverrides,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"parser": "vue-eslint-parser",
|
"parser": "vue-eslint-parser",
|
||||||
@@ -26,7 +24,5 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"plugins": ["vue"],
|
"plugins": ["vue"],
|
||||||
"rules": {
|
"rules": { ...rDefault },
|
||||||
...rDefault,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,9 +14,7 @@ module.exports = {
|
|||||||
files: [
|
files: [
|
||||||
"*.vue",
|
"*.vue",
|
||||||
],
|
],
|
||||||
rules: {
|
rules: { ...rOverrides },
|
||||||
...rOverrides,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"parser": "vue-eslint-parser",
|
"parser": "vue-eslint-parser",
|
||||||
@@ -28,7 +26,5 @@ module.exports = {
|
|||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
},
|
},
|
||||||
"plugins": ["vue"],
|
"plugins": ["vue"],
|
||||||
"rules": {
|
"rules": { ...rDefault },
|
||||||
...rDefault,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user