Skip to content

Commit

Permalink
Style: Lint entire codebase not few directories
Browse files Browse the repository at this point in the history
  * ignore files using .eslintignore
  • Loading branch information
literat committed Nov 26, 2021
1 parent d9d96b9 commit 158eaa7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# .eslintignore

node_modules

# NOTE:
# The following directives are only relevant when linting the whole
# project directory, ie. running `eslint .` ⚠️

# If you compile JavaScript into some output folder, exclude it here
dist

# Highly recommended to re-include JavaScript dotfiles to lint them
# (This will cause .eslintrc.js to be linted by ESLint 🤘)
!.*.js

# Some tools use this pattern for their configuration files. Lint them!
!*.config.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"css:lint": "stylelint --config .stylelintrc \"src/**/*.scss\" --cache --cache-location .cache/.stylelintcache",
"prejs": "yarn js:lint",
"js": "yarn js:compile",
"js:lint": "eslint ./src ./examples ./scripts",
"js:lint": "eslint ./",
"js:lint:fix": "yarn js:lint --fix",
"js:compile": "node scripts/build.js",
"lint": "npm-run-all --serial js:lint css:lint lint:commit",
Expand Down

0 comments on commit 158eaa7

Please sign in to comment.