diff --git a/.changeset/eight-dots-hunt.md b/.changeset/eight-dots-hunt.md new file mode 100644 index 0000000..aee20f1 --- /dev/null +++ b/.changeset/eight-dots-hunt.md @@ -0,0 +1,5 @@ +--- +'eslint-config-kubesphere': patch +--- + +feat: update ESLint config diff --git a/.eslintrc.js b/.eslintrc.js index 9bed812..2e10a6d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -14,7 +14,7 @@ module.exports = { commonjs: true, browser: true, }, - extends: ['airbnb-typescript', 'plugin:prettier/recommended'], + extends: ['airbnb-typescript', 'plugin:react-hooks/recommended', 'prettier'], plugins: ['@typescript-eslint', 'react', 'babel', 'promise', 'import'], settings: { react: { @@ -34,7 +34,8 @@ module.exports = { { code: 100, ignoreComments: true, - ignorePattern: '^(\\s*[a-zA-Z_]+: \'[^\']+\'[,;]*)|(.*interpolate.*)|(.*require.*)|(.*_\\.template.*)|(