Skip to content

Commit 80d4828

Browse files
committed
Run linter as part of the test script
1 parent 7f8bbd8 commit 80d4828

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dot-notation": ["error"],
1111
"eol-last": ["error"],
1212
"getter-return": ["error"],
13-
"id-length": ["error", { "properties": "never", "exceptions": ["_", "i", "n"] }],
13+
"id-length": ["error", { "properties": "never", "exceptions": ["_", "i", "j", "n"] }],
1414
"keyword-spacing": ["error"],
1515
"no-extra-parens": ["error"],
1616
"no-multi-spaces": ["error", { "exceptions": { "VariableDeclarator": true } }],

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
"build": "rollup -c",
5252
"build-css": "node-sass --functions=./assets/trix/stylesheets/functions assets/trix.scss dist/trix.css",
5353
"watch": "rollup -c -w",
54+
"lint": "eslint .",
55+
"pretest": "yarn run lint && yarn run build",
5456
"test": "yarn run build && karma start"
5557
},
5658
"dependencies": {}

0 commit comments

Comments
 (0)