diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..96e2faf --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +[*.json] +indent_style = space +indent_size = 2 + +[*.js] +indent_style = tab +indent_size = 4 + diff --git a/.gitignore b/.gitignore index a19fcb9..ac33262 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ sftp-config.json node_modules/ -*.sublime* \ No newline at end of file +*.sublime* diff --git a/.jshintrc b/.jshintrc index 1981c25..03efa6e 100644 --- a/.jshintrc +++ b/.jshintrc @@ -83,4 +83,4 @@ // Custom Globals "globals" : {} // additional predefined global variables -} \ No newline at end of file +} diff --git a/plugin.json b/plugin.json index c74707a..89502a2 100644 --- a/plugin.json +++ b/plugin.json @@ -1,20 +1,20 @@ { - "id": "nodebb-plugin-mentions", - "name": "Username Mentions", - "description": "NodeBB Plugin that allows users to mention other users by prepending an '@' sign to their username", - "url": "https://github.com/julianlam/nodebb-plugin-mentions", - "library": "./library.js", - "hooks": [ - { "hook": "filter:parse.post", "method": "parsePost" }, - { "hook": "filter:parse.raw", "method": "parseRaw" }, - { "hook": "action:post.save", "method": "notify" } - ], - "scripts": [ - "static/autofill.js" - ], - "less": [ - "static/style.less" - ], - "languages": "languages", - "defaultLang": "en_GB" -} \ No newline at end of file + "id": "nodebb-plugin-mentions", + "name": "Username Mentions", + "description": "NodeBB Plugin that allows users to mention other users by prepending an '@' sign to their username", + "url": "https://github.com/julianlam/nodebb-plugin-mentions", + "library": "./library.js", + "hooks": [ + { "hook": "filter:parse.post", "method": "parsePost" }, + { "hook": "filter:parse.raw", "method": "parseRaw" }, + { "hook": "action:post.save", "method": "notify" } + ], + "scripts": [ + "static/autofill.js" + ], + "less": [ + "static/style.less" + ], + "languages": "languages", + "defaultLang": "en_GB" +} diff --git a/static/style.less b/static/style.less index 42ebf44..d9078a2 100644 --- a/static/style.less +++ b/static/style.less @@ -9,4 +9,4 @@ color: @state-info-text; font-size: 0.9em; white-space: nowrap; -} \ No newline at end of file +}