diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..4850b4c --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,15 @@ +import antfu from '@antfu/eslint-config' + +export default antfu({ + vue: { + vueVersion: 2, + }, + rules: { + "style/space-before-function-paren": ["error", "always"], + "no-console": 'off' + }, + isInEditor: true, + ignore: [ + '**/test/**', + ] +}) diff --git a/package.json b/package.json index dbf8815..97cd1b6 100644 --- a/package.json +++ b/package.json @@ -3,5 +3,13 @@ "packageManager": "pnpm@9.13.2", "private": false, "author": "Greper", - "license": "MPL-2.0" + "license": "MPL-2.0", + "devDependencies": { + "eslint": "^9.15.0", + "@antfu/eslint-config": "^3.9.1" + }, + "scripts": { + "lint": "eslint .", + "lint:fix": "eslint . --fix" + } } diff --git a/packages/core/.babelrc b/packages/core/.babelrc deleted file mode 100644 index ae733f4..0000000 --- a/packages/core/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "presets": ["es2020","stage-4"] -} \ No newline at end of file diff --git a/packages/core/.eslintignore b/packages/core/.eslintignore deleted file mode 100644 index 3d9ba84..0000000 --- a/packages/core/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -./src/test