Skip to content

Commit 227e4f6

Browse files
committed
Update project setup
1 parent a1fff7d commit 227e4f6

File tree

9 files changed

+1263
-1271
lines changed

9 files changed

+1263
-1271
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage/

.eslintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"env": {
3+
"commonjs": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"standard",
9+
"prettier"
10+
],
11+
"plugins": [
12+
"prettier"
13+
],
14+
"globals": {
15+
"Atomics": "readonly",
16+
"SharedArrayBuffer": "readonly"
17+
},
18+
"parserOptions": {
19+
"ecmaVersion": 2018
20+
},
21+
"rules": {
22+
"prettier/prettier": "error"
23+
}
24+
}

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ typings/
5454
# dotenv environment variables file
5555
.env
5656

57-
# lib files
58-
lib/
59-
6057
# Mac files
6158
.DS_Store
6259

.huskyrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "lint-staged"
4+
}
5+
}

.lintstagedrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"*.js": [
3+
"npm run lint:fix",
4+
"git add"
5+
]
6+
}

lib/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
const path = require('path');
3+
const requireIndex = require('requireindex');
4+
5+
const rules = requireIndex(path.join(__dirname, '/rules'));
6+
7+
module.exports = {
8+
rules,
9+
};

0 commit comments

Comments
 (0)