Skip to content

Commit 9aaa6d4

Browse files
committed
adding kaplan komputing eslint config
1 parent 344c25d commit 9aaa6d4

File tree

4 files changed

+95
-0
lines changed

4 files changed

+95
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./index.js"
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# eslint-config-kaplankomputing
2+
3+
Kaplan Komputing's eslint configuration
4+
5+
## Getting Started
6+
7+
```
8+
npm install --save-dev eslint-config-kaplankomputing
9+
```
10+
11+
In your project, add an `.eslintrc` file to your project.
12+
13+
```
14+
{
15+
"extends": "kaplankomputing"
16+
}
17+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
module.exports = {
2+
env: {
3+
es6: true,
4+
},
5+
extends: 'airbnb',
6+
rules: {
7+
'no-use-before-define': ['error', { functions: false, classes: false }],
8+
'no-param-reassign': ['error', { props: false }],
9+
'func-names': ['error', 'never'],
10+
'space-before-function-paren': ['error', {
11+
named: 'never',
12+
anonymous: 'never',
13+
}],
14+
'arrow-parens': ['error', 'as-needed'],
15+
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
16+
'consistent-return': 0,
17+
'arrow-body-style': ['error', 'always'],
18+
'no-unused-expressions': 0,
19+
indent: 0,
20+
'no-underscore-dangle': 0,
21+
'require-jsdoc': ['error', {
22+
require: {
23+
FunctionDeclaration: true,
24+
MethodDefinition: true,
25+
ClassDeclaration: false,
26+
ArrowFunctionExpression: false,
27+
},
28+
}],
29+
},
30+
globals: {
31+
angular: true,
32+
ionic: true,
33+
store: true,
34+
moment: true,
35+
window: true,
36+
PushNotification: true,
37+
analytics: true,
38+
io: true,
39+
document: true,
40+
},
41+
parser: 'babel-eslint'
42+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "eslint-config-kaplankomputing",
3+
"version": "1.0.0",
4+
"description": "Kaplan Komputing's ESLint config",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+ssh://[email protected]/kaplankomputing/javascript.git"
12+
},
13+
"keywords": [
14+
"eslint",
15+
"kaplankomputing",
16+
"kaplan",
17+
"javascript"
18+
],
19+
"author": "Max Kaplan",
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/kaplankomputing/javascript/issues"
23+
},
24+
"homepage": "https://github.com/kaplankomputing/javascript#readme",
25+
"dependencies": {
26+
"babel-eslint": "^7.2.3",
27+
"eslint": "^4.5.0",
28+
"eslint-config-airbnb": "^15.1.0",
29+
"eslint-plugin-import": "^2.7.0",
30+
"eslint-plugin-jsx-a11y": "^5.1.1",
31+
"eslint-plugin-react": "^7.2.1"
32+
}
33+
}

0 commit comments

Comments
 (0)