Skip to content

Commit 2ad6d30

Browse files
committed
fix(lint): add default eslint file, fix cmd
1 parent 3b72dce commit 2ad6d30

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# /node_modules and /bower_components ignored by default
2+
.git/
3+
tmp/
4+
typings/

.eslintrc

-11
This file was deleted.

eslint.json renamed to .eslintrc.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
2+
"ecmaFeatures": {
3+
"modules": true,
4+
"module": true
5+
},
6+
"env": {
7+
"mocha": true,
8+
"node": true,
9+
"es6": true
10+
},
211
"parser": "espree",
3-
"ecmaFeatures": {},
412
"rules": {
513
"no-alert": "off",
614
"no-array-constructor": "off",
@@ -196,7 +204,6 @@
196204
"id-blacklist": "off",
197205
"require-jsdoc": "off",
198206
"require-yield": "off",
199-
"semi": "off",
200207
"semi-spacing": "off",
201208
"sort-vars": "off",
202209
"sort-imports": "off",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"keywords": [],
1111
"scripts": {
1212
"test": "node tests/runner",
13-
"lint": "eslint -c eslint.json './**/*.js' "
13+
"lint": "eslint ."
1414
},
1515
"repository": {
1616
"type": "git",

0 commit comments

Comments
 (0)