diff --git a/.editorconfig b/.editorconfig index 4229670aa303..293886f83b3b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -38,11 +38,6 @@ indent_size = 2 indent_size = 2 indent_style = tab -#.eslintrc.json -[.eslintrc.json] -indent_size = 2 -indent_style = space - # stylelint [.stylelintrc] indent_size = 2 diff --git a/Build/.eslintrc.json b/Build/.eslintrc.js similarity index 96% rename from Build/.eslintrc.json rename to Build/.eslintrc.js index b8bbb2649c8e..877fa17eb608 100644 --- a/Build/.eslintrc.json +++ b/Build/.eslintrc.js @@ -1,4 +1,6 @@ -{ +const path = require('path'); + +module.exports = { "root": true, "env": { "browser": true, @@ -6,7 +8,7 @@ }, "parser": "@typescript-eslint/parser", "parserOptions": { - "project": ["./tsconfig.eslint.json"] + "project": [path.resolve(__dirname, "./tsconfig.eslint.json")] }, "plugins": [ "@typescript-eslint", diff --git a/Build/Gruntfile.js b/Build/Gruntfile.js index 75c02f3934ef..0ace49d151a5 100644 --- a/Build/Gruntfile.js +++ b/Build/Gruntfile.js @@ -275,8 +275,7 @@ module.exports = function (grunt) { eslint: { options: { cache: true, - cacheLocation: './.cache/eslintcache/', - overrideConfigFile: '.eslintrc.json' + cacheLocation: './.cache/eslintcache/' }, files: { src: [