Skip to content

Commit 637542e

Browse files
author
Lourenzo Ferreira
committed
feat(base-config): create base config, without react part
1 parent 4542a7c commit 637542e

File tree

5 files changed

+71
-0
lines changed

5 files changed

+71
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./index.js"
3+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# BeeTech's Fullstack ESLint Config
2+
3+
Lint configs for full-stack nodejs api + react frontend
4+
5+
## Installing
6+
7+
```sh
8+
npm install --save-dev eslint eslint-config-beetech eslint-plugin-react eslint-plugin-jsx-a11y eslint-plugin-import
9+
```
10+
11+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
extends: [
3+
'eslint-config-airbnb-base'
4+
].map(require.resolve),
5+
rules: {
6+
'comma-dangle': ['error', 'only-multiline'],
7+
'padding-line-between-statements': ['error', {
8+
blankLine: 'always',
9+
prev: ['const', 'let'],
10+
next: 'return'
11+
}]
12+
}
13+
};
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "eslint-config-beetech",
3+
"version": "0.1.0",
4+
"description": "Official lint config from Beetech.global",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "eslint test/sample-file-001.js"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+ssh://git@github.com/BeeTech-global/eslint-config-beetech.git"
12+
},
13+
"keywords": [
14+
"eslint"
15+
],
16+
"author": "BeeTech <it@beetech.global>",
17+
"contributors": [
18+
"Lourenzo Ferreira <lourenzo@gmail.com>"
19+
],
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/BeeTech-global/eslint-config-beetech/issues"
23+
},
24+
"homepage": "https://github.com/BeeTech-global/eslint-config-beetech#readme",
25+
"dependencies": {
26+
"eslint-config-airbnb-base": "^12.1.0",
27+
"eslint-plugin-import": "^2.9.0",
28+
"eslint": "^4.18.2"
29+
}
30+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
function someOperation() {
2+
return 1;
3+
}
4+
5+
const a = (x) => {
6+
const y = x + 1;
7+
8+
return y;
9+
};
10+
11+
module.exports = {
12+
a,
13+
someOperation
14+
};

0 commit comments

Comments
 (0)