1
0
Fork 0
Browse Source

chore: configure ESLint with Standard.js

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
main
André Jaenisch 11 months ago
parent
commit
b757ab9aaf
Signed by: ryuno-ki
GPG Key ID: 5A668E771F1ED854
  1. 17
      .eslintrc.json
  2. 7763
      package-lock.json
  3. 10
      package.json

17
.eslintrc.json

@ -0,0 +1,17 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"standard"
],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"ignorePatterns": ["*.min.js"],
"plugins": [
"mocha"
]
}

7763
package-lock.json generated

File diff suppressed because it is too large Load Diff

10
package.json

@ -5,8 +5,10 @@
"main": "index.js",
"scripts": {
"coverage": "nyc npm run test",
"lint": "npm run lint:js",
"lint:js": "eslint ./src",
"prepare": "husky install",
"pre-commit": "npm run test",
"pre-commit": "npm run lint && npm run test",
"test": "mocha"
},
"repository": {
@ -23,9 +25,15 @@
"license": "GPL-3.0-or-later",
"devDependencies": {
"chai": "4.3.4",
"eslint": "7.32.0",
"eslint-config-standard": "16.0.2",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-mocha": "9.0.0",
"eslint-plugin-promise": "4.2.1",
"husky": "7.0.1",
"mocha": "9.0.3",
"nyc": "15.1.0",
"standard": "16.0.3",
"tap": "15.0.9"
}
}

Loading…
Cancel
Save