diff --git a/index.js b/index.cjs similarity index 98% rename from index.js rename to index.cjs index 325297e..05aa9b1 100644 --- a/index.js +++ b/index.cjs @@ -1,4 +1,4 @@ -const config = { +module.exports = { extends: [ 'xo-react', 'plugin:@next/next/recommended', @@ -100,5 +100,3 @@ const config = { 'unicorn/prefer-module': 'off', }, } - -export default config diff --git a/lib/lint-fixture.js b/lib/lint-fixture.js index 36ce085..4437633 100644 --- a/lib/lint-fixture.js +++ b/lib/lint-fixture.js @@ -1,7 +1,7 @@ import path from 'node:path' import xo from 'xo' -import config from '..' +import config from '../index.cjs' const fixturesPath = path.join('__tests__', '__fixtures__') diff --git a/package.json b/package.json index 330d2a4..5fa1514 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "eslint-config-xo-nextjs", "version": "4.0.0", "description": "ESLint shareable config for Next.js to be used with eslint-config-xo", - "main": "index.js", + "main": "index.cjs", "repository": "git@github.com:tusbar/eslint-config-xo-nextjs.git", "author": "Bertrand Marron", "license": "MIT", @@ -14,7 +14,7 @@ "test": "NODE_OPTIONS=--experimental-vm-modules jest" }, "files": [ - "index.js" + "index.cjs" ], "keywords": [ "react",