From 8a8f0d64e7c12bcc93b5848b0ac60a7fe76c0c8b Mon Sep 17 00:00:00 2001 From: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com> Date: Sun, 13 Mar 2022 14:19:51 +0800 Subject: [PATCH] chore(project): rename .eslint.js to .eslint.json (#6584) --- .eslintrc.js | 6 ------ .eslintrc.json | 4 ++++ build/.eslintrc.js | 7 ------- build/.eslintrc.json | 5 +++++ docs/.eslintrc.js | 5 ----- docs/.eslintrc.json | 3 +++ docs/.vitepress/build/.eslintrc.js | 7 ------- docs/.vitepress/build/.eslintrc.json | 5 +++++ docs/.vitepress/config/.eslintrc.js | 5 ----- docs/.vitepress/config/.eslintrc.json | 5 +++++ docs/examples/.eslintrc.js | 9 --------- docs/examples/.eslintrc.json | 7 +++++++ play/.eslintrc.js | 7 ------- play/.eslintrc.json | 5 +++++ scripts/.eslintrc.js | 5 ----- scripts/.eslintrc.json | 5 +++++ 16 files changed, 39 insertions(+), 51 deletions(-) delete mode 100644 .eslintrc.js create mode 100644 .eslintrc.json delete mode 100644 build/.eslintrc.js create mode 100644 build/.eslintrc.json delete mode 100644 docs/.eslintrc.js create mode 100644 docs/.eslintrc.json delete mode 100644 docs/.vitepress/build/.eslintrc.js create mode 100644 docs/.vitepress/build/.eslintrc.json delete mode 100644 docs/.vitepress/config/.eslintrc.js create mode 100644 docs/.vitepress/config/.eslintrc.json delete mode 100644 docs/examples/.eslintrc.js create mode 100644 docs/examples/.eslintrc.json delete mode 100644 play/.eslintrc.js create mode 100644 play/.eslintrc.json delete mode 100644 scripts/.eslintrc.js create mode 100644 scripts/.eslintrc.json diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index c730e71909..0000000000 --- a/.eslintrc.js +++ /dev/null @@ -1,6 +0,0 @@ -const { defineConfig } = require('eslint-define-config') - -module.exports = defineConfig({ - root: true, - extends: ['@element-plus/eslint-config'], -}) diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000000..b67a9e563e --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,4 @@ +{ + "root": true, + "extends": ["@element-plus/eslint-config"] +} diff --git a/build/.eslintrc.js b/build/.eslintrc.js deleted file mode 100644 index 04fd200adc..0000000000 --- a/build/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -const { defineConfig } = require('eslint-define-config') - -module.exports = defineConfig({ - rules: { - 'no-console': 'off', - }, -}) diff --git a/build/.eslintrc.json b/build/.eslintrc.json new file mode 100644 index 0000000000..d5ba8f9d9c --- /dev/null +++ b/build/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "no-console": "off" + } +} diff --git a/docs/.eslintrc.js b/docs/.eslintrc.js deleted file mode 100644 index b24780c9c2..0000000000 --- a/docs/.eslintrc.js +++ /dev/null @@ -1,5 +0,0 @@ -const { defineConfig } = require('eslint-define-config') - -module.exports = defineConfig({ - rules: {}, -}) diff --git a/docs/.eslintrc.json b/docs/.eslintrc.json new file mode 100644 index 0000000000..90d8894e28 --- /dev/null +++ b/docs/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "rules": {} +} diff --git a/docs/.vitepress/build/.eslintrc.js b/docs/.vitepress/build/.eslintrc.js deleted file mode 100644 index 04fd200adc..0000000000 --- a/docs/.vitepress/build/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -const { defineConfig } = require('eslint-define-config') - -module.exports = defineConfig({ - rules: { - 'no-console': 'off', - }, -}) diff --git a/docs/.vitepress/build/.eslintrc.json b/docs/.vitepress/build/.eslintrc.json new file mode 100644 index 0000000000..d5ba8f9d9c --- /dev/null +++ b/docs/.vitepress/build/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "no-console": "off" + } +} diff --git a/docs/.vitepress/config/.eslintrc.js b/docs/.vitepress/config/.eslintrc.js deleted file mode 100644 index 0c567a8612..0000000000 --- a/docs/.vitepress/config/.eslintrc.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - rules: { - 'no-console': 'off', - }, -} diff --git a/docs/.vitepress/config/.eslintrc.json b/docs/.vitepress/config/.eslintrc.json new file mode 100644 index 0000000000..d5ba8f9d9c --- /dev/null +++ b/docs/.vitepress/config/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "no-console": "off" + } +} diff --git a/docs/examples/.eslintrc.js b/docs/examples/.eslintrc.js deleted file mode 100644 index 8c5d1d30d0..0000000000 --- a/docs/examples/.eslintrc.js +++ /dev/null @@ -1,9 +0,0 @@ -const { defineConfig } = require('eslint-define-config') - -module.exports = defineConfig({ - rules: { - 'no-console': 'off', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'off', - }, -}) diff --git a/docs/examples/.eslintrc.json b/docs/examples/.eslintrc.json new file mode 100644 index 0000000000..60de857865 --- /dev/null +++ b/docs/examples/.eslintrc.json @@ -0,0 +1,7 @@ +{ + "rules": { + "no-console": "off", + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": "off" + } +} diff --git a/play/.eslintrc.js b/play/.eslintrc.js deleted file mode 100644 index 04fd200adc..0000000000 --- a/play/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -const { defineConfig } = require('eslint-define-config') - -module.exports = defineConfig({ - rules: { - 'no-console': 'off', - }, -}) diff --git a/play/.eslintrc.json b/play/.eslintrc.json new file mode 100644 index 0000000000..d5ba8f9d9c --- /dev/null +++ b/play/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "no-console": "off" + } +} diff --git a/scripts/.eslintrc.js b/scripts/.eslintrc.js deleted file mode 100644 index 0c567a8612..0000000000 --- a/scripts/.eslintrc.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - rules: { - 'no-console': 'off', - }, -} diff --git a/scripts/.eslintrc.json b/scripts/.eslintrc.json new file mode 100644 index 0000000000..d5ba8f9d9c --- /dev/null +++ b/scripts/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "no-console": "off" + } +}