diff options
| author | 2023-04-28 01:47:57 +0800 | |
|---|---|---|
| committer | 2023-04-28 01:47:57 +0800 | |
| commit | 8b2c4a38a461ff5ecc95972291bc711e2c5dec9a (patch) | |
| tree | 29f552e3df949073e21bf5c76d7abc3044830ec6 /examples/with-gatsby/packages/eslint-config-custom | |
| parent | fc8c5fdce62fb229202659408798a7b6c98f6e8b (diff) | |
| download | HydroRoll-8b2c4a38a461ff5ecc95972291bc711e2c5dec9a.tar.gz HydroRoll-8b2c4a38a461ff5ecc95972291bc711e2c5dec9a.zip | |
Diffstat (limited to 'examples/with-gatsby/packages/eslint-config-custom')
3 files changed, 47 insertions, 0 deletions
diff --git a/examples/with-gatsby/packages/eslint-config-custom/next.js b/examples/with-gatsby/packages/eslint-config-custom/next.js new file mode 100644 index 0000000..c9523f1 --- /dev/null +++ b/examples/with-gatsby/packages/eslint-config-custom/next.js @@ -0,0 +1,11 @@ +module.exports = { + extends: ["next", "turbo", "prettier"], + rules: { + "@next/next/no-html-link-for-pages": "off", + }, + parserOptions: { + babelOptions: { + presets: [require.resolve("next/babel")], + }, + }, +}; diff --git a/examples/with-gatsby/packages/eslint-config-custom/package.json b/examples/with-gatsby/packages/eslint-config-custom/package.json new file mode 100644 index 0000000..c519df6 --- /dev/null +++ b/examples/with-gatsby/packages/eslint-config-custom/package.json @@ -0,0 +1,25 @@ +{ + "name": "eslint-config-custom", + "version": "0.0.0", + "private": true, + "main": "index.js", + "license": "MIT", + "files": [ + "next.js", + "gatsby.js" + ], + "dependencies": { + "babel-eslint": "^10.1.0", + "eslint": "^7.23.0", + "eslint-config-next": "13.0.0", + "eslint-config-prettier": "^8.3.0", + "eslint-config-turbo": "latest", + "eslint-plugin-gatsby": "^1.0.2", + "eslint-plugin-react": "7.31.8" + }, + "devDependencies": { + "@types/eslint": "^8.21.2", + "eslint-config-react-app": "^7.0.1", + "typescript": "^4.7.4" + } +} diff --git a/examples/with-gatsby/packages/eslint-config-custom/react.js b/examples/with-gatsby/packages/eslint-config-custom/react.js new file mode 100644 index 0000000..0307bf6 --- /dev/null +++ b/examples/with-gatsby/packages/eslint-config-custom/react.js @@ -0,0 +1,11 @@ +module.exports = { + extends: ["react-app", "turbo", "prettier"], + rules: { + "@next/next/no-html-link-for-pages": "off", + }, + parserOptions: { + babelOptions: { + presets: [require.resolve("next/babel")], + }, + }, +}; |