eslint-plugin-freaktechnik
Advanced tools
Comparing version 2.5.1 to 3.0.0
160
index.js
@@ -18,3 +18,7 @@ /** | ||
plugins: [ | ||
"jsdoc" | ||
"jsdoc", | ||
"json", | ||
"security", | ||
"filenames", | ||
"promise" | ||
], | ||
@@ -45,3 +49,5 @@ rules: { | ||
"dot-notation": 2, | ||
"no-alert": 2, | ||
"no-caller": 2, | ||
"no-else-return": 2, | ||
"no-empty-function": 2, | ||
@@ -55,17 +61,42 @@ "no-eval": 2, | ||
"no-iterator": 2, | ||
"no-labels": 2, | ||
"no-lone-blocks": 2, | ||
"no-magic-numbers": 2, | ||
"no-multi-spaces": 2, | ||
"no-proto": 2, | ||
"no-return-assign": 2, | ||
"no-return-await": 2, | ||
"no-script-url": 2, | ||
"no-self-compare": 2, | ||
"no-sequences": 2, | ||
"no-unmodified-loop-condition": 2, | ||
"no-unused-expressions": 2, | ||
"no-useless-call": 2, | ||
"no-void": 2, | ||
"no-useless-escape": 2, | ||
"no-useless-concat": 2, | ||
"no-useless-return": 2, | ||
"no-with": 1, | ||
"radix": 2, | ||
"no-use-before-define": 2, | ||
"yoda": 2, | ||
"no-catch-shadow": 2, | ||
"no-shadow": 1, | ||
"array-bracket-spacing": [ | ||
"error", | ||
{ | ||
minItems: 2 | ||
} | ||
], | ||
"array-bracket-spacing": [2, "always"], | ||
"array-element-newline": [ | ||
"error", | ||
{ | ||
minItems: 2 | ||
} | ||
], | ||
"block-spacing": 2, | ||
"brace-style": [2, "stroustrup"], | ||
"camelcase": 2, | ||
"comma-dangle": 2 | ||
"comma-spacing": 2, | ||
@@ -76,2 +107,4 @@ "comma-style": 2, | ||
"eol-last": 2, | ||
"func-call-spacing": 2, | ||
"func-name-matching": 2, | ||
"key-spacing": 2, | ||
@@ -93,12 +126,26 @@ "keyword-spacing": [2, { | ||
"new-parens": 2, | ||
"newline-per-chained-call": 1, | ||
"no-lonely-if": 2, | ||
"no-mixed-operators": 2, | ||
"no-multiple-empty-lines": 2, | ||
"no-spaced-func": 2, | ||
"no-tabs": 2, | ||
"no-trailing-spaces": 2, | ||
"no-underscore-dangle": 2, | ||
"no-unneeded-ternary": 2, | ||
"no-whitespace-before-property": 2, | ||
"object-curly-newline": [ | ||
"error", | ||
{ | ||
"minProperties": 2 | ||
} | ||
], | ||
"object-curly-spacing": [2, "always"], | ||
"object-property-newline": 2, | ||
"one-var-declaration-per-line": 2, | ||
"one-var": 1, | ||
"operator-linebreak": 2, | ||
"padded-block": [ | ||
"error", | ||
"never" | ||
], | ||
"semi-spacing": 2, | ||
@@ -115,3 +162,5 @@ "semi": 2, | ||
"space-unary-ops": 2, | ||
"arrow-body-style": 1, | ||
"arrow-parens": 2, | ||
"arrow-spacing": 2, | ||
"generator-star-spacing": [2, "after"], | ||
@@ -126,3 +175,65 @@ "no-var": 2, | ||
"no-throw-literal": 1, | ||
"semi-style": [2, "last"] | ||
"semi-style": [2, "last"], | ||
"switch-colon-spacing": 2, | ||
"template-tag-spacing": 2, | ||
"unicode-bom": 2, | ||
"getter-return": 2, | ||
"no-template-curly-in-string": 2, | ||
"class-methods-use-this": 2, | ||
"no-duplicate-imports": 2, | ||
"no-useless-computed-key": 2, | ||
"no-useless-constructor": 2, | ||
"no-useless-rename": 2, | ||
"prefer-destructuring": 1, | ||
"prefer-rest-params": 2, | ||
"prefer-spread": 2, | ||
"prefer-template": 2, | ||
"rest-spread-spacing": 2, | ||
"template-curly-spacing": 2, | ||
"yield-star-spacing": 2, | ||
"filenames/match-regex": [ | ||
2, | ||
"^[a-z0-9-]+$" | ||
], | ||
"eslint-comments/disable-enable-pair": 2, | ||
"eslint-comments/no-udplicate-disable": 2, | ||
"eslint-comments/no-unlimited-disable": 2, | ||
"eslint-comments/no-unused-disable": 2, | ||
"eslint-comments/no-unused-enable": 2, | ||
"sort-class-members/sort-class-members": [ | ||
2, | ||
{ | ||
order: [ | ||
"[static-properties]", | ||
"[static-getters]", | ||
"[static-accessor-pairs]", | ||
"[static-methods]", | ||
"constructor", | ||
"[properties]", | ||
"[getters]", | ||
"[accessor-pairs]", | ||
"[conventional-private-properties]", | ||
"[methods]", | ||
"[conventional-private-methods]" | ||
], | ||
groups: { | ||
"static-accessor-pairs": [ | ||
{ | ||
type: "method", | ||
accessorPair: true, | ||
static: true | ||
} | ||
], | ||
"static-getters": [ | ||
{ | ||
type: "method", | ||
kind: "get", | ||
static: true, | ||
accessorPair: false | ||
} | ||
] | ||
} | ||
accessorPairPositioning: "getThenSet" | ||
} | ||
] | ||
}, | ||
@@ -142,3 +253,7 @@ settings: { | ||
}, | ||
extends: ["eslint:recommended"] | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:promise/recommended", | ||
"plugin:security/recommended" | ||
] | ||
}, | ||
@@ -156,3 +271,12 @@ node: { | ||
], | ||
extends: ["plugin:freaktechnik/base", "plugin:node/recommended"] | ||
rules: { | ||
"no-new-require": 2, | ||
"no-sync": 1, | ||
"no-buffer-constructor": 2, | ||
"handle-callback-err": 1 | ||
} | ||
extends: [ | ||
"plugin:freaktechnik/base", | ||
"plugin:node/recommended" | ||
] | ||
}, | ||
@@ -182,7 +306,9 @@ test: { | ||
}, | ||
extends: ["plugin:freaktechnik/node", "plugin:ava/recommended"] | ||
extends: [ | ||
"plugin:freaktechnik/node", | ||
"plugin:ava/recommended" | ||
] | ||
}, | ||
browser: { | ||
env: { | ||
es6: true, | ||
browser: true | ||
@@ -193,13 +319,25 @@ }, | ||
}, | ||
extends: ["plugin:freaktechnik/base"] | ||
plugins: [ | ||
"xss" | ||
], | ||
rules: { | ||
"xss/no-mixed-html": 2, | ||
"xss/no-location-href-assign": 2 | ||
}, | ||
extends: [ | ||
"plugin:freaktechnik/base" | ||
] | ||
}, | ||
extension: { | ||
env: { | ||
es6: true, | ||
browser: true, | ||
webextensions: true | ||
}, | ||
extends: ["plugin:freaktechnik/browser"] | ||
rules: { | ||
"strict": 0 | ||
} | ||
extends: [ | ||
"plugin:freaktechnik/browser" | ||
] | ||
} | ||
} | ||
}; |
{ | ||
"name": "eslint-plugin-freaktechnik", | ||
"version": "2.5.1", | ||
"version": "3.0.0", | ||
"description": "ESLint default configs of freaktechnik.", | ||
@@ -25,4 +25,11 @@ "main": "index.js", | ||
"eslint-plugin-ava": "^4.0.0", | ||
"eslint-plugin-eslint-comments": "^1.0.3", | ||
"eslint-plugin-filenames": "^1.2.0", | ||
"eslint-plugin-jsdoc": "^3.1.3", | ||
"eslint-plugin-node": "^5.0.0" | ||
"eslint-plugin-json": "^1.2.0", | ||
"eslint-plugin-node": "^5.0.0", | ||
"eslint-plugin-promise": "^3.5.0", | ||
"eslint-plugin-security": "^1.4.0", | ||
"eslint-plugin-sort-class-members": "^1.2.0", | ||
"eslint-plugin-xss": "^0.1.8" | ||
}, | ||
@@ -29,0 +36,0 @@ "peerDependencies": { |
@@ -6,3 +6,3 @@ # eslint-plugin-freaktechnik | ||
Basic configurations freaktechnik really likes. Other people will probably find them disgusting. | ||
Basic configurations freaktechnik really likes. They are pretty opinionated and other people will probably find them disgusting. Don't forget to add `--ext .json,.js` to your eslint invocation. | ||
@@ -15,1 +15,2 @@ ## Configurations | ||
- browser | ||
- extension |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13185
331
15
11
+ Addedeslint-plugin-json@^1.2.0
+ Addedeslint-plugin-promise@^3.5.0
+ Addedeslint-plugin-xss@^0.1.8
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedeslint-plugin-eslint-comments@1.1.0(transitive)
+ Addedeslint-plugin-filenames@1.3.2(transitive)
+ Addedeslint-plugin-json@1.4.0(transitive)
+ Addedeslint-plugin-promise@3.8.0(transitive)
+ Addedeslint-plugin-security@1.7.1(transitive)
+ Addedeslint-plugin-sort-class-members@1.21.0(transitive)
+ Addedeslint-plugin-xss@0.1.12(transitive)
+ Addedjsonc-parser@3.3.1(transitive)
+ Addedlodash.camelcase@4.3.0(transitive)
+ Addedlodash.kebabcase@4.1.1(transitive)
+ Addedlodash.snakecase@4.1.1(transitive)
+ Addedlodash.upperfirst@4.3.1(transitive)
+ Addedregexp-tree@0.1.27(transitive)
+ Addedrequireindex@1.1.0(transitive)
+ Addedsafe-regex@2.1.1(transitive)
+ Addedvscode-json-languageservice@3.11.0(transitive)
+ Addedvscode-languageserver-textdocument@1.0.12(transitive)
+ Addedvscode-languageserver-types@3.16.0-next.2(transitive)
+ Addedvscode-nls@5.2.0(transitive)
+ Addedvscode-uri@2.1.2(transitive)