From f5e6ad3c77c09de246b6b85309fb4d8eb4d36023 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Fri, 4 Jun 2021 14:58:34 +0200 Subject: ui: Add support for linting via ESLint --- opendc-web/opendc-web-ui/.eslintrc | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 opendc-web/opendc-web-ui/.eslintrc (limited to 'opendc-web/opendc-web-ui/.eslintrc') diff --git a/opendc-web/opendc-web-ui/.eslintrc b/opendc-web/opendc-web-ui/.eslintrc new file mode 100644 index 00000000..c1640061 --- /dev/null +++ b/opendc-web/opendc-web-ui/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": "next" +} -- cgit v1.2.3 From 922c84801acf931a5a29e95a08486f6df46a1fc2 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Mon, 19 Jul 2021 16:15:04 +0200 Subject: chore(ui): Extend ESLint configuration This change extends the ESLint configuration with the ESLint recommended settings. --- opendc-web/opendc-web-ui/.eslintrc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'opendc-web/opendc-web-ui/.eslintrc') diff --git a/opendc-web/opendc-web-ui/.eslintrc b/opendc-web/opendc-web-ui/.eslintrc index c1640061..1446fa02 100644 --- a/opendc-web/opendc-web-ui/.eslintrc +++ b/opendc-web/opendc-web-ui/.eslintrc @@ -1,3 +1,16 @@ { - "extends": "next" + "extends": ["next", "eslint:recommended"], + "env": { + "browser": true, + "node": true, + "es6": true + }, + "overrides": [ + { + "files": ["src/**/*.test.js"], + "env": { + "jest": true + } + } + ] } -- cgit v1.2.3