diff --git a/.eslintrc.json b/.eslintrc.json index 004e91e3f0..02f4824bbb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -9,10 +9,31 @@ "rules": { "no-unused-vars": 0, "no-undef": 0, - "no-restricted-properties": [2, { - "property": "findElements", - "message": "Please use t.context.queryElements()." - }], "strict": [2, "global"] - } + }, + "overrides": [ + { + "files": "test/**/*.js", + "parserOptions": { + "ecmaVersion": 8 + }, + "extends": ["plugin:ava/recommended"], + "rules": { + "no-restricted-properties": [2, { + "property": "findElements", + "message": "Please use t.context.queryElements()." + }] + } + }, + { + "files": "scripts/*.js", + "env": { + "node": true, + "es6": true + }, + "rules": { + "no-console": 0 + } + } + ] } diff --git a/scripts/.eslintrc.json b/scripts/.eslintrc.json deleted file mode 100644 index 747f236352..0000000000 --- a/scripts/.eslintrc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "eslint:recommended", - "env": { - "node": true, - "es6": true - }, - "rules": { - "no-console": 0 - } -} diff --git a/test/.eslintrc.json b/test/.eslintrc.json deleted file mode 100644 index dd6115537c..0000000000 --- a/test/.eslintrc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": ["../.eslintrc.json", "plugin:ava/recommended"], - "parserOptions": { - "ecmaVersion": 8 - } -}