Skip to content

Commit beae96f

Browse files
committed
Added lint scripts to package, bracket style
1 parent 2cff993 commit beae96f

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

.eslintrc.json

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,34 @@
66
"indent": [
77
"error",
88
"tab",
9-
{ "SwitchCase": 1 }
9+
{
10+
"SwitchCase": 1
11+
}
1012
],
1113
"no-tabs": ["off"],
1214
"no-unused-vars": "off",
1315
"semi": ["error", "always"],
16+
"brace-style": [
17+
"error",
18+
"1tbs",
19+
{
20+
"allowSingleLine": true
21+
}
22+
],
1423
"object-curly-spacing": ["error", "always"],
15-
"space-before-function-paren": ["error", {
16-
"anonymous": "never",
17-
"named": "never",
18-
"asyncArrow": "always"
19-
}],
24+
"space-before-function-paren": [
25+
"error",
26+
{
27+
"anonymous": "never",
28+
"named": "never",
29+
"asyncArrow": "always"
30+
}
31+
],
2032
"no-trailing-spaces": [
2133
"error",
2234
{
23-
"skipBlankLines": true,
24-
"ignoreComments": true
35+
"skipBlankLines": true,
36+
"ignoreComments": true
2537
}
2638
]
2739
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"download": "npm run content --",
1414
"test": "npm run test -w @bluecadet/launchpad -- ",
1515
"docs": "node .docs/generate.mjs",
16-
"watch-docs": "nodemon"
16+
"watch-docs": "nodemon",
17+
"lint": "npx eslint ./packages/**/*.js",
18+
"lint:fix": "npx eslint ./packages/**/*.js --fix",
19+
"lint:fix-dry": "npx eslint ./packages/**/*.js --fix-dry-run"
1720
},
1821
"repository": {
1922
"type": "git",

0 commit comments

Comments
 (0)