Skip to content

Commit

Permalink
Add subdir eslintrc for mjs
Browse files Browse the repository at this point in the history
Add yml indent setting for editorconfig
Simplify lint commands
  • Loading branch information
Jay Sherby authored and fatso83 committed Mar 8, 2018
1 parent 7af0579 commit a0e200e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

# Matches the exact files either package.json or .travis.yml
# and all Markdown files
[{package.json,.travis.yml,*.md}]
[*.{json,yml,md}]
indent_size = 2

; Needed if doing `git add --patch` to edit patches
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
"test": "run-s test-node test-headless test-webworker test-es-module",
"check-dependencies": "dependency-check package.json --unused --no-dev --ignore-module coveralls --ignore-module @std/esm",
"build": "node ./build.js",
"lint": "run-p lint-js lint-mjs lint-markdown",
"lint-js": "eslint .",
"lint-mjs": "eslint --ext mjs --parser-options=sourceType:module test/es2015",
"lint": "run-p lint-js lint-markdown",
"lint-js": "eslint '**/*.{js,mjs}'",
"lint-markdown": "find docs -type f -name '*.md' ! -name 'changelog.md' | xargs markdownlint",
"precommit": "lint-staged",
"pretest-webworker": "npm run build",
Expand Down
2 changes: 2 additions & 0 deletions test/es2015/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
parserOptions:
sourceType: module

0 comments on commit a0e200e

Please sign in to comment.