Skip to content

Commit

Permalink
Run linter as part of the test script
Browse files Browse the repository at this point in the history
  • Loading branch information
afcapel committed Dec 9, 2021
1 parent 7f8bbd8 commit 80d4828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dot-notation": ["error"],
"eol-last": ["error"],
"getter-return": ["error"],
"id-length": ["error", { "properties": "never", "exceptions": ["_", "i", "n"] }],
"id-length": ["error", { "properties": "never", "exceptions": ["_", "i", "j", "n"] }],
"keyword-spacing": ["error"],
"no-extra-parens": ["error"],
"no-multi-spaces": ["error", { "exceptions": { "VariableDeclarator": true } }],
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
"build": "rollup -c",
"build-css": "node-sass --functions=./assets/trix/stylesheets/functions assets/trix.scss dist/trix.css",
"watch": "rollup -c -w",
"lint": "eslint .",
"pretest": "yarn run lint && yarn run build",
"test": "yarn run build && karma start"
},
"dependencies": {}
Expand Down

0 comments on commit 80d4828

Please sign in to comment.