Skip to content

Commit

Permalink
chore: Fix ESLint config to allow running from root
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Jul 27, 2021
1 parent d996498 commit 11ea957
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fluent-react/test/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
parser: "@babel/eslint-parser" # Required by JSX
parserOptions:
requireConfigFile: false
ecmaFeatures:
jsx: true
6 changes: 5 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export SHELL := /bin/bash
GH_PAGES ?= $(CURDIR)/node_modules/.bin/gh-pages

TARGETS := all dist lint test build html
TARGETS := all dist test build html
PACKAGES := $(wildcard fluent-*)

$(TARGETS): $(PACKAGES)
Expand All @@ -21,6 +21,10 @@ clean: $(PACKAGES)
@rm -rf html
@echo -e "$(OK) html $@"

lint:
@npm run lint
@echo -e "$(OK) lint"

include tools/perf/makefile

ARR := \033[34;01m→\033[0m
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"workspaces": [
"./fluent-*"
],
"scripts": {
"lint": "eslint --max-warnings 0 'fluent-*/{src,test}/**/*.{js,ts}'"
},
"engines": {
"node": ">=12.0.0"
},
Expand Down

0 comments on commit 11ea957

Please sign in to comment.