Skip to content

Commit 21e4c5d

Browse files
committed
Initial commit
0 parents  commit 21e4c5d

File tree

4 files changed

+136
-0
lines changed

4 files changed

+136
-0
lines changed

README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<p align="center">
2+
<img alt="OS.js Logo" src="https://raw.githubusercontent.com/os-js/gfx/master/logo-big.png" />
3+
</p>
4+
5+
[OS.js](https://www.os-js.org/) is an [open-source](https://raw.githubusercontent.com/os-js/OS.js/master/LICENSE) desktop implementation for your browser with a fully-fledged window manager, Application APIs, GUI toolkits and filesystem abstraction.
6+
7+
[![Support](https://img.shields.io/badge/patreon-support-orange.svg)](https://www.patreon.com/user?u=2978551&ty=h&u=2978551)
8+
[![Back](https://opencollective.com/osjs/tiers/backer/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/osjs)
9+
[![Sponsor](https://opencollective.com/osjs/tiers/sponsor/badge.svg?label=sponsor&color=brightgreen)](https://opencollective.com/osjs)
10+
[![Donate](https://img.shields.io/badge/liberapay-donate-yellowgreen.svg)](https://liberapay.com/os-js/)
11+
[![Donate](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://paypal.me/andersevenrud)
12+
[![Community](https://img.shields.io/badge/join-community-green.svg)](https://community.os-js.org/)
13+
14+
# OS.js v3 ESLint Rules
15+
16+
These are the default ESLint rules for OS.js codebase.
17+
18+
This is the main client core component of OS.js.
19+
20+
Contains base services, virtual filesystem, panels and other core services required for operation.
21+
22+
## Installation
23+
24+
```
25+
npm install --save-dev @osjs/eslint-config
26+
```
27+
28+
In your eslint config:
29+
30+
```
31+
{
32+
"extends": "@osjs/eslint-config"
33+
}
34+
```
35+
36+
## Contribution
37+
38+
* **Become a [Patreon](https://www.patreon.com/user?u=2978551&ty=h&u=2978551)**
39+
* **Support on [Open Collective](https://opencollective.com/osjs)**
40+
* [Contribution Guide](https://github.com/os-js/OS.js/blob/v3/CONTRIBUTING.md)
41+
42+
## Documentation
43+
44+
See the [Official Manuals](https://manual.os-js.org/v3/) for articles, tutorials and guides.
45+
46+
## Links
47+
48+
* [Official Chat](https://gitter.im/os-js/OS.js)
49+
* [Community Forums and Announcements](https://community.os-js.org/)
50+
* [Homepage](https://os-js.org/)
51+
* [Twitter](https://twitter.com/osjsorg) ([author](https://twitter.com/andersevenrud))
52+
* [Google+](https://plus.google.com/b/113399210633478618934/113399210633478618934)
53+
* [Facebook](https://www.facebook.com/os.js.org)
54+
* [Docker Hub](https://hub.docker.com/u/osjs/)

index.js

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
module.exports = {
2+
"env": {
3+
"es6": true
4+
},
5+
"parserOptions": {
6+
"ecmaVersion": 8
7+
},
8+
"extends": "eslint:recommended",
9+
"rules": {
10+
"eqeqeq": ["error", "always"],
11+
"quotes": ["error", "single"],
12+
"linebreak-style": ["error", "unix"],
13+
"semi": ["error", "always"],
14+
"indent": ["error", 2],
15+
"radix": 1,
16+
"eol-last": ["error", "always"],
17+
"consistent-return": 1,
18+
"space-in-parens": ["error", "never"],
19+
"space-before-function-paren": ["error", {
20+
"anonymous": "never",
21+
"named": "never",
22+
"asyncArrow": "always"
23+
}],
24+
"space-before-blocks": ["error", "always"],
25+
"space-infix-ops": ["error", {"int32Hint": false}],
26+
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
27+
"spaced-comment": ["warn", "always"],
28+
"prefer-arrow-callback": 1,
29+
"prefer-spread": 1,
30+
"prefer-rest-params": 1,
31+
"template-curly-spacing": ["warn", "never"],
32+
"no-multiple-empty-lines": ["error"],
33+
"no-unused-vars": ["error", {"vars": "all", "args": "none"}],
34+
"no-useless-constructor": 1,
35+
"no-var": 2,
36+
"no-duplicate-imports": 2,
37+
"no-console": "off",
38+
"no-extra-semi": 2,
39+
"no-eval": 2,
40+
"no-invalid-this": 1,
41+
"no-new-func": 2,
42+
"no-return-await": 1,
43+
"no-self-compare": 2,
44+
"no-with": 2,
45+
"no-multi-assign": 1,
46+
"no-new-object": 2,
47+
"no-tabs": 1,
48+
"no-trailing-spaces": 2,
49+
"comma-spacing": ["error", { "before": false, "after": true }],
50+
"object-curly-spacing": ["error", "never"]
51+
}
52+
};

package-lock.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "@osjs/eslint-config",
3+
"version": "1.0.0",
4+
"description": "OS.js v3 ESLint configuration",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/os-js/eslint-config.git"
12+
},
13+
"keywords": [
14+
"osjs"
15+
],
16+
"author": "Anders Evenrud <andersevenrud@gmail.com>",
17+
"license": "MIT",
18+
"bugs": {
19+
"url": "https://github.com/os-js/eslint-config/issues"
20+
},
21+
"homepage": "https://github.com/os-js/eslint-config#readme",
22+
"peerDependencies": {
23+
"eslint": ">= 3"
24+
}
25+
}

0 commit comments

Comments
 (0)