Index: eslint-config-eyeo/README.md |
diff --git a/eslint-config-eyeo/README.md b/eslint-config-eyeo/README.md |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ab0b463c45babb5e44b13cfb5111525c44201860 |
--- /dev/null |
+++ b/eslint-config-eyeo/README.md |
@@ -0,0 +1,32 @@ |
+# eslint-config-eyeo |
+ |
+An [ESLint](http://eslint.org) configuration that checks for compliance with the |
+[Adblock Plus coding style guide](https://adblockplus.org/coding-style#javascript) |
+which is used for all eyeo projects. |
+ |
+## Installation |
+ |
+ npm install -g eslint eslint-config-eyeo |
+ |
+(As root, or using sudo.) |
+ |
+## Usage |
+ |
+To lint a JavaScript file using ESLint you simply run the `eslint` command with |
+the file as an argument. For example: |
+ |
+ eslint some-file.js |
+ |
+(For advanced usage see `eslint --help`.) |
+ |
+In order to use eslint-config-eyeo your project's ESLint configuration |
+should extend from it. A minimal example looks like this: |
+ |
+ { |
+ "extends": "eslint-config-eyeo", |
+ "root": true |
Sebastian Noack
2017/02/13 11:31:29
One could argue, documenting the root option here
kzar
2017/02/13 13:02:22
Well most projects will need more in their configu
|
+ } |
+ |
+(For projects without an ESLint configuration you can create your own |
+personal configuration in `~/.eslintrc.json`, but take care to remove |
+the `"root": true` section from the above example.) |