Skip to content

Commit 1d1ecdd

Browse files
author
Yvain Liechti
committed
first step
1 parent 0675e12 commit 1d1ecdd

File tree

5 files changed

+89
-2
lines changed

5 files changed

+89
-2
lines changed

.editorconfig

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*]
2+
indent_style = space
3+
end_of_line = lf
4+
charset = utf-8
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
indent_size = 2

README.md

+27-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
1-
# eslint-config
2-
eslint config for Clever Age projects
1+
# @cleverage/eslint-config
2+
3+
Clever Age javaScript coding style guide.
4+
5+
This config depends on [Airbnb coding style guide](https://github.com/airbnb/javascript).
6+
7+
## Install
8+
9+
> ⚠ Currently, it’s not published on NPM. You can only install `cleverage/eslint-config` from the github repository for the moment instead of package name in commands below.
10+
11+
Using NPM:
12+
```
13+
npm install --save-dev @cleverage/eslint-config
14+
```
15+
16+
Using Yarn:
17+
```
18+
yarn add --dev @cleverage/eslint-config
19+
```
20+
21+
Update your `.eslintrc`:
22+
23+
```json
24+
{
25+
"extends": "cleverage"
26+
}
27+
```

index.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
"env": {
3+
"es6": true,
4+
"node": true,
5+
"jest": true,
6+
"browser": true,
7+
},
8+
"parser": "babel-eslint",
9+
"extends": "airbnb",
10+
"plugins": [
11+
"babel",
12+
],
13+
"rules": {
14+
"no-multiple-empty-lines": [1, { "max": 1, "maxEOF": 1, "maxBOF": 0 }],
15+
"padding-line-between-statements": [
16+
"error",
17+
{ "blankLine": "always", "prev": "*", "next": "return" },
18+
{ "blankLine": "always", "prev": "import", "next": "*" },
19+
{ "blankLine": "never", "prev": "import", "next": "import" },
20+
]
21+
}
22+
}

package-lock.json

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "@cleverage/eslint-config",
3+
"version": "1.0.0",
4+
"description": "eslint config for Clever Age projects",
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/cleverage/eslint-config.git"
12+
},
13+
"keywords": [
14+
"eslint"
15+
],
16+
"author": "Yvain Liechti",
17+
"license": "MIT",
18+
"bugs": {
19+
"url": "https://github.com/cleverage/eslint-config/issues"
20+
},
21+
"homepage": "https://github.com/cleverage/eslint-config#readme",
22+
"peerDependencies": {
23+
"babel-eslint": "^10.0.1",
24+
"eslint-plugin-babel": "^5.3.0",
25+
"eslint": "^5.12.0",
26+
"eslint-config-standard": "^17.1.0"
27+
}
28+
}

0 commit comments

Comments
 (0)