Skip to content

Commit

Permalink
Lint JS files inside "resources" folder (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 19, 2019
1 parent abb1285 commit 236cb83
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .eslintrc.yml
Expand Up @@ -356,3 +356,18 @@ overrides:
- files: "**/__tests__/**"
rules:
no-restricted-syntax: off
- files: "resources/**"
parserOptions:
sourceType: script
rules:
no-console: off
no-sync: off
global-require: off
no-var: off #TODO
no-shadow: off #TODO
vars-on-top: off #TODO
no-unused-vars: off #TODO
no-else-return: off #TODO
object-shorthand: off #TODO
no-inner-declarations: off #TODO
prettier/prettier: off #TODO
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -27,7 +27,7 @@
"test:ci": "yarn check --integrity && npm run lint -- --no-cache && npm run check && npm run testonly:cover",
"testonly": "mocha --full-trace src/**/__tests__/**/*-test.js",
"testonly:cover": "nyc npm run testonly",
"lint": "eslint --cache --report-unused-disable-directives src",
"lint": "eslint --cache --report-unused-disable-directives src resources",
"benchmark": "node ./resources/benchmark.js",
"prettier": "prettier --write --list-different 'src/**/*.js'",
"check": "flow check",
Expand Down

0 comments on commit 236cb83

Please sign in to comment.