Skip to content

Commit 5fba90b

Browse files
committed
moved the eslint configuration to package.json.
1 parent ad4ab04 commit 5fba90b

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

package.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"lint:formatting": "prettier . --check",
4040
"lint:js": "eslint .",
4141
"lint": "npm-run-all --parallel lint:*",
42+
"pretest": "npm run lint",
4243
"mocha": "mocha --no-timeouts",
4344
"test": "nyc npm run mocha",
4445
"debug": "npm run mocha -- --inspect-brk",
@@ -82,5 +83,19 @@
8283
"lint-staged": {
8384
"*.js": "eslint --cache --fix",
8485
"*.{js,md,yml}": "prettier --write"
85-
}
86+
},
87+
"eslintConfig": {
88+
"extends": [
89+
"stylelint",
90+
"prettier"
91+
],
92+
"rules": {
93+
"jest/valid-expect": "off"
94+
}
95+
},
96+
"eslintIgnore": [
97+
"test/fixtures/*",
98+
"coverage/**",
99+
".nyc_output/**"
100+
]
86101
}

0 commit comments

Comments
 (0)