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" + } +}