aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-05-19 20:06:29 +1000
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-05-19 20:06:29 +1000
commit4ea53725a9021a136f6d81122dd78dc97a3e7da0 (patch)
tree7cd4b2aaa2c1e834aa61a669066f87d9746e7ef6 /.eslintrc.json
parent47cffd9d5d9628c1729be291ee3a2f9b5651bd2c (diff)
downloadsvg.js-4ea53725a9021a136f6d81122dd78dc97a3e7da0.tar.gz
svg.js-4ea53725a9021a136f6d81122dd78dc97a3e7da0.zip
sorted method names
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json85
1 files changed, 85 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..b6f110d
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,85 @@
+{
+ "extends": "standard",
+ "plugins": [ "sort-class-members" ],
+ "rules": {
+ "operator-linebreak": [ "error", "before" ],
+ "object-curly-spacing": [ "error", "always" ],
+ "array-bracket-spacing": [ "error", "always" ],
+ "indent": [ "error", 2, { "flatTernaryExpressions": true } ],
+ "padded-blocks": "off",
+ "sort-class-members/sort-class-members": [ 2, {
+ "order": [
+ "[static-properties]",
+ "[properties]",
+ "[conventional-private-properties]",
+ "constructor",
+ "[static-methods]",
+ "[methods]",
+ "[conventional-private-methods]",
+ "[accessor-pairs]",
+ "[getters]",
+ "[setters]",
+ "[everything-else]"
+ ],
+ "groups": {
+ "constructor": {
+ "name": "constructor",
+ "type": "method",
+ "sort": "alphabetical"
+ },
+ "properties": {
+ "type": "property",
+ "sort": "alphabetical"
+ },
+ "getters": {
+ "kind": "get",
+ "sort": "alphabetical"
+ },
+ "setters": {
+ "kind": "set",
+ "sort": "alphabetical"
+ },
+ "accessor-pairs": {
+ "accessorPair": true,
+ "sort": "alphabetical"
+ },
+ "static-properties": {
+ "type": "property",
+ "static": true,
+ "sort": "alphabetical"
+ },
+ "conventional-private-properties": {
+ "type": "property",
+ "name": "/_.+/",
+ "sort": "alphabetical"
+ },
+ "arrow-function-properties": {
+ "propertyType": "ArrowFunctionExpression",
+ "sort": "alphabetical"
+ },
+ "methods": {
+ "type": "method",
+ "sort": "alphabetical"
+ },
+ "static-methods": {
+ "type": "method",
+ "static": true,
+ "sort": "alphabetical"
+ },
+ "async-methods": {
+ "type": "method",
+ "async": true,
+ "sort": "alphabetical"
+ },
+ "conventional-private-methods": {
+ "type": "method",
+ "name": "/_.+/",
+ "sort": "alphabetical"
+ },
+ "everything-else": {
+ "sort": "alphabetical"
+ }
+ }
+ }]
+ }
+} \ No newline at end of file