diff --git a/fluent-react/test/.eslintrc.yaml b/fluent-react/test/.eslintrc.yaml index d8cb2ec9..c2e16d7a 100644 --- a/fluent-react/test/.eslintrc.yaml +++ b/fluent-react/test/.eslintrc.yaml @@ -1,3 +1,3 @@ -parser: "@babel/eslint-parser" # Required by JSX parserOptions: - requireConfigFile: false + ecmaFeatures: + jsx: true diff --git a/makefile b/makefile index 7b50a61f..37123bfa 100644 --- a/makefile +++ b/makefile @@ -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) @@ -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 diff --git a/package.json b/package.json index 0d70ad6f..25239904 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "workspaces": [ "./fluent-*" ], + "scripts": { + "lint": "eslint --max-warnings 0 'fluent-*/{src,test}/**/*.{js,ts}'" + }, "engines": { "node": ">=12.0.0" },