From 6acf4a79467a5aea5bc1eb7d552d72366718635d Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Fri, 29 Jul 2016 22:18:58 +0300 Subject: [PATCH] Build: .eslintrc -> .eslintrc.json `.eslintrc` format is deprecated - http://eslint.org/docs/user-guide/configuring#configuration-file-formats Fixes gh-3248 Closes gh-3247 --- .eslintrc => .eslintrc.json | 0 dist/{.eslintrc => .eslintrc.json} | 2 +- src/{.eslintrc => .eslintrc.json} | 0 src/core.js | 2 +- test/{.eslintrc => .eslintrc.json} | 0 test/node_smoke_tests/{.eslintrc => .eslintrc.json} | 2 +- test/promises_aplus_adapters/.eslintrc | 4 ---- test/promises_aplus_adapters/.eslintrc.json | 4 ++++ 8 files changed, 7 insertions(+), 7 deletions(-) rename .eslintrc => .eslintrc.json (100%) rename dist/{.eslintrc => .eslintrc.json} (92%) rename src/{.eslintrc => .eslintrc.json} (100%) rename test/{.eslintrc => .eslintrc.json} (100%) rename test/node_smoke_tests/{.eslintrc => .eslintrc.json} (55%) delete mode 100644 test/promises_aplus_adapters/.eslintrc create mode 100644 test/promises_aplus_adapters/.eslintrc.json diff --git a/.eslintrc b/.eslintrc.json similarity index 100% rename from .eslintrc rename to .eslintrc.json diff --git a/dist/.eslintrc b/dist/.eslintrc.json similarity index 92% rename from dist/.eslintrc rename to dist/.eslintrc.json index ac4ec2fef..b99e682f4 100644 --- a/dist/.eslintrc +++ b/dist/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": "../src/.eslintrc", + "extends": "../src/.eslintrc.json", "rules": { // That is okay for the built version "no-multiple-empty-lines": "off", diff --git a/src/.eslintrc b/src/.eslintrc.json similarity index 100% rename from src/.eslintrc rename to src/.eslintrc.json diff --git a/src/core.js b/src/core.js index 68ba9a5c2..f3983b4a8 100644 --- a/src/core.js +++ b/src/core.js @@ -1,5 +1,5 @@ /* global Symbol */ -// Defining this global in .eslintrc would create a danger of using the global +// Defining this global in .eslintrc.json would create a danger of using the global // unguarded in another place, it seems safer to define global only for this module define( [ diff --git a/test/.eslintrc b/test/.eslintrc.json similarity index 100% rename from test/.eslintrc rename to test/.eslintrc.json diff --git a/test/node_smoke_tests/.eslintrc b/test/node_smoke_tests/.eslintrc.json similarity index 55% rename from test/node_smoke_tests/.eslintrc rename to test/node_smoke_tests/.eslintrc.json index 0d1d554d1..0877d24af 100644 --- a/test/node_smoke_tests/.eslintrc +++ b/test/node_smoke_tests/.eslintrc.json @@ -2,6 +2,6 @@ "env": { "es6": true }, - "extends" : "../../.eslintrc", + "extends" : "../../.eslintrc.json", "root": true } diff --git a/test/promises_aplus_adapters/.eslintrc b/test/promises_aplus_adapters/.eslintrc deleted file mode 100644 index 7acfff35a..000000000 --- a/test/promises_aplus_adapters/.eslintrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../.eslintrc", - "root": true -} diff --git a/test/promises_aplus_adapters/.eslintrc.json b/test/promises_aplus_adapters/.eslintrc.json new file mode 100644 index 000000000..d11775710 --- /dev/null +++ b/test/promises_aplus_adapters/.eslintrc.json @@ -0,0 +1,4 @@ +{ + "extends": "../../.eslintrc.json", + "root": true +} -- 2.39.5